diff options
author | Vipul Kumar | 2018-07-17 19:00:34 +0530 |
---|---|---|
committer | Michal Simek | 2018-07-19 10:49:56 +0200 |
commit | 2a30809cae098d8d2d4af7c5fba059993ef5f10e (patch) | |
tree | 09f1b07eeddd2ada38ad60f680b731e19115aec6 /env | |
parent | 1c310aec671e7cde9cd255b2ffbc6089ee7ac53b (diff) |
env: Added support to save env to spi through Kconfig
This patch added support to enable CONFIG_ENV_SIZE, CONFIG_ENV_OFFSET
and CONFIG_ENV_SECT_SIZE through Kconfig for Zynq and Zynqmp.
Signed-off-by: Vipul Kumar <vipul.kumar@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'env')
-rw-r--r-- | env/Kconfig | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/env/Kconfig b/env/Kconfig index 8618376f252..b37dcd78eb7 100644 --- a/env/Kconfig +++ b/env/Kconfig @@ -480,6 +480,34 @@ config ENV_SIZE endif +if ARCH_ZYNQMP || ARCH_ZYNQ + +config ENV_OFFSET + hex "Environment Offset" + depends on !ENV_IS_NOWHERE + default 0x1E00000 if ARCH_ZYNQMP + default 0xE0000 if ARCH_ZYNQ + help + Offset from the start of the device (or partition) + +config ENV_SIZE + hex "Environment Size" + default 0x40000 if ENV_IS_IN_SPI_FLASH && ARCH_ZYNQMP + default 0x8000 if ARCH_ZYNQMP + default 0x20000 if ARCH_ZYNQ + help + Size of the environment storage area. + +config ENV_SECT_SIZE + hex "Environment Sector-Size" + depends on !ENV_IS_NOWHERE + default 0x40000 if ARCH_ZYNQMP + default 0x20000 if ARCH_ZYNQ + help + Size of the sector containing the environment. + +endif + config USE_DEFAULT_ENV_FILE bool "Create default environment from file" help |