summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-stm32mp/include/mach/stm32.h
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2019-11-12 10:19:53 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2019-11-13 15:20:25 +0100
commitf0f07ea7dc50847be5f775fedf926a1c6a8b6852 (patch)
tree1f43d2dc4970756d292815040e95ec2d11be112f /arch/arm/mach-stm32mp/include/mach/stm32.h
parent2d67f7865213168df528ed3a7e0ddf029f393e62 (diff)
downloadbarebox-f0f07ea7dc50847be5f775fedf926a1c6a8b6852.tar.gz
barebox-f0f07ea7dc50847be5f775fedf926a1c6a8b6852.tar.xz
ARM: stm32mp: add helper for querying ram size
The STM32MP DDR Controller has a very flexible way of mapping address bits to columns/rows/banks. This is so far configured by the ARM TF-A as part of the SDRAM setup, so we don't need to do this in barebox. Nevertheless reading it out in barebox, allows us to determine unused address bits and thus the total size of SDRAM configured. Add a barebox_arm_entry wrapper that computes the SDRAM size internally, so boards may drop their hard-coded RAM size specifications. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-stm32mp/include/mach/stm32.h')
-rw-r--r--arch/arm/mach-stm32mp/include/mach/stm32.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-stm32mp/include/mach/stm32.h b/arch/arm/mach-stm32mp/include/mach/stm32.h
index f9bdb788b9..adb898fa26 100644
--- a/arch/arm/mach-stm32mp/include/mach/stm32.h
+++ b/arch/arm/mach-stm32mp/include/mach/stm32.h
@@ -12,6 +12,8 @@
#define STM32_RCC_BASE 0x50000000
#define STM32_PWR_BASE 0x50001000
#define STM32_DBGMCU_BASE 0x50081000
+#define STM32_DDRCTL_BASE 0x5A003000
+#define STM32_DDRPHY_BASE 0x5A004000
#define STM32_BSEC_BASE 0x5C005000
#define STM32_TZC_BASE 0x5C006000
#define STM32_ETZPC_BASE 0x5C007000