diff --git a/boards/arm64/raptor2/raptor2_a0.dts b/boards/arm64/raptor2/raptor2_a0.dts index 4d19ee61e3ade8..23740af8a9a5cc 100644 --- a/boards/arm64/raptor2/raptor2_a0.dts +++ b/boards/arm64/raptor2/raptor2_a0.dts @@ -183,7 +183,9 @@ <0x00 0x64110000 0x0 0x10000>, /* CRSS0 CMU */ <0x00 0x65110000 0x0 0x10000>, /* CRSS1 CMU */ <0x00 0x66110000 0x0 0x10000>, /* CRSS2 CMU */ - <0x00 0x67110000 0x0 0x10000>; /* CRSS3 CMU */ + <0x00 0x67110000 0x0 0x10000>, /* CRSS3 CMU */ + <0x04 0x00000000 0x0 0xC0000000>, /* DDR_1 */ + <0x05 0x00000000 0x1 0x00000000>; /* DDR_2 */ status = "okay"; label = "RAPTOR2_MMIO"; diff --git a/boards/arm64/raptor2/raptor2_a0_ppu.dts b/boards/arm64/raptor2/raptor2_a0_ppu.dts index a7f1ee39d15e7a..6b926e1fdfe41d 100644 --- a/boards/arm64/raptor2/raptor2_a0_ppu.dts +++ b/boards/arm64/raptor2/raptor2_a0_ppu.dts @@ -142,7 +142,9 @@ <0x00 0x64110000 0x0 0x10000>, /* CRSS0 CMU */ <0x00 0x65110000 0x0 0x10000>, /* CRSS1 CMU */ <0x00 0x66110000 0x0 0x10000>, /* CRSS2 CMU */ - <0x00 0x67110000 0x0 0x10000>; /* CRSS3 CMU */ + <0x00 0x67110000 0x0 0x10000>, /* CRSS3 CMU */ + <0x04 0x00000000 0x0 0xC0000000>, /* DDR_1 */ + <0x05 0x00000000 0x1 0x00000000>; /* DDR_2 */ status = "okay"; label = "RAPTOR2_MMIO"; diff --git a/boards/arm64/raptor2/raptor2_protium.dts b/boards/arm64/raptor2/raptor2_protium.dts index 3081df00548df7..712ef0e3d65ee9 100644 --- a/boards/arm64/raptor2/raptor2_protium.dts +++ b/boards/arm64/raptor2/raptor2_protium.dts @@ -212,7 +212,9 @@ <0x00 0x64110000 0x0 0x10000>, /* CRSS0 CMU */ <0x00 0x65110000 0x0 0x10000>, /* CRSS1 CMU */ <0x00 0x66110000 0x0 0x10000>, /* CRSS2 CMU */ - <0x00 0x67110000 0x0 0x10000>; /* CRSS3 CMU */ + <0x00 0x67110000 0x0 0x10000>, /* CRSS3 CMU */ + <0x04 0x00000000 0x0 0xC0000000>, /* DDR_1 */ + <0x05 0x00000000 0x1 0x00000000>; /* DDR_2 */ status = "okay"; label = "RAPTOR2_MMIO"; diff --git a/boards/arm64/raptor2/raptor2_protium_single_ppu.dts b/boards/arm64/raptor2/raptor2_protium_single_ppu.dts index 1e8cba29caea65..302839dc495df3 100644 --- a/boards/arm64/raptor2/raptor2_protium_single_ppu.dts +++ b/boards/arm64/raptor2/raptor2_protium_single_ppu.dts @@ -107,7 +107,9 @@ <0x00 0x64110000 0x0 0x10000>, /* CRSS0 CMU */ <0x00 0x65110000 0x0 0x10000>, /* CRSS1 CMU */ <0x00 0x66110000 0x0 0x10000>, /* CRSS2 CMU */ - <0x00 0x67110000 0x0 0x10000>; /* CRSS3 CMU */ + <0x00 0x67110000 0x0 0x10000>, /* CRSS3 CMU */ + <0x04 0x00000000 0x0 0xC0000000>, /* DDR_1 */ + <0x05 0x00000000 0x1 0x00000000>; /* DDR_2 */ status = "okay"; label = "RAPTOR2_MMIO"; diff --git a/soc/arm64/raptor2/mmu_regions.c b/soc/arm64/raptor2/mmu_regions.c index 5b687d0dde9d2f..38850acfb8af55 100644 --- a/soc/arm64/raptor2/mmu_regions.c +++ b/soc/arm64/raptor2/mmu_regions.c @@ -206,6 +206,16 @@ static const struct arm_mmu_region mmu_regions[] = { DT_REG_SIZE_BY_IDX(DT_INST(0, raptor2_mmio), 25), MT_DEVICE_nGnRnE | MT_P_RW_U_NA | MT_NS), + MMU_REGION_FLAT_ENTRY("DDR_1", + DT_REG_ADDR_BY_IDX(DT_INST(0, raptor2_mmio), 26), + DT_REG_SIZE_BY_IDX(DT_INST(0, raptor2_mmio), 26), + MT_NORMAL | MT_P_RW_U_NA | MT_DEFAULT_SECURE_STATE), + + MMU_REGION_FLAT_ENTRY("DDR_2", + DT_REG_ADDR_BY_IDX(DT_INST(0, raptor2_mmio), 27), + DT_REG_SIZE_BY_IDX(DT_INST(0, raptor2_mmio), 27), + MT_NORMAL | MT_P_RW_U_NA | MT_DEFAULT_SECURE_STATE), + #else #error "Please define UART MMU region mapping" #endif