aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/serial
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/serial')
-rw-r--r--drivers/serial/sh-sci.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/serial/sh-sci.h b/drivers/serial/sh-sci.h
index d24621ce799a..cde06a481829 100644
--- a/drivers/serial/sh-sci.h
+++ b/drivers/serial/sh-sci.h
@@ -142,7 +142,8 @@
142# define SCIF_OPER 0x0001 /* Overrun error bit */ 142# define SCIF_OPER 0x0001 /* Overrun error bit */
143# define SCSCR_INIT(port) 0x3a /* TIE=0,RIE=0,TE=1,RE=1,REIE=1 */ 143# define SCSCR_INIT(port) 0x3a /* TIE=0,RIE=0,TE=1,RE=1,REIE=1 */
144# define SCIF_ONLY 144# define SCIF_ONLY
145#elif defined(CONFIG_CPU_SUBTYPE_SH7206) 145#elif defined(CONFIG_CPU_SUBTYPE_SH7203) || \
146 defined(CONFIG_CPU_SUBTYPE_SH7206)
146# define SCSPTR0 0xfffe8020 /* 16 bit SCIF */ 147# define SCSPTR0 0xfffe8020 /* 16 bit SCIF */
147# define SCSPTR1 0xfffe8820 /* 16 bit SCIF */ 148# define SCSPTR1 0xfffe8820 /* 16 bit SCIF */
148# define SCSPTR2 0xfffe9020 /* 16 bit SCIF */ 149# define SCSPTR2 0xfffe9020 /* 16 bit SCIF */
@@ -617,7 +618,8 @@ static inline int sci_rxd_in(struct uart_port *port)
617 return ctrl_inw(SCSPTR5) & 0x0001 ? 1 : 0; /* SCIF */ 618 return ctrl_inw(SCSPTR5) & 0x0001 ? 1 : 0; /* SCIF */
618 return 1; 619 return 1;
619} 620}
620#elif defined(CONFIG_CPU_SUBTYPE_SH7206) 621#elif defined(CONFIG_CPU_SUBTYPE_SH7203) || \
622 defined(CONFIG_CPU_SUBTYPE_SH7206)
621static inline int sci_rxd_in(struct uart_port *port) 623static inline int sci_rxd_in(struct uart_port *port)
622{ 624{
623 if (port->mapbase == 0xfffe8000) 625 if (port->mapbase == 0xfffe8000)