Commit 49c79582 authored by Emanuele Di Santo's avatar Emanuele Di Santo Committed by Anas Nashif
Browse files

soc: nordic: common: add CAN121 to nrf54hx_nrf92x_mpu_regions.c



Add support for CAN121, if present in DT.

Signed-off-by: default avatarEmanuele Di Santo <emdi@nordicsemi.no>
parent 0a9ad40a
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -14,6 +14,10 @@
#define CAN120_SIZE	DT_REG_SIZE_BY_NAME(DT_NODELABEL(can120), message_ram) + \
			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[] = {
	MPU_REGION_ENTRY("FLASH_0",
			 CONFIG_FLASH_BASE_ADDRESS,
@@ -32,6 +36,10 @@ static struct arm_mpu_region mpu_regions[] = {
	MPU_REGION_ENTRY("CAN120_MCAN", CAN120_BASE,
			 REGION_RAM_NOCACHE_ATTR(CAN120_BASE, CAN120_SIZE)),
#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 = {