]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - arch/arm/cpu/armv7/omap-common/emif-common.c
ARM: DRA72x: Update EMIF data
[karo-tx-uboot.git] / arch / arm / cpu / armv7 / omap-common / emif-common.c
index 429c4becf3469e7061abc08e6799f54d48c62ff5..71c0cc8f2e440e0fbc72a77ae19e197cabf634b1 100644 (file)
@@ -1384,8 +1384,10 @@ void sdram_init(void)
 
        if (sdram_type == EMIF_SDRAM_TYPE_DDR3 &&
            (!in_sdram && !warm_reset())) {
-               do_bug0039_workaround(EMIF1_BASE);
-               do_bug0039_workaround(EMIF2_BASE);
+               if (emif1_enabled)
+                       do_bug0039_workaround(EMIF1_BASE);
+               if (emif2_enabled)
+                       do_bug0039_workaround(EMIF2_BASE);
        }
 
        debug("<<sdram_init()\n");