summaryrefslogtreecommitdiff
path: root/common/spl/Kconfig
diff options
context:
space:
mode:
authorAndre Przywara <andre.przywara@arm.com>2020-01-06 04:29:10 +0300
committerJagan Teki <jagan@amarulasolutions.com>2020-01-24 20:36:56 +0300
commit671d64fe352244374e8aa27186e7b8055446cb6b (patch)
tree1d085e04be6a6ebf1b90b80170a361b7e2c8ea40 /common/spl/Kconfig
parent043c65b793648e810533b5fc28336a9ebefa2830 (diff)
downloadu-boot-671d64fe352244374e8aa27186e7b8055446cb6b.tar.xz
sunxi: move CONFIG_SYS_SPI_U_BOOT_OFFS out of defconfig
For Allwinner SoCs the CONFIG_SYS_SPI_U_BOOT_OFFS value is not really a board choice: The boot ROM only loads the SPL from offset 0 of the SPI NOR flash, and loads at most 32KB. This is a similar situation as on MMC, so consequently we create our "joint" image (SPL + U-Boot proper) with that 32KB offset during the build. So define the value of this symbol to be 32KB by default for every Allwinner SoC. This removes the definition of this symbol from the _defconfig files, and avoids every board to define this over and over again. Signed-off-by: Andre Przywara <andre.przywara@arm.com> Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
Diffstat (limited to 'common/spl/Kconfig')
-rw-r--r--common/spl/Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/spl/Kconfig b/common/spl/Kconfig
index 76f39dc04f..b03a476b9f 100644
--- a/common/spl/Kconfig
+++ b/common/spl/Kconfig
@@ -1100,6 +1100,7 @@ endif # SPL_SPI_FLASH_SUPPORT
config SYS_SPI_U_BOOT_OFFS
hex "address of u-boot payload in SPI flash"
+ default 0x8000 if ARCH_SUNXI
default 0x0
depends on SPL_SPI_LOAD || SPL_SPI_SUNXI
help