summaryrefslogtreecommitdiff
path: root/cpu/mpc8xxx/ddr/main.c
diff options
context:
space:
mode:
authorHaiying Wang <Haiying.Wang@freescale.com>2008-10-03 12:36:55 -0400
committerWolfgang Denk <wd@denx.de>2008-10-18 21:54:04 +0200
commitdfb49108e4f86c2224e1f30124328b0de66ef72e (patch)
treeeb32da53135262c79c2e8a817e59388d53770f73 /cpu/mpc8xxx/ddr/main.c
parentdbbbb3abeff325855cae76e33d69d5665631443f (diff)
downloadu-boot-imx-dfb49108e4f86c2224e1f30124328b0de66ef72e.zip
u-boot-imx-dfb49108e4f86c2224e1f30124328b0de66ef72e.tar.gz
u-boot-imx-dfb49108e4f86c2224e1f30124328b0de66ef72e.tar.bz2
Pass dimm parameters to populate populate controller options
Because some dimm parameters like n_ranks needs to be used with the board frequency to choose the board parameters like clk_adjust etc. in the board_specific_paramesters table of the board ddr file, we need to pass the dimm parameters to the board file. * move ddr dimm parameters header file from /cpu to /include directory. * add ddr dimm parameters to populate board specific options. * Fix fsl_ddr_board_options() for all the 8xxx boards which call this function. Signed-off-by: Haiying Wang <Haiying.Wang@freescale.com>
Diffstat (limited to 'cpu/mpc8xxx/ddr/main.c')
-rw-r--r--cpu/mpc8xxx/ddr/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cpu/mpc8xxx/ddr/main.c b/cpu/mpc8xxx/ddr/main.c
index d26c5c5..700b897 100644
--- a/cpu/mpc8xxx/ddr/main.c
+++ b/cpu/mpc8xxx/ddr/main.c
@@ -319,7 +319,8 @@ fsl_ddr_compute(fsl_ddr_info_t *pinfo, unsigned int start_step)
*/
populate_memctl_options(
timing_params[i].all_DIMMs_registered,
- &pinfo->memctl_opts[i], i);
+ &pinfo->memctl_opts[i],
+ pinfo->dimm_params[i], i);
}
case STEP_ASSIGN_ADDRESSES: