aboutsummaryrefslogtreecommitdiff
path: root/env
diff options
context:
space:
mode:
authorT Karthik Reddy <t.karthik.reddy@xilinx.com>2022-08-24 13:23:26 +0200
committerMichal Simek <michal.simek@amd.com>2022-09-13 11:32:48 +0200
commitce8808628e18cd3d71fbc001edb15e59ee824d91 (patch)
tree4cdd312f6e6f3f89ef25e2fd69b650dd79d7ccc7 /env
parent1bff67eda73dbeec00ae6b8fbf6bd3a824578578 (diff)
downloadu-boot-ce8808628e18cd3d71fbc001edb15e59ee824d91.zip
u-boot-ce8808628e18cd3d71fbc001edb15e59ee824d91.tar.gz
u-boot-ce8808628e18cd3d71fbc001edb15e59ee824d91.tar.bz2
xilinx: Add env redund offset
ENV_OFFSET_REDUND config is by default set to 0 for flashes. Saving the env variables is overwriting data at 0 offset, which is wrong. So add default redund env offset for Zynq, ZynqMP, Versal and microblaze platforms. Configured ENV_OFFSET_REDUND offsets by ENV_OFFSET + (2 * ENV_SIZE). In case of versal, we configured ENV_OFFSET_REDUND at 0x7F00000 instead of 0x7F80000. As BOOT_SCRIPT_OFFSET is already configured at 0x7F80000. Added ENV_OFFSET_REDUND in Kconfig for microblaze due to dependency of ENV_IS_IN_SPI_FLASH config. Below table specifies platform specific env and env redund offsets. PLAT ENV_OFFSET ENV_OFFSET_REDUND ---- ---------- ----------------- ZYNQ 0xE0000 0xE40000 ZYNQMP 0x1E00000 0x1E80000 VERSAL 0x7F40000 0x7F00000 MICROBLAZE 0x1080000 0x10C0000 Signed-off-by: T Karthik Reddy <t.karthik.reddy@xilinx.com> Signed-off-by: Michal Simek <michal.simek@amd.com> Link: https://lore.kernel.org/r/92656dc08f0f5a749d62b71ca6e77fe1be72e9e0.1661340204.git.michal.simek@amd.com
Diffstat (limited to 'env')
-rw-r--r--env/Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/env/Kconfig b/env/Kconfig
index 238e4c7..5329f75 100644
--- a/env/Kconfig
+++ b/env/Kconfig
@@ -570,6 +570,7 @@ config ENV_OFFSET_REDUND
hex "Redundant environment offset"
depends on (ENV_IS_IN_EEPROM || ENV_IS_IN_MMC || ENV_IS_IN_NAND || \
ENV_IS_IN_SPI_FLASH) && SYS_REDUNDAND_ENVIRONMENT
+ default 0x10C0000 if MICROBLAZE
default 0
help
Offset from the start of the device (or partition) of the redundant