ARM: at91: sama5d2: read back memory size from DDRAM controller
We hard code memory size at three places:
 - In the configuration we use to initialize the DDRAM controller
 - In the minimal available size passed from PBL to barebox proper
 - In the device tree memory node override

Remove the two latter ones and replace them with code that reads the
size back from controller.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 3c7606d commit 7208a44d8bc6058a120d49b7061e2b9f9c0502c8
@Ahmad Fatoum Ahmad Fatoum authored on 1 Jul 2020
Sascha Hauer committed on 14 Jul 2020
Showing 9 changed files
View
arch/arm/boards/sama5d27-giantboard/lowlevel.c
View
arch/arm/boards/sama5d27-som1/lowlevel.c
View
arch/arm/dts/at91-sama5d27_giantboard.dts
View
arch/arm/dts/at91-sama5d27_som1_ek.dts
View
arch/arm/dts/sama5d2.dtsi
View
arch/arm/mach-at91/Kconfig
View
arch/arm/mach-at91/Makefile
View
arch/arm/mach-at91/ddramc.c 0 → 100644
View
arch/arm/mach-at91/include/mach/ddramc.h