diff options
Diffstat (limited to 'drivers/serial/sh-sci.h')
-rw-r--r-- | drivers/serial/sh-sci.h | 25 |
1 files changed, 8 insertions, 17 deletions
diff --git a/drivers/serial/sh-sci.h b/drivers/serial/sh-sci.h index dd05b3403d2f..b11127d0edab 100644 --- a/drivers/serial/sh-sci.h +++ b/drivers/serial/sh-sci.h | |||
@@ -23,13 +23,10 @@ | |||
23 | #endif | 23 | #endif |
24 | #endif | 24 | #endif |
25 | 25 | ||
26 | #if defined(CONFIG_CPU_SUBTYPE_SH7708) | 26 | #if defined(CONFIG_CPU_SUBTYPE_SH7706) || \ |
27 | # define SCSPTR 0xffffff7c /* 8 bit */ | 27 | defined(CONFIG_CPU_SUBTYPE_SH7707) || \ |
28 | # define SCSCR_INIT(port) 0x30 /* TIE=0,RIE=0,TE=1,RE=1 */ | 28 | defined(CONFIG_CPU_SUBTYPE_SH7708) || \ |
29 | # define SCI_ONLY | 29 | defined(CONFIG_CPU_SUBTYPE_SH7709) |
30 | #elif defined(CONFIG_CPU_SUBTYPE_SH7707) || \ | ||
31 | defined(CONFIG_CPU_SUBTYPE_SH7709) || \ | ||
32 | defined(CONFIG_CPU_SUBTYPE_SH7706) | ||
33 | # define SCPCR 0xA4000116 /* 16 bit SCI and SCIF */ | 30 | # define SCPCR 0xA4000116 /* 16 bit SCI and SCIF */ |
34 | # define SCPDR 0xA4000136 /* 8 bit SCI and SCIF */ | 31 | # define SCPDR 0xA4000136 /* 8 bit SCI and SCIF */ |
35 | # define SCSCR_INIT(port) 0x30 /* TIE=0,RIE=0,TE=1,RE=1 */ | 32 | # define SCSCR_INIT(port) 0x30 /* TIE=0,RIE=0,TE=1,RE=1 */ |
@@ -479,16 +476,10 @@ static const struct __attribute__((packed)) { | |||
479 | }; | 476 | }; |
480 | #endif | 477 | #endif |
481 | 478 | ||
482 | #if defined(CONFIG_CPU_SUBTYPE_SH7708) | 479 | #if defined(CONFIG_CPU_SUBTYPE_SH7706) || \ |
483 | static inline int sci_rxd_in(struct uart_port *port) | 480 | defined(CONFIG_CPU_SUBTYPE_SH7707) || \ |
484 | { | 481 | defined(CONFIG_CPU_SUBTYPE_SH7708) || \ |
485 | if (port->mapbase == 0xfffffe80) | 482 | defined(CONFIG_CPU_SUBTYPE_SH7709) |
486 | return ctrl_inb(SCSPTR)&0x01 ? 1 : 0; /* SCI */ | ||
487 | return 1; | ||
488 | } | ||
489 | #elif defined(CONFIG_CPU_SUBTYPE_SH7707) || \ | ||
490 | defined(CONFIG_CPU_SUBTYPE_SH7709) || \ | ||
491 | defined(CONFIG_CPU_SUBTYPE_SH7706) | ||
492 | static inline int sci_rxd_in(struct uart_port *port) | 483 | static inline int sci_rxd_in(struct uart_port *port) |
493 | { | 484 | { |
494 | if (port->mapbase == 0xfffffe80) | 485 | if (port->mapbase == 0xfffffe80) |