]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
stm32mp1: configs: add spi load support in spl
authorPatrick Delaunay <patrick.delaunay@st.com>
Tue, 30 Jul 2019 17:16:36 +0000 (19:16 +0200)
committerPatrice Chotard <patrice.chotard@st.com>
Tue, 27 Aug 2019 09:19:23 +0000 (11:19 +0200)
Add the boot for NOR, SPL load U-Boot.img at offset
CONFIG_SYS_SPI_U_BOOT_OFFS = 0x80000.
It is the start address of mtd partition ssbl in nor.

Signed-off-by: Christophe Kerello <christophe.kerello@st.com>
Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
arch/arm/mach-stm32mp/Kconfig
configs/stm32mp15_basic_defconfig

index 187be17aabf9128b869087e1675b1bffd5d70d31..c9bc0841949de745ed73f5db5129a6be778c86db 100644 (file)
@@ -16,6 +16,7 @@ config SPL
        select SPL_REGMAP
        select SPL_DM_RESET
        select SPL_SERIAL_SUPPORT
+       select SPL_SPI_LOAD
        select SPL_SYSCON
        select SPL_WATCHDOG_SUPPORT if WATCHDOG
        imply BOOTSTAGE_STASH if SPL_BOOTSTAGE
index 740d4829fe3971893cf11443aab318cb19053a2b..cf3988dafe579bac25e6499374758cf57791e63e 100644 (file)
@@ -16,6 +16,7 @@ CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION=3
 CONFIG_SPL_I2C_SUPPORT=y
 CONFIG_SPL_MTD_SUPPORT=y
 CONFIG_SPL_POWER_SUPPORT=y
+CONFIG_SYS_SPI_U_BOOT_OFFS=0x80000
 CONFIG_SYS_PROMPT="STM32MP> "
 # CONFIG_CMD_BOOTD is not set
 # CONFIG_CMD_ELF is not set