summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorLokesh Vutla <lokeshvutla@ti.com>2016-08-27 17:19:15 +0530
committerTom Rini <trini@konsulko.com>2016-10-01 20:05:05 -0400
commite92a6b2ee372d003602d71df427ec369be645cb6 (patch)
tree47b66b4d08228296a54da36bf2a01f52bccb4923 /board
parent6f6c8630942b6d60735c2c728d9f476de0290f9e (diff)
downloadu-boot-imx-e92a6b2ee372d003602d71df427ec369be645cb6.zip
u-boot-imx-e92a6b2ee372d003602d71df427ec369be645cb6.tar.gz
u-boot-imx-e92a6b2ee372d003602d71df427ec369be645cb6.tar.bz2
board: ks2: Enable ECC using detected DDR size
EEC is being enabled based on the ddr size populated by SPD data. But not all keystone platforms have SPD data to detect ddr3 size. So, enable ECC using the detected DDR size. Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'board')
-rw-r--r--board/ti/ks2_evm/board.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/board/ti/ks2_evm/board.c b/board/ti/ks2_evm/board.c
index 1de7df0..03254e1 100644
--- a/board/ti/ks2_evm/board.c
+++ b/board/ti/ks2_evm/board.c
@@ -50,6 +50,9 @@ int dram_init(void)
if (ddr3_size)
ddr3_init_ecc(KS2_DDR3A_EMIF_CTRL_BASE, ddr3_size);
+ else
+ ddr3_init_ecc(KS2_DDR3A_EMIF_CTRL_BASE, gd->ram_size >> 30);
+
return 0;
}