i am using imx 8mplus lpddr4 evk and i.MX, Linux, LF6.6.3_1.0.0 BSP version
i have a requiremt to change the DRAM size so , i change the imx8p-evk.dts file memory region
imx8mp-evk.h file taken as a reference to change the dts file . the below are the macros present in the imx8mp-evk.h file .
#define CFG_SYS_INIT_RAM_ADDR 0x40000000
#define CFG_SYS_INIT_RAM_SIZE 0x80000
/* Totally 6GB DDR */
#define CFG_SYS_SDRAM_BASE 0x40000000
#define PHYS_SDRAM 0x40000000
#define PHYS_SDRAM_SIZE 0xC0000000 /* 3 GB */
#define PHYS_SDRAM_2 0x100000000
#ifdef CONFIG_TARGET_IMX8MP_DDR4_EVK
#define PHYS_SDRAM_2_SIZE 0x40000000 /* 1 GB */
#else
#define PHYS_SDRAM_2_SIZE 0xC0000000 /* 3 GB */
#endif
Now the memory node is present in imx8mp-evk.dts file , i comment the default memory node and i created new memory node . i compile the kernel and i verify the dtb it is updated , but after booting up it shows 6GB RAM . where am i missing any step ?. if anyone knows please help me.please find the attachment it shows DRAM : 6GB
/* memory@40000000 {
device_type = "memory";
reg = <0x0 0x40000000 0 0xc0000000>,
<0x1 0x00000000 0 0xc0000000>;
};
*/
memory@40000000 {
device_type = "memory";
reg = <0x0 0x40000000 0 0x40000000>;
};