]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
board: k2g: Enable ECC byte lane
authorLokesh Vutla <lokeshvutla@ti.com>
Sat, 27 Aug 2016 11:49:16 +0000 (17:19 +0530)
committerTom Rini <trini@konsulko.com>
Sun, 2 Oct 2016 00:05:07 +0000 (20:05 -0400)
Enable ECC byte lane for k2g-evm

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
arch/arm/mach-keystone/ddr3.c

index 34606f4b2f77380dedbd58a874f2f14b497c8d82..6b92530e42101b6d0efa17ca02a3cf974155e28c 100644 (file)
@@ -65,9 +65,8 @@ void ddr3_init_ddrphy(u32 base, struct ddr3_phy_config *phy_cfg)
        while ((__raw_readl(base + KS2_DDRPHY_PGSR0_OFFSET) & 0x1) != 0x1)
                ;
 
-       /* Disable ECC for K2G */
        if (cpu_is_k2g()) {
-               clrbits_le32(base + KS2_DDRPHY_DATX8_4_OFFSET, 0x1);
+               setbits_le32(base + KS2_DDRPHY_DATX8_4_OFFSET, 0x1);
                clrbits_le32(base + KS2_DDRPHY_DATX8_5_OFFSET, 0x1);
                clrbits_le32(base + KS2_DDRPHY_DATX8_6_OFFSET, 0x1);
                clrbits_le32(base + KS2_DDRPHY_DATX8_7_OFFSET, 0x1);