summaryrefslogtreecommitdiff
path: root/include/configs
diff options
context:
space:
mode:
authorFrancesco Dolcini <francesco.dolcini@toradex.com>2021-09-01 10:48:03 +0300
committerStefano Babic <sbabic@denx.de>2022-02-05 15:38:38 +0300
commit0c141103b4601cf0957122255f5b284184be9117 (patch)
tree1c95808f21b852a7e1291a142289a31cd54bb9e9 /include/configs
parent3aaabfe9ff4bbcd11096513b1b28d1fb0a40800f (diff)
downloadu-boot-0c141103b4601cf0957122255f5b284184be9117.tar.xz
colibri-imx7: improve env badblock management
Use the complete 512kb (4 blocks) nand partition reserved for u-boot environment instead of just the first block, this allows the module to have a working environment even if 3 blocks are bad. Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
Diffstat (limited to 'include/configs')
-rw-r--r--include/configs/colibri_imx7.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/configs/colibri_imx7.h b/include/configs/colibri_imx7.h
index faf27ba4fa..92e24ea8c6 100644
--- a/include/configs/colibri_imx7.h
+++ b/include/configs/colibri_imx7.h
@@ -180,6 +180,11 @@
#define CONFIG_SYS_INIT_SP_ADDR \
(CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_SP_OFFSET)
+/* environment organization */
+#if defined(CONFIG_ENV_IS_IN_NAND)
+#define CONFIG_ENV_RANGE (4 * CONFIG_ENV_SIZE)
+#endif
+
#ifdef CONFIG_TARGET_COLIBRI_IMX7_NAND
/* NAND stuff */
#define CONFIG_SYS_MAX_NAND_DEVICE 1