mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00:00
driver/ddr/fsl: Fix driver to support empty first slot
CS0 was not allowed to be empty by u-boot driver in the past to simplify the driver. This may be inconvenient for some debugging. This patch lifts the restrictions. Controller interleaving still requires CS0 populated. Signed-off-by: York Sun <yorksun@freescale.com>
This commit is contained in:
parent
66869f9554
commit
6b95be2280
5 changed files with 56 additions and 28 deletions
|
@ -728,7 +728,12 @@ unsigned int populate_memctl_options(int all_dimms_registered,
|
|||
|
||||
/* Choose ddr controller address mirror mode */
|
||||
#if defined(CONFIG_SYS_FSL_DDR3) || defined(CONFIG_SYS_FSL_DDR4)
|
||||
popts->mirrored_dimm = pdimm[0].mirrored_dimm;
|
||||
for (i = 0; i < CONFIG_DIMM_SLOTS_PER_CTLR; i++) {
|
||||
if (pdimm[i].n_ranks) {
|
||||
popts->mirrored_dimm = pdimm[i].mirrored_dimm;
|
||||
break;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
/* Global Timing Parameters. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue