]> git.baikalelectronics.ru Git - uboot.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)
commit9fbe187fc4fbcab24804d8171a73c8db225e8271
tree116e96bed8f923e72f9b3e7e71cf3868a362621e
parent2b3a1018f8770d1e64de347627c88bbc67f19aea
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