From 163fd90ddc6740aa112dd9cd418c06fd408b7054 Mon Sep 17 00:00:00 2001 From: Josep Orga Date: Thu, 7 Oct 2021 15:44:14 +0200 Subject: [PATCH] imx8mn-somdevices: Change memory size from 2GB to 512MB. Signed-off-by: Josep Orga --- arch/arm/dts/imx8mn-somdevices.dts | 2 +- include/configs/imx8mn_somdevices.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/dts/imx8mn-somdevices.dts b/arch/arm/dts/imx8mn-somdevices.dts index d43928ec7b..8987b8f7b3 100644 --- a/arch/arm/dts/imx8mn-somdevices.dts +++ b/arch/arm/dts/imx8mn-somdevices.dts @@ -32,7 +32,7 @@ memory@40000000 { device_type = "memory"; - reg = <0x0 0x40000000 0 0x80000000>; + reg = <0x0 0x40000000 0 0x20000000>; }; reg_usdhc2_vmmc: regulator-usdhc2 { diff --git a/include/configs/imx8mn_somdevices.h b/include/configs/imx8mn_somdevices.h index 2916169b26..c49584b0ed 100644 --- a/include/configs/imx8mn_somdevices.h +++ b/include/configs/imx8mn_somdevices.h @@ -177,7 +177,7 @@ #define CONFIG_SYS_LOAD_ADDR CONFIG_LOADADDR #define CONFIG_SYS_INIT_RAM_ADDR 0x40000000 -#define CONFIG_SYS_INIT_RAM_SIZE 0x80000 +#define CONFIG_SYS_INIT_RAM_SIZE 0x20000 #define CONFIG_SYS_INIT_SP_OFFSET \ (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE) #define CONFIG_SYS_INIT_SP_ADDR \ @@ -200,7 +200,7 @@ #ifdef CONFIG_TARGET_IMX8MN_DDR3_SOMDEVICES #define PHYS_SDRAM_SIZE 0x40000000 /* 1GB DDR */ #else -#define PHYS_SDRAM_SIZE 0x80000000 /* 2GB DDR */ +#define PHYS_SDRAM_SIZE 0x20000000 /* 512MB DDR */ #endif #define CONFIG_MXC_UART_BASE UART2_BASE_ADDR -- 2.17.1