Big white-space cleanup.
[platform/kernel/u-boot.git] / board / MAI / AmigaOneG3SE / via686.c
index 0483ca9..2427ce5 100644 (file)
@@ -28,6 +28,8 @@
 #include "via686.h"
 #include "i8259.h"
 
+DECLARE_GLOBAL_DATA_PTR;
+
 #undef VIA_DEBUG
 
 #ifdef  VIA_DEBUG
@@ -95,7 +97,7 @@ void via_isa_init(pci_dev_t dev, struct pci_config_table *table)
        pci_write_config_byte(dev, 0x80, 0);
        pci_write_config_byte(dev, 0x85, 0x01);
 
-/*     pci_write_config_byte(dev, 0x77, 0x00); */
+/*     pci_write_config_byte(dev, 0x77, 0x00); */
     }
 }
 
@@ -210,49 +212,47 @@ void via_cfgfunc_via686(struct pci_controller *host, pci_dev_t dev, struct pci_c
 }
 
 __asm         ("    .globl via_calibrate_time_base \n"
-              "via_calibrate_time_base:           \n"
-               "   lis     9, 0xfe00              \n"
-               "   li      0, 0x00                \n"
+              "via_calibrate_time_base:           \n"
+              "   lis     9, 0xfe00               \n"
+              "   li      0, 0x00                 \n"
               "   mttbu   0                       \n"
               "   mttbl   0                       \n"
               "ctb_loop:                          \n"
-               "   lbz     0, 0x61(9)             \n"
-               "   eieio                          \n"
-               "   andi.   0, 0, 0x20             \n"
-               "   beq     ctb_loop               \n"
-               "ctb_done:                         \n"
-               "   mftb    3                      \n"
-               "   blr");
+              "   lbz     0, 0x61(9)              \n"
+              "   eieio                           \n"
+              "   andi.   0, 0, 0x20              \n"
+              "   beq     ctb_loop                \n"
+              "ctb_done:                          \n"
+              "   mftb    3                       \n"
+              "   blr");
 
 extern unsigned long via_calibrate_time_base(void);
 
-void via_calibrate_bus_freq(void)
+void via_calibrate_bus_freq (void)
 {
-       DECLARE_GLOBAL_DATA_PTR;
-
-    unsigned long tb;
+       unsigned long tb;
 
-    /* This is 20 microseconds */
-    #define CALIBRATE_TIME 28636
+       /* This is 20 microseconds */
+#define CALIBRATE_TIME 28636
 
+       /* Enable the timer (and disable speaker) */
+       unsigned char c;
 
-    /* Enable the timer (and disable speaker) */
-    unsigned char c;
-    c = in_byte(0x61);
-    out_byte(0x61, ((c & ~0x02) | 0x01));
+       c = in_byte (0x61);
+       out_byte (0x61, ((c & ~0x02) | 0x01));
 
-    /* Set timer 2 to low/high writing */
-    out_byte(0x43, 0xb0);
-    out_byte(0x42, CALIBRATE_TIME & 0xff);
-    out_byte(0x42, CALIBRATE_TIME >>8);
+       /* Set timer 2 to low/high writing */
+       out_byte (0x43, 0xb0);
+       out_byte (0x42, CALIBRATE_TIME & 0xff);
+       out_byte (0x42, CALIBRATE_TIME >> 8);
 
-    /* Read the time base */
-    tb = via_calibrate_time_base();
+       /* Read the time base */
+       tb = via_calibrate_time_base ();
 
-    if (tb >= 700000)
-       gd->bus_clk = 133333333;
-    else
-       gd->bus_clk = 100000000;
+       if (tb >= 700000)
+               gd->bus_clk = 133333333;
+       else
+               gd->bus_clk = 100000000;
 
 }
 
@@ -262,9 +262,9 @@ void ide_led(uchar led, uchar status)
 /*     unsigned char c = in_byte(0x92); */
 
 /*     if (!status) */
-/*     out_byte(0x92, c | 0xC0); */
+/*     out_byte(0x92, c | 0xC0); */
 /*     else */
-/*     out_byte(0x92, c & ~0xC0); */
+/*     out_byte(0x92, c & ~0xC0); */
 }