how to use the ddr code generated from codewarrior

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

how to use the ddr code generated from codewarrior

跳至解决方案
2,294 次查看
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,285 次查看
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,746 次查看
saidivvela
Contributor II

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

0 项奖励
回复
1,740 次查看
Simon666
Contributor II

CONFIG_DDR_NODIMM is working

2,286 次查看
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,270 次查看
Simon666
Contributor II

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

0 项奖励
回复