Questions about value in reg MMDC1_MDASP.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Questions about value in reg MMDC1_MDASP.

Jump to solution
1,078 Views
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.

Labels (1)
1 Solution
907 Views
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!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

5 Replies
907 Views
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 Kudos
907 Views
simmisxu
Contributor III

Hi Yuri,

     Thanks for your quick reply.

     May I know the background of "dividing 0x0200_0000"

Thanks,

Simmis.

0 Kudos
908 Views
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!
-----------------------------------------------------------------------------------------------------------------------

907 Views
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 Kudos
907 Views
Yuri
NXP Employee
NXP Employee

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

0 Kudos