Hi,
Now we used 512MB DDR on i.MX8X platform,and I need to change the memory map in code
How to set below code about 512MB memory?
/* Board has 3GB memory so fragment upper region and retain 1GB */
BRD_ERR(rm_memreg_frag(pt_boot, &mr_temp, 0x8C0000000ULL,
0xFFFFFFFFFULL));
/* Move M4 0 TCM */
BRD_ERR(rm_find_memreg(pt_boot, &mr_m4_0, 0x034FE0000ULL,
0x034FE0000ULL));
BRD_ERR(rm_assign_memreg(pt_boot, pt_m4_0, mr_m4_0));
/* Reserve DDR for M4_0 */
BRD_ERR(rm_memreg_frag(pt_boot, &mr_m4_0,
0x088000000ULL, 0x08FFFFFFFULL));
BRD_ERR(rm_assign_memreg(pt_boot, pt_m4_0, mr_m4_0));
/* Reserve FlexSPI for M4_0 */
BRD_ERR(rm_memreg_frag(pt_boot, &mr_m4_0, 0x08081000ULL,
0x08180FFFULL));
/* Create shared memory space */
BRD_ERR(rm_memreg_frag(pt_boot, &mr_sh,
0x090000000ULL, 0x091FFFFFFULL));
Hi Xu
additional patches were sent via mail, also may be useful:
Best regards
igor