85xx: Convert cpu_init_f code to use out_be32 for LBC registers
authorKumar Gala <galak@kernel.crashing.org>
Wed, 14 Apr 2010 04:56:23 +0000 (23:56 -0500)
committerKumar Gala <galak@kernel.crashing.org>
Tue, 27 Apr 2010 03:37:55 +0000 (22:37 -0500)
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
arch/powerpc/cpu/mpc85xx/cpu_init.c

index e0126d331af8f93ba1801401728a72fa7bcd2e87..b517e06608787a1006c5baefb4c1eeb1b847f7c6 100644 (file)
@@ -180,54 +180,54 @@ void cpu_init_f (void)
         * has been determined
         */
 #if defined(CONFIG_SYS_OR0_REMAP)
-       memctl->or0 = CONFIG_SYS_OR0_REMAP;
+       out_be32(&memctl->or0, CONFIG_SYS_OR0_REMAP);
 #endif
 #if defined(CONFIG_SYS_OR1_REMAP)
-       memctl->or1 = CONFIG_SYS_OR1_REMAP;
+       out_be32(&memctl->or1, CONFIG_SYS_OR1_REMAP);
 #endif
 
        /* now restrict to preliminary range */
        /* if cs1 is already set via debugger, leave cs0/cs1 alone */
        if (! memctl->br1 & 1) {
 #if defined(CONFIG_SYS_BR0_PRELIM) && defined(CONFIG_SYS_OR0_PRELIM)
-               memctl->br0 = CONFIG_SYS_BR0_PRELIM;
-               memctl->or0 = CONFIG_SYS_OR0_PRELIM;
+               out_be32(&memctl->br0, CONFIG_SYS_BR0_PRELIM);
+               out_be32(&memctl->or0, CONFIG_SYS_OR0_PRELIM);
 #endif
 
 #if defined(CONFIG_SYS_BR1_PRELIM) && defined(CONFIG_SYS_OR1_PRELIM)
-               memctl->or1 = CONFIG_SYS_OR1_PRELIM;
-               memctl->br1 = CONFIG_SYS_BR1_PRELIM;
+               out_be32(&memctl->or1, CONFIG_SYS_OR1_PRELIM);
+               out_be32(&memctl->br1, CONFIG_SYS_BR1_PRELIM);
 #endif
        }
 
 #if defined(CONFIG_SYS_BR2_PRELIM) && defined(CONFIG_SYS_OR2_PRELIM)
-       memctl->or2 = CONFIG_SYS_OR2_PRELIM;
-       memctl->br2 = CONFIG_SYS_BR2_PRELIM;
+       out_be32(&memctl->or2, CONFIG_SYS_OR2_PRELIM);
+       out_be32(&memctl->br2, CONFIG_SYS_BR2_PRELIM);
 #endif
 
 #if defined(CONFIG_SYS_BR3_PRELIM) && defined(CONFIG_SYS_OR3_PRELIM)
-       memctl->or3 = CONFIG_SYS_OR3_PRELIM;
-       memctl->br3 = CONFIG_SYS_BR3_PRELIM;
+       out_be32(&memctl->or3, CONFIG_SYS_OR3_PRELIM);
+       out_be32(&memctl->br3, CONFIG_SYS_BR3_PRELIM);
 #endif
 
 #if defined(CONFIG_SYS_BR4_PRELIM) && defined(CONFIG_SYS_OR4_PRELIM)
-       memctl->or4 = CONFIG_SYS_OR4_PRELIM;
-       memctl->br4 = CONFIG_SYS_BR4_PRELIM;
+       out_be32(&memctl->or4, CONFIG_SYS_OR4_PRELIM);
+       out_be32(&memctl->br4, CONFIG_SYS_BR4_PRELIM);
 #endif
 
 #if defined(CONFIG_SYS_BR5_PRELIM) && defined(CONFIG_SYS_OR5_PRELIM)
-       memctl->or5 = CONFIG_SYS_OR5_PRELIM;
-       memctl->br5 = CONFIG_SYS_BR5_PRELIM;
+       out_be32(&memctl->or5, CONFIG_SYS_OR5_PRELIM);
+       out_be32(&memctl->br5, CONFIG_SYS_BR5_PRELIM);
 #endif
 
 #if defined(CONFIG_SYS_BR6_PRELIM) && defined(CONFIG_SYS_OR6_PRELIM)
-       memctl->or6 = CONFIG_SYS_OR6_PRELIM;
-       memctl->br6 = CONFIG_SYS_BR6_PRELIM;
+       out_be32(&memctl->or6, CONFIG_SYS_OR6_PRELIM);
+       out_be32(&memctl->br6, CONFIG_SYS_BR6_PRELIM);
 #endif
 
 #if defined(CONFIG_SYS_BR7_PRELIM) && defined(CONFIG_SYS_OR7_PRELIM)
-       memctl->or7 = CONFIG_SYS_OR7_PRELIM;
-       memctl->br7 = CONFIG_SYS_BR7_PRELIM;
+       out_be32(&memctl->or7, CONFIG_SYS_OR7_PRELIM);
+       out_be32(&memctl->br7, CONFIG_SYS_BR7_PRELIM);
 #endif
 
 #if defined(CONFIG_CPM2)