How do I configure DDR_SDRAM_CFG and _2?

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

How do I configure DDR_SDRAM_CFG and _2?

1,594件の閲覧回数
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.

ラベル(2)
0 件の賞賛
返信
1 返信

1,422件の閲覧回数
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 件の賞賛
返信