RE: Enable DDR ECC in Am62A processor » 0002-mitysom-62ax-hack-Reduce-4GB-size-for-ECC.patch
| board/cl/mitysom-62ax/ddr-setup.c | ||
|---|---|---|
|
#if IS_ENABLED(CONFIG_PHYS_64BIT)
|
||
|
gd->bd->bi_dram[1].start = CFG_SYS_SDRAM_BASE1;
|
||
|
gd->bd->bi_dram[1].size = 0x80000000; // 2GB
|
||
|
printf("Limiting LPDDR4 for ECC\n");
|
||
|
gd->bd->bi_dram[1].size -= 0x20000000; // -512MB for ECC
|
||
|
// TI calculates all this in k3_ddrss_lpddr4_ecc_calc_reserved_mem
|
||
|
// and normally applies it in k3_ddrss_ddr_fdt_fixup but we're not using it yet
|
||
|
#endif
|
||
|
break;
|
||
|
// MT53E2G32D4DE-046 AIT:C
|
||