summaryrefslogtreecommitdiff
path: root/env/Kconfig
diff options
context:
space:
mode:
authorAndre Przywara <andre.przywara@arm.com>2022-01-11 12:46:04 +0000
committerJagan Teki <jagan@amarulasolutions.com>2022-03-10 17:33:50 +0530
commite42dad4168fe7acae810f759078a8cdfe2cd9086 (patch)
tree9ac33a519377ad5b2304f8a3a895124cccb5f154 /env/Kconfig
parent2bdf213f915e29659b23844a2ef8105fbebd9566 (diff)
sunxi: use boot source for determining environment location
Currently we only support to load the environment from raw MMC or FAT locations on Allwinner boards. With the advent of SPI flash we probably also want to support using the environment there, so we need to become a bit more flexible. Change the environment priority function to take the boot source into account. When booted from eMMC or SD card, we use FAT or MMC, if configured, as before. If we are booted from SPI flash, we try to use the environment from there, if possible. The same is true for NAND flash booting, although this is somewhat theoretical right now (as untested). This way we can use the same image for SD and SPI flash booting, which allows us to simply copy a booted image from SD card to the SPI flash, for instance. Signed-off-by: Andre Przywara <andre.przywara@arm.com> Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
Diffstat (limited to 'env/Kconfig')
0 files changed, 0 insertions, 0 deletions