Skip to content

Commit e30324e

Browse files
Yann-lmsPatrice Chotard
authored andcommitted
arm: mach-stm32mp: stm32mp23: add internal RAMs mapping
Add the BOOT alias1 section for internal memories for STM32MP23. Change-Id: I75f4545b5ea56fa3a8b7ca39fa0c4f98b97ba28c Signed-off-by: Yann Gautier <yann.gautier@foss.st.com> Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/u-boot/+/462649 Reviewed-by: Patrice CHOTARD <patrice.chotard@foss.st.com> ACI: CIBUILD <MDG-smet-aci-builds@list.st.com> Domain-Review: Patrice CHOTARD <patrice.chotard@foss.st.com>
1 parent 8568c9f commit e30324e

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

arch/arm/mach-stm32mp/stm32mp2/arm64-mmu.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,16 @@ struct mm_region stm32mp2_mem_map[MP2_MEM_MAP_MAX] = {
2626
PTE_BLOCK_PXN | PTE_BLOCK_UXN
2727
}, {
2828
#endif
29+
#if defined(CONFIG_STM32MP23X)
30+
/* VDERAM, RETRAM, SRAMs, SYSRAM: BOOT alias1 */
31+
.virt = 0x0A000000UL,
32+
.phys = 0x0A000000UL,
33+
.size = 0x00200000UL,
34+
.attrs = PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) |
35+
PTE_BLOCK_NON_SHARE |
36+
PTE_BLOCK_PXN | PTE_BLOCK_UXN
37+
}, {
38+
#endif
2939
#if defined(CONFIG_STM32MP25X)
3040
/* VDERAM, RETRAM, SRAMs, SYSRAM: BOOT alias1 */
3141
.virt = 0x0A000000UL,

0 commit comments

Comments
 (0)