From bc2b46b2fa67028eb56d2acac493b9d03cbd64e9 Mon Sep 17 00:00:00 2001
From: Troy Kisky <troy.kisky@boundarydevices.com>
Date: Thu, 3 Jan 2019 12:55:11 -0800
Subject: [PATCH] arm: imx8m: soc: imx8mq can have 4G, imx8mm can have 8G

Signed-off-by: Troy Kisky <troy.kisky@boundarydevices.com>
---
 arch/arm/mach-imx/imx8m/soc.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/arm/mach-imx/imx8m/soc.c b/arch/arm/mach-imx/imx8m/soc.c
index 67e1465be96..2b6b6107f8a 100644
--- a/arch/arm/mach-imx/imx8m/soc.c
+++ b/arch/arm/mach-imx/imx8m/soc.c
@@ -123,7 +123,11 @@ static struct mm_region imx8m_mem_map[] = {
 		/* DRAM2 */
 		.virt = 0x100000000UL,
 		.phys = 0x100000000UL,
+#ifdef CONFIG_IMX8MQ
 		.size = 0x040000000UL,
+#else
+		.size = 0x140000000UL,
+#endif
 		.attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) |
 			 PTE_BLOCK_OUTER_SHARE
 	}, {
-- 
GitLab