i have to change the size of DRAM

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

i have to change the size of DRAM

301 Views
srinivas_123
Contributor III

i am using nxp imx 8mplus lpddr4 evk and I am using i.MX, Linux, LF6.6.3_1.0.0 BSP version

IN my evk I have 6gb of DRAM , in custom board I have to increase or decrease the size of 6gb DRAM.

what is best approach. what are the files I have to modify . please help me out

thanks & Regards 

srinivas

0 Kudos
Reply
2 Replies

276 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello,

The best approach is to increase the memory, but in this case you will have to change the bsp uboot to support new memory, if you don't know about uboot then 6GB is ok,

Regards

0 Kudos
Reply

219 Views
srinivas_123
Contributor III
#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
in imx8mp-evk.dts i comment default memory node and i created new one . still no change on target board
/* memory@40000000 {
device_type = "memory";
reg = <0x0 0x40000000 0 0xc0000000>,
<0x1 0x00000000 0 0xc0000000>;
};

*/

memory@40000000 {
device_type = "memory";
reg = <0x0 0x40000000 0 0x40000000>;
};
0 Kudos
Reply