mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 10:39:08 +00:00
driver/ddr/fsl: Add support for multiple DDR clocks
Controller number is passed for function calls to support individual DDR clock, depending on SoC implementation. It is backward compatible with exising platforms. Multiple clocks have been verifyed on LS2085A emulator. Signed-off-by: York Sun <yorksun@freescale.com>
This commit is contained in:
parent
b87e6f88e9
commit
03e664d8f4
14 changed files with 190 additions and 159 deletions
|
@ -450,7 +450,8 @@ fsl_ddr_compute(fsl_ddr_info_t *pinfo, unsigned int start_step,
|
|||
&(pinfo->spd_installed_dimms[i][j]);
|
||||
dimm_params_t *pdimm =
|
||||
&(pinfo->dimm_params[i][j]);
|
||||
retval = compute_dimm_parameters(spd, pdimm, i);
|
||||
retval = compute_dimm_parameters(
|
||||
i, spd, pdimm, j);
|
||||
#ifdef CONFIG_SYS_DDR_RAW_TIMING
|
||||
if (!i && !j && retval) {
|
||||
printf("SPD error on controller %d! "
|
||||
|
@ -507,10 +508,11 @@ fsl_ddr_compute(fsl_ddr_info_t *pinfo, unsigned int start_step,
|
|||
for (i = first_ctrl; i <= last_ctrl; i++) {
|
||||
debug("Computing lowest common DIMM"
|
||||
" parameters for memctl=%u\n", i);
|
||||
compute_lowest_common_dimm_parameters(
|
||||
pinfo->dimm_params[i],
|
||||
&timing_params[i],
|
||||
CONFIG_DIMM_SLOTS_PER_CTLR);
|
||||
compute_lowest_common_dimm_parameters
|
||||
(i,
|
||||
pinfo->dimm_params[i],
|
||||
&timing_params[i],
|
||||
CONFIG_DIMM_SLOTS_PER_CTLR);
|
||||
}
|
||||
|
||||
case STEP_GATHER_OPTS:
|
||||
|
@ -562,12 +564,13 @@ fsl_ddr_compute(fsl_ddr_info_t *pinfo, unsigned int start_step,
|
|||
continue;
|
||||
}
|
||||
|
||||
compute_fsl_memctl_config_regs(
|
||||
&pinfo->memctl_opts[i],
|
||||
&ddr_reg[i], &timing_params[i],
|
||||
pinfo->dimm_params[i],
|
||||
dbw_capacity_adjust[i],
|
||||
size_only);
|
||||
compute_fsl_memctl_config_regs
|
||||
(i,
|
||||
&pinfo->memctl_opts[i],
|
||||
&ddr_reg[i], &timing_params[i],
|
||||
pinfo->dimm_params[i],
|
||||
dbw_capacity_adjust[i],
|
||||
size_only);
|
||||
}
|
||||
|
||||
default:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue