]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
drivers/ddr/fsl: fsl_ddr_sdram_size remove unused controllers
authorEd Swarthout <Ed.Swarthout@nxp.com>
Thu, 14 Jan 2016 18:28:04 +0000 (12:28 -0600)
committerYork Sun <york.sun@nxp.com>
Mon, 25 Jan 2016 16:24:16 +0000 (08:24 -0800)
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>
drivers/ddr/fsl/main.c

index 139a3a7f5adda094a09515125235a72751b7f4f4..479184f4ed7f00c886e312b102659e0b6b3c574b 100644 (file)
@@ -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);