]> git.sur5r.net Git - u-boot/blobdiff - cpu/mpc86xx/cpu_init.c
Merge branch 'lwmon5' of /home/wd/git/u-boot/projects
[u-boot] / cpu / mpc86xx / cpu_init.c
index 4f8956e0afe18e7154089e93cdb5d7074f7a252f..0efd855a396ac3ed59fea7d5a3068440a94cbf2f 100644 (file)
@@ -28,6 +28,7 @@
 
 #include <common.h>
 #include <mpc86xx.h>
+#include <asm/fsl_law.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
@@ -49,6 +50,10 @@ void cpu_init_f(void)
        /* Clear initial global data */
        memset ((void *) gd, 0, sizeof (gd_t));
 
+#ifdef CONFIG_FSL_LAW
+       init_laws();
+#endif
+
        /* Map banks 0 and 1 to the FLASH banks 0 and 1 at preliminary
         * addresses - these have to be modified later when FLASH size
         * has been determined
@@ -114,5 +119,8 @@ void cpu_init_f(void)
  */
 int cpu_init_r(void)
 {
+#ifdef CONFIG_FSL_LAW
+       disable_law(0);
+#endif
        return 0;
 }