From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rajesh Bhagat Date: Wed, 3 Oct 2018 16:14:30 +0530 Subject: [U-Boot] [PATCH 24/53] armv8: ls1012a: update environment address for TFABOOT In-Reply-To: <20181003104459.5444-1-rajesh.bhagat@nxp.com> References: <20181003104459.5444-1-rajesh.bhagat@nxp.com> Message-ID: <20181003104459.5444-25-rajesh.bhagat@nxp.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Update environment address for TFABOOT from 3MB to 5MB offset. Required to support new flash layout used by TFA. Signed-off-by: Rajesh Bhagat --- 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