Questions about value in reg MMDC1_MDASP.

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Questions about value in reg MMDC1_MDASP.

ソリューションへジャンプ
1,596件の閲覧回数
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,425件の閲覧回数
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,425件の閲覧回数
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,425件の閲覧回数
simmisxu
Contributor III

Hi Yuri,

     Thanks for your quick reply.

     May I know the background of "dividing 0x0200_0000"

Thanks,

Simmis.

0 件の賞賛
返信
1,426件の閲覧回数
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,425件の閲覧回数
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,425件の閲覧回数
Yuri
NXP Employee
NXP Employee

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

0 件の賞賛
返信