arm: omap: emif-common: Disable interleaving
[oweals/u-boot.git] / arch / arm / mach-omap2 / emif-common.c
index 04bbfd84a20b26c8abd1a2f1e00ca0ed1ad0defd..9bdaa388c9fcd8c3e79d768aa922ef4ae29ad54c 100644 (file)
@@ -355,6 +355,9 @@ static void dra7_enable_ecc(u32 base, const struct emif_regs *regs)
                return;
 
        if (regs->emif_ecc_ctrl_reg & EMIF_ECC_CTRL_REG_ECC_EN_MASK) {
+               /* Disable high-order interleaving */
+               clrbits_le32(MA_PRIORITY, MA_HIMEM_INTERLEAVE_UN_MASK);
+
                writel(regs->emif_ecc_address_range_1,
                       &emif->emif_ecc_address_range_1);
                writel(regs->emif_ecc_address_range_2,