diff options
author | Mike Frysinger <vapier@gentoo.org> | 2010-07-28 15:59:03 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2010-08-06 12:55:55 -0400 |
commit | ba3f5973ce3eb7ef4894ccd3df78c5cb410b17cc (patch) | |
tree | 45880a04101440fe731ab15bca490886aaf50754 /arch/blackfin/mach-bf527/include/mach/defBF52x_base.h | |
parent | ada091729e8737edc3d455681fda9f745cfd2b63 (diff) |
Blackfin: TWI: clean up the MMR names
The standard short name for control is CTL and not CTRL. Use TWI0_xxx
even on parts that only have one TWI bus to keep things simple. Drop
all the cdef helpers since the bus driver takes care of everything.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'arch/blackfin/mach-bf527/include/mach/defBF52x_base.h')
-rw-r--r-- | arch/blackfin/mach-bf527/include/mach/defBF52x_base.h | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/arch/blackfin/mach-bf527/include/mach/defBF52x_base.h b/arch/blackfin/mach-bf527/include/mach/defBF52x_base.h index 620834097632..f08dae0d5138 100644 --- a/arch/blackfin/mach-bf527/include/mach/defBF52x_base.h +++ b/arch/blackfin/mach-bf527/include/mach/defBF52x_base.h | |||
@@ -458,22 +458,22 @@ | |||
458 | 458 | ||
459 | /* Two-Wire Interface (0xFFC01400 - 0xFFC014FF) */ | 459 | /* Two-Wire Interface (0xFFC01400 - 0xFFC014FF) */ |
460 | #define TWI0_REGBASE 0xFFC01400 | 460 | #define TWI0_REGBASE 0xFFC01400 |
461 | #define TWI_CLKDIV 0xFFC01400 /* Serial Clock Divider Register */ | 461 | #define TWI0_CLKDIV 0xFFC01400 /* Serial Clock Divider Register */ |
462 | #define TWI_CONTROL 0xFFC01404 /* TWI Control Register */ | 462 | #define TWI0_CONTROL 0xFFC01404 /* TWI Control Register */ |
463 | #define TWI_SLAVE_CTL 0xFFC01408 /* Slave Mode Control Register */ | 463 | #define TWI0_SLAVE_CTL 0xFFC01408 /* Slave Mode Control Register */ |
464 | #define TWI_SLAVE_STAT 0xFFC0140C /* Slave Mode Status Register */ | 464 | #define TWI0_SLAVE_STAT 0xFFC0140C /* Slave Mode Status Register */ |
465 | #define TWI_SLAVE_ADDR 0xFFC01410 /* Slave Mode Address Register */ | 465 | #define TWI0_SLAVE_ADDR 0xFFC01410 /* Slave Mode Address Register */ |
466 | #define TWI_MASTER_CTL 0xFFC01414 /* Master Mode Control Register */ | 466 | #define TWI0_MASTER_CTL 0xFFC01414 /* Master Mode Control Register */ |
467 | #define TWI_MASTER_STAT 0xFFC01418 /* Master Mode Status Register */ | 467 | #define TWI0_MASTER_STAT 0xFFC01418 /* Master Mode Status Register */ |
468 | #define TWI_MASTER_ADDR 0xFFC0141C /* Master Mode Address Register */ | 468 | #define TWI0_MASTER_ADDR 0xFFC0141C /* Master Mode Address Register */ |
469 | #define TWI_INT_STAT 0xFFC01420 /* TWI Interrupt Status Register */ | 469 | #define TWI0_INT_STAT 0xFFC01420 /* TWI Interrupt Status Register */ |
470 | #define TWI_INT_MASK 0xFFC01424 /* TWI Master Interrupt Mask Register */ | 470 | #define TWI0_INT_MASK 0xFFC01424 /* TWI Master Interrupt Mask Register */ |
471 | #define TWI_FIFO_CTL 0xFFC01428 /* FIFO Control Register */ | 471 | #define TWI0_FIFO_CTL 0xFFC01428 /* FIFO Control Register */ |
472 | #define TWI_FIFO_STAT 0xFFC0142C /* FIFO Status Register */ | 472 | #define TWI0_FIFO_STAT 0xFFC0142C /* FIFO Status Register */ |
473 | #define TWI_XMT_DATA8 0xFFC01480 /* FIFO Transmit Data Single Byte Register */ | 473 | #define TWI0_XMT_DATA8 0xFFC01480 /* FIFO Transmit Data Single Byte Register */ |
474 | #define TWI_XMT_DATA16 0xFFC01484 /* FIFO Transmit Data Double Byte Register */ | 474 | #define TWI0_XMT_DATA16 0xFFC01484 /* FIFO Transmit Data Double Byte Register */ |
475 | #define TWI_RCV_DATA8 0xFFC01488 /* FIFO Receive Data Single Byte Register */ | 475 | #define TWI0_RCV_DATA8 0xFFC01488 /* FIFO Receive Data Single Byte Register */ |
476 | #define TWI_RCV_DATA16 0xFFC0148C /* FIFO Receive Data Double Byte Register */ | 476 | #define TWI0_RCV_DATA16 0xFFC0148C /* FIFO Receive Data Double Byte Register */ |
477 | 477 | ||
478 | 478 | ||
479 | /* General Purpose I/O Port G (0xFFC01500 - 0xFFC015FF) */ | 479 | /* General Purpose I/O Port G (0xFFC01500 - 0xFFC015FF) */ |
@@ -1328,7 +1328,7 @@ | |||
1328 | #define TWI_ENA 0x0080 /* TWI Enable */ | 1328 | #define TWI_ENA 0x0080 /* TWI Enable */ |
1329 | #define SCCB 0x0200 /* SCCB Compatibility Enable */ | 1329 | #define SCCB 0x0200 /* SCCB Compatibility Enable */ |
1330 | 1330 | ||
1331 | /* TWI_SLAVE_CTRL Masks */ | 1331 | /* TWI_SLAVE_CTL Masks */ |
1332 | #define SEN 0x0001 /* Slave Enable */ | 1332 | #define SEN 0x0001 /* Slave Enable */ |
1333 | #define SADD_LEN 0x0002 /* Slave Address Length */ | 1333 | #define SADD_LEN 0x0002 /* Slave Address Length */ |
1334 | #define STDVAL 0x0004 /* Slave Transmit Data Valid */ | 1334 | #define STDVAL 0x0004 /* Slave Transmit Data Valid */ |
@@ -1339,7 +1339,7 @@ | |||
1339 | #define SDIR 0x0001 /* Slave Transfer Direction (Transmit/Receive*) */ | 1339 | #define SDIR 0x0001 /* Slave Transfer Direction (Transmit/Receive*) */ |
1340 | #define GCALL 0x0002 /* General Call Indicator */ | 1340 | #define GCALL 0x0002 /* General Call Indicator */ |
1341 | 1341 | ||
1342 | /* TWI_MASTER_CTRL Masks */ | 1342 | /* TWI_MASTER_CTL Masks */ |
1343 | #define MEN 0x0001 /* Master Mode Enable */ | 1343 | #define MEN 0x0001 /* Master Mode Enable */ |
1344 | #define MADD_LEN 0x0002 /* Master Address Length */ | 1344 | #define MADD_LEN 0x0002 /* Master Address Length */ |
1345 | #define MDIR 0x0004 /* Master Transmit Direction (RX/TX*) */ | 1345 | #define MDIR 0x0004 /* Master Transmit Direction (RX/TX*) */ |