]> Git Repo - J-u-boot.git/commitdiff
arm: omap-common: emif: allow to map memory without interleaving
authorFelipe Balbi <[email protected]>
Thu, 6 Nov 2014 14:28:46 +0000 (08:28 -0600)
committerTom Rini <[email protected]>
Thu, 4 Dec 2014 16:04:13 +0000 (11:04 -0500)
If we want to have two sections, one on each EMIF, without
interleaving, current code wouldn't enable emif2. Fix that
problem.

Signed-off-by: Felipe Balbi <[email protected]>
Reviewed-by: Tom Rini <[email protected]>
arch/arm/cpu/armv7/omap-common/emif-common.c

index c8e9bc86e588c8dc3e54e255af7cabbabf7b6618..e601ba1886fb82a9b552b099dc1b14a09dfedd3b 100644 (file)
@@ -1226,13 +1226,14 @@ void dmm_init(u32 base)
                        emif1_enabled = 1;
                        emif2_enabled = 1;
                        break;
-               } else if (valid == 1) {
+               }
+
+               if (valid == 1)
                        emif1_enabled = 1;
-               } else if (valid == 2) {
+
+               if (valid == 2)
                        emif2_enabled = 1;
-               }
        }
-
 }
 
 static void do_bug0039_workaround(u32 base)
This page took 0.030017 seconds and 4 git commands to generate.