If you set the following
Is the DDR physical address from 0x00000000 to 0x3FFFFFFF?
// # LAW15 to DDR (Memory Complex 1) - 2GB
// mem [CCSR_ADDR 0xcf0] = 0x00000000
// mem [CCSR_ADDR 0xcf4] = 0x00000000
// mem [CCSR_ADDR 0xcf8] = 0x8100001E
addr = 0xFE000000;
*(unsigned int *)(addr + 0xcf8) = 0x8100001E;
addr = 0xFE008000;
*(unsigned int *)(addr + 0x000) = 0x0000003F; // cs[0].bnds
*(unsigned int *)(addr + 0x080) = 0x80014202; // cs[0].config
*(unsigned int *)(addr + 0x0c0) = 0x00000000; // cs[0].config_2
Thank you.
DDR memory address is from 0x00000000 to 0x7FFFFFFF.
Please also define the following in your source code.
*(unsigned int *)(addr + 0xcf4) = 0x00000000;
*(unsigned int *)(addr + 0xcf0) = 0x00000000;
register cf0 defines the low base address of LAWn
register cf4 defines the high base address of LAWn