|
| 1 | +/* Copyright (C) 2022 Alif Semiconductor - All Rights Reserved. |
| 2 | + * Use, distribution and modification of this code is permitted under the |
| 3 | + * terms stated in the Alif Semiconductor Software License Agreement |
| 4 | + * |
| 5 | + * You should have received a copy of the Alif Semiconductor Software |
| 6 | + * License Agreement with this file. If not, please write to: |
| 7 | + * [email protected], or visit: https://alifsemi.com/license |
| 8 | + * |
| 9 | + */ |
| 10 | + |
| 11 | +#ifndef M55_HE_MAP_H |
| 12 | +#define M55_HE_MAP_H |
| 13 | + |
| 14 | +#include "global_map.h" |
| 15 | +/******************************************************************************/ |
| 16 | +/* Local memory map */ |
| 17 | +/******************************************************************************/ |
| 18 | +#define ITCM_BASE (0x00000000UL) |
| 19 | +#define ITCM_ALIAS_BIT (0x01000000UL) |
| 20 | +#define ITCM_REGION_SIZE (0x02000000UL) |
| 21 | +#define ITCM_SIZE (SRAM4_SIZE) /* 256K */ |
| 22 | +#define ITCM_GLOBAL_BASE (SRAM4_BASE) |
| 23 | + |
| 24 | +#define DTCM_BASE (0x20000000UL) |
| 25 | +#define DTCM_ALIAS_BIT (0x01000000UL) |
| 26 | +#define DTCM_REGION_SIZE (0x02000000UL) |
| 27 | +#define DTCM_SIZE (SRAM5_SIZE) /* 256K */ |
| 28 | +#define DTCM_GLOBAL_BASE (SRAM5_BASE) |
| 29 | + |
| 30 | +#define MHU_A32_M55HE_0_RX_BASE 0x40000000UL |
| 31 | +#define MHU_M55HE_A32_0_TX_BASE 0x40010000UL |
| 32 | +#define MHU_A32_M55HE_1_RX_BASE 0x40020000UL |
| 33 | +#define MHU_M55HE_A32_1_TX_BASE 0x40030000UL |
| 34 | +#define MHU_SECPU_M55HE_0_RX_BASE 0x40040000UL |
| 35 | +#define MHU_M55HE_SECPU_0_TX_BASE 0x40050000UL |
| 36 | +#define MHU_SECPU_M55HE_1_RX_BASE 0x40060000UL |
| 37 | +#define MHU_M55HE_SECPU_1_TX_BASE 0x40070000UL |
| 38 | +#define MHU_M55HP_M55HE_0_RX_BASE 0x40080000UL |
| 39 | +#define MHU_M55HE_M55HP_0_TX_BASE 0x40090000UL |
| 40 | +#define MHU_M55HP_M55HE_1_RX_BASE 0x400A0000UL |
| 41 | +#define MHU_M55HE_M55HP_1_TX_BASE 0x400B0000UL |
| 42 | + |
| 43 | +#define MHU_APSS_S_RX_BASE MHU_A32_M55HE_0_RX_BASE |
| 44 | +#define MHU_APSS_S_TX_BASE MHU_M55HE_A32_0_TX_BASE |
| 45 | +#define MHU_APSS_NS_RX_BASE MHU_A32_M55HE_1_RX_BASE |
| 46 | +#define MHU_APSS_NS_TX_BASE MHU_M55HE_A32_1_TX_BASE |
| 47 | +#define MHU_SESS_S_RX_BASE MHU_SECPU_M55HE_0_RX_BASE |
| 48 | +#define MHU_SESS_S_TX_BASE MHU_M55HE_SECPU_0_TX_BASE |
| 49 | +#define MHU_SESS_NS_RX_BASE MHU_SECPU_M55HE_1_RX_BASE |
| 50 | +#define MHU_SESS_NS_TX_BASE MHU_M55HE_SECPU_1_TX_BASE |
| 51 | +#define MHU_RTSS_S_RX_BASE MHU_M55HP_M55HE_0_RX_BASE |
| 52 | +#define MHU_RTSS_S_TX_BASE MHU_M55HE_M55HP_0_TX_BASE |
| 53 | +#define MHU_RTSS_NS_RX_BASE MHU_M55HP_M55HE_1_RX_BASE |
| 54 | +#define MHU_RTSS_NS_TX_BASE MHU_M55HE_M55HP_1_TX_BASE |
| 55 | + |
| 56 | +#define DMA2_SEC_BASE 0x400C0000UL |
| 57 | +#define DMA2_NS_BASE 0x400E0000UL |
| 58 | +#define DMALOCAL_SEC_BASE DMA2_SEC_BASE |
| 59 | +#define DMALOCAL_NS_BASE DMA2_NS_BASE |
| 60 | + |
| 61 | +#define NPU_HE_BASE 0x400E1000UL |
| 62 | +#define LOCAL_NPU_BASE NPU_HE_BASE |
| 63 | + |
| 64 | +#define EVTRTR2_BASE 0x400E2000UL |
| 65 | +#define EVTRTRLOCAL_BASE EVTRTR2_BASE |
| 66 | + |
| 67 | +#define WDT_HE_CTRL_BASE 0x40100000UL |
| 68 | +#define WDT_HE_REFRESH_BASE 0x40101000UL |
| 69 | +#define LOCAL_WDT_CTRL_BASE WDT_HE_CTRL_BASE |
| 70 | +#define LOCAL_WDT_REFRESH_BASE WDT_HE_REFRESH_BASE |
| 71 | + |
| 72 | +#endif /* M55_HE_MAP_H */ |
0 commit comments