mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-09-21 15:12:04 +00:00
drivers/ddr/fsl: fsl_ddr_sdram_size remove unused controllers
Following commit 61bd2f75
, exclude unused DDR controller from
calculating RAM size for SPL boot.
Signed-off-by: Ed Swarthout <Ed.Swarthout@nxp.com>
Reviewed-by: York Sun <york.sun@nxp.com>
This commit is contained in:
parent
c238ad0a33
commit
81dfdee0dc
1 changed files with 1 additions and 0 deletions
|
@ -857,6 +857,7 @@ fsl_ddr_sdram_size(void)
|
||||||
info.num_ctrls = CONFIG_SYS_FSL_DDR_MAIN_NUM_CTRLS;
|
info.num_ctrls = CONFIG_SYS_FSL_DDR_MAIN_NUM_CTRLS;
|
||||||
info.dimm_slots_per_ctrl = CONFIG_DIMM_SLOTS_PER_CTLR;
|
info.dimm_slots_per_ctrl = CONFIG_DIMM_SLOTS_PER_CTLR;
|
||||||
info.board_need_mem_reset = NULL;
|
info.board_need_mem_reset = NULL;
|
||||||
|
remove_unused_controllers(&info);
|
||||||
|
|
||||||
/* Compute it once normally. */
|
/* Compute it once normally. */
|
||||||
total_memory = fsl_ddr_compute(&info, STEP_GET_SPD, 1);
|
total_memory = fsl_ddr_compute(&info, STEP_GET_SPD, 1);
|
||||||
|
|
Loading…
Reference in a new issue