soc: nordic: common: add CAN121 to nrf54hx_nrf92x_mpu_regions.c
Add support for CAN121, if present in DT. Signed-off-by: Emanuele Di Santo <emdi@nordicsemi.no>
This commit is contained in:
parent
0a9ad40a85
commit
49c79582f6
1 changed files with 8 additions and 0 deletions
|
@ -14,6 +14,10 @@
|
||||||
#define CAN120_SIZE DT_REG_SIZE_BY_NAME(DT_NODELABEL(can120), message_ram) + \
|
#define CAN120_SIZE DT_REG_SIZE_BY_NAME(DT_NODELABEL(can120), message_ram) + \
|
||||||
DT_REG_SIZE_BY_NAME(DT_NODELABEL(can120), m_can)
|
DT_REG_SIZE_BY_NAME(DT_NODELABEL(can120), m_can)
|
||||||
|
|
||||||
|
#define CAN121_BASE DT_REG_ADDR_BY_NAME(DT_NODELABEL(can121), message_ram)
|
||||||
|
#define CAN121_SIZE DT_REG_SIZE_BY_NAME(DT_NODELABEL(can121), message_ram) + \
|
||||||
|
DT_REG_SIZE_BY_NAME(DT_NODELABEL(can121), m_can)
|
||||||
|
|
||||||
static struct arm_mpu_region mpu_regions[] = {
|
static struct arm_mpu_region mpu_regions[] = {
|
||||||
MPU_REGION_ENTRY("FLASH_0",
|
MPU_REGION_ENTRY("FLASH_0",
|
||||||
CONFIG_FLASH_BASE_ADDRESS,
|
CONFIG_FLASH_BASE_ADDRESS,
|
||||||
|
@ -32,6 +36,10 @@ static struct arm_mpu_region mpu_regions[] = {
|
||||||
MPU_REGION_ENTRY("CAN120_MCAN", CAN120_BASE,
|
MPU_REGION_ENTRY("CAN120_MCAN", CAN120_BASE,
|
||||||
REGION_RAM_NOCACHE_ATTR(CAN120_BASE, CAN120_SIZE)),
|
REGION_RAM_NOCACHE_ATTR(CAN120_BASE, CAN120_SIZE)),
|
||||||
#endif
|
#endif
|
||||||
|
#if DT_NODE_HAS_STATUS(DT_NODELABEL(can121), okay)
|
||||||
|
MPU_REGION_ENTRY("CAN121_MCAN", CAN121_BASE,
|
||||||
|
REGION_RAM_NOCACHE_ATTR(CAN121_BASE, CAN121_SIZE)),
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
const struct arm_mpu_config mpu_config = {
|
const struct arm_mpu_config mpu_config = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue