From 53e60095df8e6be963dd9e6a89a2b59b7bfabab6 Mon Sep 17 00:00:00 2001 From: Silvano di Ninno Date: Thu, 22 Nov 2018 03:01:50 +0100 Subject: [PATCH] TEE-330: i.MX8QM: OP-TEE: increase number of DRAM BANKS When OP-TEE is enabled a share memory is created between Linux and OP-TEE. On i.MX 8QM with the use of the SC subsystem, this creates a new chunk of memory. Add a new DRAM BANK, so that u-boot is able to capture correctly all the chunks of memory in meminfo. Signed-off-by: Silvano di Ninno (cherry picked from commit c89c493cd8657f5d520647c3a9a61861b3f267e0) --- include/configs/imx8qm_arm2.h | 2 +- include/configs/imx8qm_mek.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/configs/imx8qm_arm2.h b/include/configs/imx8qm_arm2.h index b0fe2078f9..451f9e3dfa 100644 --- a/include/configs/imx8qm_arm2.h +++ b/include/configs/imx8qm_arm2.h @@ -354,7 +354,7 @@ #define CONFIG_SYS_MALLOC_LEN ((CONFIG_ENV_SIZE + (32*1024)) * 1024) #define CONFIG_SYS_SDRAM_BASE 0x80000000 -#define CONFIG_NR_DRAM_BANKS 3 +#define CONFIG_NR_DRAM_BANKS 4 #define PHYS_SDRAM_1 0x80000000 #define PHYS_SDRAM_2 0x880000000 #define PHYS_SDRAM_1_SIZE 0x80000000 /* 2 GB */ diff --git a/include/configs/imx8qm_mek.h b/include/configs/imx8qm_mek.h index 61662433a6..29b0a7e621 100644 --- a/include/configs/imx8qm_mek.h +++ b/include/configs/imx8qm_mek.h @@ -352,7 +352,7 @@ #define CONFIG_SYS_MALLOC_LEN ((CONFIG_ENV_SIZE + (32*1024)) * 1024) #define CONFIG_SYS_SDRAM_BASE 0x80000000 -#define CONFIG_NR_DRAM_BANKS 3 +#define CONFIG_NR_DRAM_BANKS 4 #define PHYS_SDRAM_1 0x80000000 #define PHYS_SDRAM_2 0x880000000 #define PHYS_SDRAM_1_SIZE 0x80000000 /* 2 GB */