]> err.no Git - linux-2.6/commitdiff
Blackfin arch: add TWIx_REGBASE and SPIx_REGBASE to specific CPU header files, use...
authorBryan Wu <bryan.wu@analog.com>
Wed, 10 Oct 2007 16:30:56 +0000 (00:30 +0800)
committerBryan Wu <bryan.wu@analog.com>
Wed, 10 Oct 2007 16:30:56 +0000 (00:30 +0800)
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
include/asm-blackfin/bfin5xx_spi.h
include/asm-blackfin/mach-bf527/defBF52x_base.h
include/asm-blackfin/mach-bf533/defBF532.h
include/asm-blackfin/mach-bf537/defBF534.h
include/asm-blackfin/mach-bf548/defBF544.h
include/asm-blackfin/mach-bf548/defBF548.h
include/asm-blackfin/mach-bf548/defBF549.h
include/asm-blackfin/mach-bf548/defBF54x_base.h
include/asm-blackfin/mach-bf561/defBF561.h

index 95c1c952e7c1420a42c33f354fe11372affa4e79..f617d8765451dab134799589a1265b08e6e96fce 100644 (file)
@@ -21,8 +21,6 @@
 #ifndef _SPI_CHANNEL_H_
 #define _SPI_CHANNEL_H_
 
-#define SPI0_REGBASE       0xffc00500
-
 #define SPI_READ              0
 #define SPI_WRITE             1
 
index 0b2fb5036ed0c9fcecc648da595db762815b6d61..b1ff67db01f8e78f23283613fb2457000908e6fd 100644 (file)
 
 
 /* SPI Controller                      (0xFFC00500 - 0xFFC005FF)                                                               */
+#define SPI0_REGBASE                   0xFFC00500
 #define SPI_CTL                                0xFFC00500      /* SPI Control Register                                         */
 #define SPI_FLG                                0xFFC00504      /* SPI Flag register                                            */
 #define SPI_STAT                       0xFFC00508      /* SPI Status register                                          */
 
 
 /* Two-Wire Interface          (0xFFC01400 - 0xFFC014FF)                                                               */
+#define TWI0_REGBASE                   0xFFC01400
 #define TWI_CLKDIV                     0xFFC01400      /* Serial Clock Divider Register                        */
 #define TWI_CONTROL                    0xFFC01404      /* TWI Control Register                                         */
 #define TWI_SLAVE_CTL          0xFFC01408      /* Slave Mode Control Register                          */
index 81b4af17c6a3f6f709017960baf1dcfc6065be2e..37134aaf9954f8fcaa2343f45406e9e0f00ae667 100644 (file)
 #define UART_GCTL                               0xFFC00424     /* Global Control Register */
 
 /* SPI Controller (0xFFC00500 - 0xFFC005FF) */
+#define SPI0_REGBASE                   0xFFC00500
 #define SPI_CTL                        0xFFC00500      /* SPI Control Register */
 #define SPI_FLG                        0xFFC00504      /* SPI Flag register */
 #define SPI_STAT                       0xFFC00508      /* SPI Status register */
index dce4c543a339c05f84c90464284784ef671c731b..d0d80d3152bab06f800b88c09632adb67d2d72bd 100644 (file)
@@ -86,6 +86,7 @@
 #define UART0_GCTL                     0xFFC00424      /* Global Control Register                                      */
 
 /* SPI Controller                      (0xFFC00500 - 0xFFC005FF)                                                               */
+#define SPI0_REGBASE                   0xFFC00500
 #define SPI_CTL                                0xFFC00500      /* SPI Control Register                                         */
 #define SPI_FLG                                0xFFC00504      /* SPI Flag register                                            */
 #define SPI_STAT                       0xFFC00508      /* SPI Status register                                          */
 #define PPI_FRAME                      0xFFC01010      /* PPI Frame Length Register    */
 
 /* Two-Wire Interface          (0xFFC01400 - 0xFFC014FF)                                                               */
+#define TWI0_REGBASE                   0xFFC01400
 #define TWI_CLKDIV                     0xFFC01400      /* Serial Clock Divider Register                        */
 #define TWI_CONTROL                    0xFFC01404      /* TWI Control Register                                         */
 #define TWI_SLAVE_CTL          0xFFC01408      /* Slave Mode Control Register                          */
index dd955dcd39b8949cb4aafd20e52b333c80386b32..760307e34b9e751f25a55c64c26f6d47c768eedc 100644 (file)
@@ -81,6 +81,7 @@
 
 /* Two Wire Interface Registers (TWI1) */
 
+#define                     TWI1_REGBASE  0xffc02200
 #define                      TWI1_CLKDIV  0xffc02200   /* Clock Divider Register */
 #define                     TWI1_CONTROL  0xffc02204   /* TWI Control Register */
 #define                  TWI1_SLAVE_CTRL  0xffc02208   /* TWI Slave Mode Control Register */
index 8d4214e0807ccac3d58b90b5ae277f5b21569d9a..70af33c963b068c89455905378ba95b171a7cf44 100644 (file)
 
 /* Two Wire Interface Registers (TWI1) */
 
+#define                     TWI1_REGBASE  0xffc02200
 #define                      TWI1_CLKDIV  0xffc02200   /* Clock Divider Register */
 #define                     TWI1_CONTROL  0xffc02204   /* TWI Control Register */
 #define                  TWI1_SLAVE_CTRL  0xffc02208   /* TWI Slave Mode Control Register */
 
 /* SPI2  Registers */
 
+#define                     SPI2_REGBASE  0xffc02400
 #define                         SPI2_CTL  0xffc02400   /* SPI2 Control Register */
 #define                         SPI2_FLG  0xffc02404   /* SPI2 Flag Register */
 #define                        SPI2_STAT  0xffc02408   /* SPI2 Status Register */
index c2f4734da48df9ca9d96a02d868c2af734e6a9a9..50b3fe55ef0c182137ea6abd11c5c3a2ee5d3d26 100644 (file)
 
 /* Two Wire Interface Registers (TWI1) */
 
+#define                     TWI1_REGBASE  0xffc02200
 #define                      TWI1_CLKDIV  0xffc02200   /* Clock Divider Register */
 #define                     TWI1_CONTROL  0xffc02204   /* TWI Control Register */
 #define                  TWI1_SLAVE_CTRL  0xffc02208   /* TWI Slave Mode Control Register */
 
 /* SPI2  Registers */
 
+#define                     SPI2_REGBASE  0xffc02400
 #define                         SPI2_CTL  0xffc02400   /* SPI2 Control Register */
 #define                         SPI2_FLG  0xffc02404   /* SPI2 Flag Register */
 #define                        SPI2_STAT  0xffc02408   /* SPI2 Status Register */
index 895ddd40a838cce33bc295a79e68aea339aa6ab9..e2632db74baa4605c2594872f4047a37ae32a543 100644 (file)
 
 /* SPI0 Registers */
 
+#define                     SPI0_REGBASE  0xffc00500
 #define                         SPI0_CTL  0xffc00500   /* SPI0 Control Register */
 #define                         SPI0_FLG  0xffc00504   /* SPI0 Flag Register */
 #define                        SPI0_STAT  0xffc00508   /* SPI0 Status Register */
 
 /* Two Wire Interface Registers (TWI0) */
 
+#define                     TWI0_REGBASE  0xffc00700
 #define                      TWI0_CLKDIV  0xffc00700   /* Clock Divider Register */
 #define                     TWI0_CONTROL  0xffc00704   /* TWI Control Register */
 #define                  TWI0_SLAVE_CTRL  0xffc00708   /* TWI Slave Mode Control Register */
 
 /* SPI1 Registers */
 
+#define                     SPI1_REGBASE  0xffc02300
 #define                         SPI1_CTL  0xffc02300   /* SPI1 Control Register */
 #define                         SPI1_FLG  0xffc02304   /* SPI1 Flag Register */
 #define                        SPI1_STAT  0xffc02308   /* SPI1 Status Register */
index 0f2dc6e6335b60b108eedbeeed11b8c6a7d495b7..bf7dc4e00065d2023c2133c8f018c1a3f960e02c 100644 (file)
 #define UART_GCTL                      0xFFC00424      /* Global Control Register */
 
 /* SPI Controller (0xFFC00500 - 0xFFC005FF) */
+#define SPI0_REGBASE                   0xFFC00500
 #define SPI_CTL                        0xFFC00500      /* SPI Control Register */
 #define SPI_FLG                        0xFFC00504      /* SPI Flag register */
 #define SPI_STAT                       0xFFC00508      /* SPI Status register */