diff options
author | Haiying Wang <Haiying.Wang@freescale.com> | 2008-10-03 16:36:55 (GMT) |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-10-18 19:54:04 (GMT) |
commit | dfb49108e4f86c2224e1f30124328b0de66ef72e (patch) | |
tree | eb32da53135262c79c2e8a817e59388d53770f73 /board/freescale/mpc8536ds/ddr.c | |
parent | dbbbb3abeff325855cae76e33d69d5665631443f (diff) | |
download | u-boot-dfb49108e4f86c2224e1f30124328b0de66ef72e.tar.xz |
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 'board/freescale/mpc8536ds/ddr.c')
-rw-r--r-- | board/freescale/mpc8536ds/ddr.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/board/freescale/mpc8536ds/ddr.c b/board/freescale/mpc8536ds/ddr.c index 2e88c79..3135d6d 100644 --- a/board/freescale/mpc8536ds/ddr.c +++ b/board/freescale/mpc8536ds/ddr.c @@ -10,6 +10,7 @@ #include <i2c.h> #include <asm/fsl_ddr_sdram.h> +#include <asm/fsl_ddr_dimm_params.h> static void get_spd(ddr2_spd_eeprom_t *spd, unsigned char i2c_address) { @@ -36,7 +37,9 @@ void fsl_ddr_get_spd(ddr2_spd_eeprom_t *ctrl_dimms_spd, } } -void fsl_ddr_board_options(memctl_options_t *popts, unsigned int ctrl_num) +void fsl_ddr_board_options(memctl_options_t *popts, + dimm_params_t *pdimm, + unsigned int ctrl_num) { /* * Factors to consider for clock adjust: |