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. 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.
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.