Skip to content

Commit

Permalink
Blackfin arch: add TWIx_REGBASE and SPIx_REGBASE to specific CPU head…
Browse files Browse the repository at this point in the history
…er files, use the new REGBASE for board platform resources

Signed-off-by: Bryan Wu <bryan.wu@analog.com>
  • Loading branch information
Bryan Wu committed Oct 10, 2007
1 parent b7b2d34 commit 1d487f4
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 2 deletions.
2 changes: 0 additions & 2 deletions include/asm-blackfin/bfin5xx_spi.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@
#ifndef _SPI_CHANNEL_H_
#define _SPI_CHANNEL_H_

#define SPI0_REGBASE 0xffc00500

#define SPI_READ 0
#define SPI_WRITE 1

Expand Down
2 changes: 2 additions & 0 deletions include/asm-blackfin/mach-bf527/defBF52x_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@


/* 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 */
Expand Down Expand Up @@ -480,6 +481,7 @@


/* 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 */
Expand Down
1 change: 1 addition & 0 deletions include/asm-blackfin/mach-bf533/defBF532.h
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@
#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 */
Expand Down
2 changes: 2 additions & 0 deletions include/asm-blackfin/mach-bf537/defBF534.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down Expand Up @@ -456,6 +457,7 @@
#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 */
Expand Down
1 change: 1 addition & 0 deletions include/asm-blackfin/mach-bf548/defBF544.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
2 changes: 2 additions & 0 deletions include/asm-blackfin/mach-bf548/defBF548.h
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,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 */
Expand All @@ -139,6 +140,7 @@

/* 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 */
Expand Down
2 changes: 2 additions & 0 deletions include/asm-blackfin/mach-bf548/defBF549.h
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,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 */
Expand All @@ -140,6 +141,7 @@

/* 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 */
Expand Down
3 changes: 3 additions & 0 deletions include/asm-blackfin/mach-bf548/defBF54x_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@

/* 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 */
Expand All @@ -121,6 +122,7 @@

/* 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 */
Expand Down Expand Up @@ -978,6 +980,7 @@

/* 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 */
Expand Down
1 change: 1 addition & 0 deletions include/asm-blackfin/mach-bf561/defBF561.h
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@
#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 */
Expand Down

0 comments on commit 1d487f4

Please sign in to comment.