How do I configure DDR_SDRAM_CFG and _2?

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I configure DDR_SDRAM_CFG and _2?

220 Views
tracysmith
Contributor IV

Do you have example code on how to configure DDR_SDRAM_CFG_2[D_INIT]=0b'1 and how to configure DDR_SDRAM_CFG[ECC_EN]=0b'1?  Any recommended uboot code or unit test code available on configuring the DDR registers that you would recommend? Need inbyte/outbyte code to configure registers or whatever you recommend from linux or uboot. Any assistance will be greatly appreciated.

Labels (2)
0 Kudos
1 Reply

48 Views
yipingwang
NXP TechSupport
NXP TechSupport

Hello Tracy Smith,

In your u-boot source code, if you use raw timing or reading from SPD method to configure DDR controller, you could define the following in u-boot header file include/configs/<target>.h

#define CONFIG_DDR_ECC
#ifdef CONFIG_DDR_ECC
#define CONFIG_ECC_INIT_VIA_DDRCONTROLLER
#define CONFIG_MEM_INIT_VALUE           0xdeadbeef
#endif


Have a great day,
TIC

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

0 Kudos