stm32: stm32f7: add spl build support
authorVikas Manocha <vikas.manocha@st.com>
Sun, 28 May 2017 19:55:10 +0000 (12:55 -0700)
committerTom Rini <trini@konsulko.com>
Fri, 9 Jun 2017 15:23:55 +0000 (11:23 -0400)
commitb97476965bf292c13074e01de4bd39253de0ef66
tree98e31a42d754e9fa65073f335fd3f4f6a0845d04
parentea744fca0e36e085947ad32358da60377d1966b6
stm32: stm32f7: add spl build support

This commit supports booting from stm32 internal nor flash. spl U-Boot
initializes the sdram memory, copies next image (e.g. standard U-Boot)
to sdram & then jumps to entry point.

Here are the flash memory addresses for U-Boot-spl & standard U-Boot:
- spl U-Boot : 0x0800_0000
- standard U-Boot : 0x0800_8000

To compile u-boot without spl: Remove SUPPORT_SPL configuration
(arch/arm/mach-stm32/Kconfig)

Signed-off-by: Vikas Manocha <vikas.manocha@st.com>
[trini: Rework Kconfig logic a bit]
Signed-off-by: Tom Rini <trini@konsulko.com>
arch/arm/mach-stm32/Kconfig
board/st/stm32f746-disco/stm32f746-disco.c
configs/stm32f746-disco_defconfig
drivers/pinctrl/Kconfig
include/configs/stm32f746-disco.h