diff mbox

[U-Boot] drivers/ddr/fsl: fsl_ddr_sdram_size remove unused controllers

Message ID 1452796084-28076-1-git-send-email-Ed.Swarthout@nxp.com
State Accepted
Commit 81dfdee0dc6c6ca6bdf0c75e0903afefc950d512
Delegated to: York Sun
Headers show

Commit Message

Ed Swarthout Jan. 14, 2016, 6:28 p.m. UTC
Following commit 61bd2f75, exclude unused DDR controller from
calculating RAM size for SPL boot.

Signed-off-by: Ed Swarthout <Ed.Swarthout@nxp.com>
---

Applies to v2016.01.
Tested on ls2080aqds.

 drivers/ddr/fsl/main.c | 1 +
 1 file changed, 1 insertion(+)

Comments

York Sun Jan. 27, 2016, 4:47 p.m. UTC | #1
On 01/14/2016 10:28 AM, Ed Swarthout wrote:
> Following commit 61bd2f75, exclude unused DDR controller from
> calculating RAM size for SPL boot.
> 
> Signed-off-by: Ed Swarthout <Ed.Swarthout@nxp.com>
> ---
> 
> Applies to v2016.01.
> Tested on ls2080aqds.
> 
>  drivers/ddr/fsl/main.c | 1 +
>  1 file changed, 1 insertion(+)

Applied to u-boot-fsl-qoriq master. Awaiting upstream.

Thanks.

York
diff mbox

Patch

diff --git a/drivers/ddr/fsl/main.c b/drivers/ddr/fsl/main.c
index c686632..6031396 100644
--- a/drivers/ddr/fsl/main.c
+++ b/drivers/ddr/fsl/main.c
@@ -859,6 +859,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);