[U-Boot] [PATCH 24/53] armv8: ls1012a: update environment address for TFABOOT
Rajesh Bhagat
rajesh.bhagat at nxp.com
Wed Oct 3 10:44:30 UTC 2018
Update environment address for TFABOOT from 3MB to 5MB
offset. Required to support new flash layout used by
TFA.
Signed-off-by: Rajesh Bhagat <rajesh.bhagat at nxp.com>
---
include/configs/ls1012a_common.h | 4 ++++
include/configs/ls1012afrwy.h | 4 ++++
2 files changed, 8 insertions(+)
diff --git a/include/configs/ls1012a_common.h b/include/configs/ls1012a_common.h
index 07998f7eee..8f1f63920e 100644
--- a/include/configs/ls1012a_common.h
+++ b/include/configs/ls1012a_common.h
@@ -62,7 +62,11 @@
#define CONFIG_ENV_OVERWRITE
#define CONFIG_ENV_SIZE 0x40000 /* 256KB */
+#ifdef CONFIG_TFABOOT
+#define CONFIG_ENV_OFFSET 0x500000 /* 5MB */
+#else
#define CONFIG_ENV_OFFSET 0x300000 /* 3MB */
+#endif
#define CONFIG_ENV_SECT_SIZE 0x40000
#endif
diff --git a/include/configs/ls1012afrwy.h b/include/configs/ls1012afrwy.h
index 8129595d51..ae85ec1e72 100644
--- a/include/configs/ls1012afrwy.h
+++ b/include/configs/ls1012afrwy.h
@@ -31,7 +31,11 @@
#endif
#undef CONFIG_ENV_OFFSET
+#ifdef CONFIG_TFABOOT
+#define CONFIG_ENV_OFFSET 0x500000
+#else
#define CONFIG_ENV_OFFSET 0x1D0000
+#endif
#undef FSL_QSPI_FLASH_SIZE
#define FSL_QSPI_FLASH_SIZE SZ_16M
#undef CONFIG_ENV_SECT_SIZE
--
2.17.1
More information about the U-Boot
mailing list