e03342ff6b
- added new boards: hpm5300evk, hpm5301evklite and hpm6800evk - upgaded hpm_sdk - driver updates and bugfixes - add hpmicro BSPs to CI Signed-off-by: Fan YANG <fan.yang@hpmicro.com>
41 lines
1.0 KiB
C
41 lines
1.0 KiB
C
/*
|
|
* Copyright (c) 2021 HPMicro
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*
|
|
*/
|
|
|
|
#ifndef HPM_MISC_H
|
|
#define HPM_MISC_H
|
|
|
|
#define CORE0_ILM_LOCAL_BASE (0x0U)
|
|
#define CORE0_ILM_SIZE_IN_BYTE (0x20000U)
|
|
#define CORE0_DLM_LOCAL_BASE (0x80000U)
|
|
#define CORE0_DLM_SIZE_IN_BYTE (0x20000U)
|
|
#define CORE1_ILM_LOCAL_BASE (0x20000U)
|
|
#define CORE1_ILM_SIZE_IN_BYTE (0x20000U)
|
|
#define CORE1_DLM_LOCAL_BASE (0xA0000U)
|
|
#define CORE1_DLM_SIZE_IN_BYTE (0x20000U)
|
|
#define CORE0_ILM_SYSTEM_BASE (0x0U)
|
|
#define CORE0_DLM_SYSTEM_BASE (0x80000U)
|
|
#define CORE1_ILM_SYSTEM_BASE (0x20000U)
|
|
#define CORE1_DLM_SYSTEM_BASE (0xA0000U)
|
|
|
|
#define HPM_CORE0 (0U)
|
|
#define HPM_CORE1 (1U)
|
|
|
|
/* map core local memory(DLM/ILM) to system address */
|
|
static inline uint32_t core_local_mem_to_sys_address(uint8_t core_id, uint32_t addr)
|
|
{
|
|
(void) core_id;
|
|
return addr;
|
|
}
|
|
|
|
/* map system address to core local memory(DLM/ILM) */
|
|
static inline uint32_t sys_address_to_core_local_mem(uint8_t core_id, uint32_t addr)
|
|
{
|
|
(void) core_id;
|
|
return addr;
|
|
}
|
|
#endif /* HPM_MISC_H */
|