From: Lokesh Vutla Date: Sat, 27 Aug 2016 17:19:15 +0530 Subject: [U-Boot] [PATCH 1/2] board: ks2: Enable ECC using detected DDR size In-Reply-To: <20160827114916.19294-1-lokeshvutla@ti.com> References: <20160827114916.19294-1-lokeshvutla@ti.com> Message-ID: <20160827114916.19294-2-lokeshvutla@ti.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 --- board/ti/ks2_evm/board.c | 3 +++ 1 file changed, 3 insertions(+) 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; } -- 2.9.3