About DDR physical addresses

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

About DDR physical addresses

155 次查看
kojimiura
Contributor I
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

 

 
0 项奖励
回复
2 回复数

111 次查看
kojimiura
Contributor I

Thank you.

0 项奖励
回复

123 次查看
yipingwang
NXP TechSupport
NXP TechSupport

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

0 项奖励
回复