From 06d688e8193ffdb5461bf3485aaf782ff98791b0 Mon Sep 17 00:00:00 2001 From: Nitin Garg Date: Fri, 21 Jan 2022 14:56:27 -0600 Subject: LF-5372: Reserve DDR ECC region for DXL When the 1st 16MB of DDR is ECC protected, the end of DDR region is reserved for ECC data - 1MB out of 512M and 2MB out of 1024M config. Signed-off-by: Nitin Garg (cherry picked from commit 0d9a65af80bfd6d2b10657e84a3e509f787dfb1f) --- include/configs/imx8dxl_evk.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/configs/imx8dxl_evk.h b/include/configs/imx8dxl_evk.h index 4d2df35987..ccd81ab5da 100644 --- a/include/configs/imx8dxl_evk.h +++ b/include/configs/imx8dxl_evk.h @@ -290,9 +290,9 @@ /* total DDR is 1GB */ #if defined(CONFIG_TARGET_IMX8DXL_DDR3_EVK) -#define PHYS_SDRAM_1_SIZE 0x20000000 +#define PHYS_SDRAM_1_SIZE 0x1FF00000 /* 512MB - ECC region 1MB */ #else -#define PHYS_SDRAM_1_SIZE 0x40000000 /* 1 GB */ +#define PHYS_SDRAM_1_SIZE 0x3FE00000 /* 1 GB - ECC region 2MB */ #endif #define PHYS_SDRAM_2_SIZE 0x00000000 -- cgit v1.2.3