diff options
author | Heiko Schocher <hs@denx.de> | 2020-10-10 10:28:05 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-10-30 10:54:38 -0400 |
commit | 92765f45bb950c24b8997752ab94f35c1fb4425f (patch) | |
tree | e5eb6a012bac3a316ff940c8133a6419633cbc69 /env/Kconfig | |
parent | 1229533a2a9cd85fb18a95841e986fca79dece86 (diff) | |
download | u-boot-92765f45bb950c24b8997752ab94f35c1fb4425f.tar.gz |
env: Access Environment in SPI flashes before relocation
Enable the new Kconfig option ENV_SPI_EARLY if you want
to use Environment in SPI flash before relocation.
Call env_init() and than you can use env_get_f() for
accessing Environment variables.
Signed-off-by: Heiko Schocher <hs@denx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'env/Kconfig')
-rw-r--r-- | env/Kconfig | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/env/Kconfig b/env/Kconfig index aa63fae021..67ce93061b 100644 --- a/env/Kconfig +++ b/env/Kconfig @@ -376,6 +376,14 @@ config ENV_SPI_MODE Value of the SPI work mode for environment. See include/spi.h for value. +config ENV_SPI_EARLY + bool "Access Environment in SPI flashes before relocation" + depends on ENV_IS_IN_SPI_FLASH + help + Enable this if you want to use Environment in SPI flash + before relocation. Call env_init() and than you can use + env_get_f() for accessing Environment variables. + config ENV_IS_IN_UBI bool "Environment in a UBI volume" depends on !CHAIN_OF_TRUST |