how to use the ddr code generated from codewarrior

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

how to use the ddr code generated from codewarrior

ソリューションへジャンプ
2,304件の閲覧回数
Simon666
Contributor II

we use 10*MT40A1G16 to get 16GB memory, one ddr controller connect 8GB. three questions:

1)on codewarrior ddr config, we should select what dram type? NoDimm or Discrete?

2)how to use the two ddr_init1.c and ddr_init2.c and other ddr code.

3)in lsdk components\firmware\atf\plat\nxp\soc-lx2160a\lx2160ardb\ddr_init.c,

we should define CONFIG_STATIC_DDR or  CONFIG_DDR_NODIMM?

what's their difference.

thanks

 

 
1 解決策
2,295件の閲覧回数
yipingwang
NXP TechSupport
NXP TechSupport

1. You could select "Discrete DRAM".

2. Please use ddr_init1.c to replace components\firmware\atf\plat\nxp\soc-lx2160a\lx2160ardb\ddr_init.c in LSDK.

3. When a board design uses fixed or discrete DDR, static timing can be used to configure DDR timing parameters. Define macro “CONFIG_STATIC_DDR” in plat/nxp///plafform_def.h to enable discrete DDR timings. Define board_static_ddr() function and structure ddr_cfg_regs in file ddr_init.c. It configures DDR controller configuration registers directly.

Define macro “CONFIG_DDR_NODIMM” in plat/nxp///platform_def.h to enable MOCK DIMM support. Hardcoded timing in place of reading SPD.

 

元の投稿で解決策を見る

0 件の賞賛
返信
4 返答(返信)
1,756件の閲覧回数
saidivvela
Contributor II

Can we use CONFIG_DDR_NODIMM  for static DDR on board ??
Will it work this way ?

0 件の賞賛
返信
1,750件の閲覧回数
Simon666
Contributor II

CONFIG_DDR_NODIMM is working

2,296件の閲覧回数
yipingwang
NXP TechSupport
NXP TechSupport

1. You could select "Discrete DRAM".

2. Please use ddr_init1.c to replace components\firmware\atf\plat\nxp\soc-lx2160a\lx2160ardb\ddr_init.c in LSDK.

3. When a board design uses fixed or discrete DDR, static timing can be used to configure DDR timing parameters. Define macro “CONFIG_STATIC_DDR” in plat/nxp///plafform_def.h to enable discrete DDR timings. Define board_static_ddr() function and structure ddr_cfg_regs in file ddr_init.c. It configures DDR controller configuration registers directly.

Define macro “CONFIG_DDR_NODIMM” in plat/nxp///platform_def.h to enable MOCK DIMM support. Hardcoded timing in place of reading SPD.

 

0 件の賞賛
返信
2,280件の閲覧回数
Simon666
Contributor II

can I use CONFIG_DDR_NODIMM too? I can get DDR parameters to NODIMM and it's more readable.

0 件の賞賛
返信