1234567891011121314151617181920212223242526272829303132333435363738 |
- /*
- * 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)
- {
- 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)
- {
- return addr;
- }
- #endif /* HPM_MISC_H */
|