* The PS/2 mux on the BMS2003 board needs 450 ms after power on
[oweals/u-boot.git] / board / MAI / AmigaOneG3SE / macros.h
index 0fbe39b3ba8fd3cd4e56afa9e4aa3e26dae86136..6020d7e1cb2c99cd398c6bbcafe6d0044cc670df 100644 (file)
@@ -5,20 +5,20 @@
        /*
        ** Load a long integer into a register
        */
-       .macro liw reg, value
-                lis \reg, \value@h
-                ori \reg, \reg, \value@l
-        .endm
+       .macro liw reg, value
+               lis \reg, \value@h
+               ori \reg, \reg, \value@l
+       .endm
 
 
-       /* 
+       /*
        ** Generate config_addr request
        ** This macro expects the values in registers:
        ** r3 - bus
        ** r4 - devfn
        ** r5 - offset
        */
-       .macro config_addr      
+       .macro config_addr
                rlwinm  r9, r5, 24, 0, 6
                rlwinm  r8, r4, 16, 0, 31
                rlwinm  r7, r3, 8, 0, 31
@@ -31,7 +31,7 @@
                sync
        .endm
 
-       
+
        /*
        ** Generate config_data address
        */
        /*
        ** Write a byte value to an output port
        */
-        .macro outb port, value
-                lis     r2, 0xfe00
-                li      r0, \value
-                stb     r0, \port(r2)
-        .endm
+       .macro outb port, value
+               lis     r2, 0xfe00
+               li      r0, \value
+               stb     r0, \port(r2)
+       .endm
 
 
        /*
        ** Write a register byte value to an output port
        */
-        .macro outbr port, value
-                lis     r2, 0xfe00
-                stb     \value, \port(r2)
-        .endm
+       .macro outbr port, value
+               lis     r2, 0xfe00
+               stb     \value, \port(r2)
+       .endm
 
 
-       /* 
+       /*
        ** Read a byte value from a port into a specified register
        */
-        .macro inb reg, port
-                lis     r2, 0xfe00
-                lbz     \reg, \port(r2)
-        .endm
+       .macro inb reg, port
+               lis     r2, 0xfe00
+               lbz     \reg, \port(r2)
+       .endm
 
 
        /*
        ** Write a byte to the SuperIO config area
        */
-        .macro siowb offset, value
-                li      r3, 0
-                li      r4, (7<<3)
-                li      r5, \offset
-                li      r6, \value
-                bl      pci_write_cfg_byte
-        .endm
+       .macro siowb offset, value
+               li      r3, 0
+               li      r4, (7<<3)
+               li      r5, \offset
+               li      r6, \value
+               bl      pci_write_cfg_byte
+       .endm
 
 #endif