Questions about value in reg MMDC1_MDASP.

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

Questions about value in reg MMDC1_MDASP.

跳至解决方案
1,603 次查看
simmisxu
Contributor III

Hi ALL,

    MMDC1_MDASP defines partioning between DDR CS0&CS1.

    The sabre ai board is 2G DDR with only CS0. I think the section CS0_END in MMDC1_MDASP  should be 011_1111. But the actual value in flash_header.S is 100_0111,

--------------------

    MXC_DCD_ITEM(71, MMDC_P0_BASE_ADDR + 0x040, 0x00000047)

---------------------

     I wonder what's the meaning of 100_0111, which is no listed in RM.

Thanks,

Simmis.

标签 (1)
1 解答
1,432 次查看
Yuri
NXP Employee
NXP Employee

From the register description : "Defines the absolute last address associated with CS0 with increments of 256Mb".


0x0200_0000 = 256Mb


Have a great day,
Yuri

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

在原帖中查看解决方案

5 回复数
1,432 次查看
Yuri
NXP Employee
NXP Employee

Hope the following considerations help :

Chan0 start addr = 0x1000_0000 ; density_MB_per_CS = 0x8000_0000

Chan0 CS0_END [(Chan0_start_addr + density_MB_per_CS) / 0x0200_0000] – 1 = 0x47


Have a great day,
Yuri

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复
1,432 次查看
simmisxu
Contributor III

Hi Yuri,

     Thanks for your quick reply.

     May I know the background of "dividing 0x0200_0000"

Thanks,

Simmis.

0 项奖励
回复
1,433 次查看
Yuri
NXP Employee
NXP Employee

From the register description : "Defines the absolute last address associated with CS0 with increments of 256Mb".


0x0200_0000 = 256Mb


Have a great day,
Yuri

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

1,432 次查看
simmisxu
Contributor III

Got it! According to this, I think values in RM are wrong.

--------------------------

CS0_END. Defines the absolute last address associated with CS0 with increments of 256Mb.

CS0_END=AXI_ADDRESS[31:25] bits.

000_0000 256Mb

000_0001 512Mb

001_1111 8Gb (1GB)

011_1111 16Gb (2GB) - default

111_1111 32Gb (4GB)

--------------------------

0 项奖励
回复
1,432 次查看
Yuri
NXP Employee
NXP Employee

CS0_END description in the RM does not mention about base address and provides only offsets.

0 项奖励
回复