diff mbox series

[U-Boot,24/53] armv8: ls1012a: update environment address for TFABOOT

Message ID 20181003104459.5444-25-rajesh.bhagat@nxp.com
State Superseded
Headers show
Series TF-A Boot support for NXP Chassis 2 platforms | expand

Commit Message

Rajesh Bhagat Oct. 3, 2018, 10:44 a.m. UTC
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@nxp.com>
---
 include/configs/ls1012a_common.h | 4 ++++
 include/configs/ls1012afrwy.h    | 4 ++++
 2 files changed, 8 insertions(+)
diff mbox series

Patch

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