]> git.sur5r.net Git - u-boot/blobdiff - board/dnp1110/dnp1110.c
EB+MCF-EV123 board: fix syntx error
[u-boot] / board / dnp1110 / dnp1110.c
index 24c3e00c7f57ae423d90f856b3b4b74650e8f5f8..ab8e7beb99b0e2a9d9f3408f313360cc11cc53f9 100644 (file)
@@ -24,8 +24,8 @@
 
 #include <common.h>
 #include <SA-1100.h>
-/* ------------------------------------------------------------------------- */
 
+DECLARE_GLOBAL_DATA_PTR;
 
 /*
  * Miscelaneous platform dependent initialisations
 
 int board_init (void)
 {
-       DECLARE_GLOBAL_DATA_PTR;
-
        /* memory and cpu-speed are setup before relocation */
        /* so we do _nothing_ here */
 
        /* arch number of DNP1110-Board */
        gd->bd->bi_arch_number = MACH_TYPE_DNP1110;
 
-    /* flash vpp on */
-    PPDR |= 0x80;      /* assumes LCD controller is off */
-    PPSR |= 0x80;
+       /* flash vpp on */
+       PPDR |= 0x80;   /* assumes LCD controller is off */
+       PPSR |= 0x80;
 
        return 0;
 }
 
 int dram_init (void)
 {
-       DECLARE_GLOBAL_DATA_PTR;
-
        gd->bd->bi_dram[0].start = PHYS_SDRAM_1;
        gd->bd->bi_dram[0].size = PHYS_SDRAM_1_SIZE;