From: Lokesh Vutla Date: Sat, 27 Aug 2016 11:49:15 +0000 (+0530) Subject: board: ks2: Enable ECC using detected DDR size X-Git-Tag: v2016.11-rc1~20 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e92a6b2ee372d003602d71df427ec369be645cb6;p=u-boot 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 Reviewed-by: Tom Rini --- diff --git a/board/ti/ks2_evm/board.c b/board/ti/ks2_evm/board.c index 1de7df00b4..03254e1497 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; }