]> git.dujemihanovic.xyz Git - u-boot.git/commit
spl: spi: override CONFIG_SYS_SPI_U_BOOT_OFFS via /config-property
authorPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Mon, 17 Apr 2017 15:45:11 +0000 (17:45 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 12 May 2017 02:03:39 +0000 (22:03 -0400)
commit2bac55bc16aca60346dabfdda4ca7e0d19c2cff3
tree116e96bed8f923e72f9b3e7e71cf3868a362621e
parent6775a8208e3ac60f09b982c2d7b3258e0af86540
spl: spi: override CONFIG_SYS_SPI_U_BOOT_OFFS via /config-property

For the RK3399-Q7, we need some flexibility (depending on the feature
set we include in the SPL stage and how large our SPI flash is) in
positioning the SPL payload (i.e. the FIT image containing U-Boot, ATF
and the M0 payload) in our SPI flash.

To avoid having to deal with this through different U-Boot images, we
introduce a the '/config/u-boot,spl-payload-offset' property node
allow it to override the default setting.

Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Acked-by: Simon Glass <sjg@chromium.org>
common/spl/spl_spi.c