ARM: stm32mp: dk2: don't hard-code memory size
There's new infrastructure for runtime determining RAM size. Use it so
we don't need to hard code it in PBL and board code.

Because this new infrastructure has some nested function calls, my
arm-v7a-linux-gnueabihf-gcc 9.2.1 (OSELAS.Toolchain-2019.09.0)
spills to the stack.  Add stm32mp_cpu_lowlevel_init, which also sets up
a stack after barebox end so this works.

Lastly, there's no upstream device tree node for the DDR controller.
Add one in the barebox device tree, so we don't have to hardcode the
DDRCTRL address into non-pbl code that's run everywhere.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent a0319d2 commit b2da7cfcd09b9731f67afcae74604c63bda6c5c0
@Ahmad Fatoum Ahmad Fatoum authored on 12 Nov 2019
Sascha Hauer committed on 13 Nov 2019
Showing 3 changed files
View
arch/arm/boards/stm32mp157c-dk2/board.c
View
arch/arm/boards/stm32mp157c-dk2/lowlevel.c
View
arch/arm/dts/stm32mp157c.dtsi