]> git.sur5r.net Git - u-boot/blobdiff - cpu/arm1136/cpu.c
Separate omap24xx specific code from arm1136
[u-boot] / cpu / arm1136 / cpu.c
index 85a48491b35b7f68b9e09ec866989dd810bf3eb7..c27f8cd58c0cdad3e9900f4a751fe37b47082873 100644 (file)
@@ -33,8 +33,9 @@
 
 #include <common.h>
 #include <command.h>
-#if !defined(CONFIG_INTEGRATOR) && ! defined(CONFIG_ARCH_CINTEGRATOR)
-#include <asm/arch/omap2420.h>
+
+#ifdef CONFIG_USE_IRQ
+DECLARE_GLOBAL_DATA_PTR;
 #endif
 
 /* read co-processor 15, register #1 (control register) */
@@ -43,10 +44,10 @@ static unsigned long read_p15_c1 (void)
        unsigned long value;
 
        __asm__ __volatile__(
-                                               "mrc    p15, 0, %0, c1, c0, 0   @ read control reg\n"
-                                               : "=r" (value)
-                                               :
-                                               : "memory");
+                               "mrc    p15, 0, %0, c1, c0, 0   @ read control reg\n"
+                               : "=r" (value)
+                               :
+                               : "memory");
        return value;
 }
 
@@ -88,8 +89,6 @@ int cpu_init (void)
         * setup up stacks if necessary
         */
 #ifdef CONFIG_USE_IRQ
-       DECLARE_GLOBAL_DATA_PTR;
-
        IRQ_STACK_START = _armboot_start - CFG_MALLOC_LEN - CFG_GBL_DATA_SIZE - 4;
        FIQ_STACK_START = IRQ_STACK_START - CONFIG_STACKSIZE_IRQ;
 #endif