From: Ed Swarthout Date: Thu, 14 Jan 2016 18:28:04 +0000 (-0600) Subject: drivers/ddr/fsl: fsl_ddr_sdram_size remove unused controllers X-Git-Tag: v2016.03-rc1~45^2~34 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=81dfdee0dc6c6ca6bdf0c75e0903afefc950d512;p=u-boot 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 Reviewed-by: York Sun --- diff --git a/drivers/ddr/fsl/main.c b/drivers/ddr/fsl/main.c index 139a3a7f5a..479184f4ed 100644 --- a/drivers/ddr/fsl/main.c +++ b/drivers/ddr/fsl/main.c @@ -857,6 +857,7 @@ fsl_ddr_sdram_size(void) info.num_ctrls = CONFIG_SYS_FSL_DDR_MAIN_NUM_CTRLS; info.dimm_slots_per_ctrl = CONFIG_DIMM_SLOTS_PER_CTLR; info.board_need_mem_reset = NULL; + remove_unused_controllers(&info); /* Compute it once normally. */ total_memory = fsl_ddr_compute(&info, STEP_GET_SPD, 1);