summaryrefslogtreecommitdiff
path: root/include/configs
diff options
context:
space:
mode:
authorYe Li <ye.li@nxp.com>2018-10-31 18:37:45 -0700
committerNitin Garg <nitin.garg@nxp.com>2018-11-02 20:50:10 -0500
commitb84752f6de6c7dd74bd93c641b12f48e9846c8ab (patch)
tree02047da3d1f79c1f6ac216c649ee6ad7342a3b10 /include/configs
parent2790e221b6a6a14d3b3b3faf7f3355bc30d91625 (diff)
MLK-20051-2 imx8mq_arm2: Split DDR to two banks for iMX8MQ DDR4 ARM2
Because the iMX8MQ DDR4 ARM2 has 4GB DDR. To fit new MMU settings, we split it to two banks. The first bank has 3GB DDR, reach to 4GB memory map. The second bank has 1GB DDR, is beyond 4GB memory map. Notice: there is no OPTEE for ARM2 board. The trust zone setting in OPTEE for iMX8MQ EVK is not match with DDR size on ARM2 board. So ARM2 Only can work without OPTEE. Signed-off-by: Ye Li <ye.li@nxp.com> Reviewed-by: Peng Fan <peng.fan@nxp.com>
Diffstat (limited to 'include/configs')
-rw-r--r--include/configs/imx8mq_arm2.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/configs/imx8mq_arm2.h b/include/configs/imx8mq_arm2.h
index fc86accbbe..c9aec6a166 100644
--- a/include/configs/imx8mq_arm2.h
+++ b/include/configs/imx8mq_arm2.h
@@ -241,10 +241,14 @@
#define PHYS_SDRAM 0x40000000
#ifdef CONFIG_TARGET_IMX8MQ_DDR3L_ARM2
#define PHYS_SDRAM_SIZE 0x80000000 /* 2GB DDR3L for two rank */
+#define CONFIG_NR_DRAM_BANKS 1
#else
-#define PHYS_SDRAM_SIZE 0x100000000 /* 4GB DDR4 */
+#define PHYS_SDRAM_SIZE 0xc0000000 /* 3GB */
+#define PHYS_SDRAM_2 0x100000000
+#define PHYS_SDRAM_2_SIZE 0x40000000 /* 1GB */
+#define CONFIG_NR_DRAM_BANKS 2
#endif
-#define CONFIG_NR_DRAM_BANKS 1
+
#define CONFIG_SYS_MEMTEST_START PHYS_SDRAM
#define CONFIG_SYS_MEMTEST_END (CONFIG_SYS_MEMTEST_START + (PHYS_SDRAM_SIZE >> 1))