aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/serial/sh-sci.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/serial/sh-sci.h')
-rw-r--r--drivers/serial/sh-sci.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/drivers/serial/sh-sci.h b/drivers/serial/sh-sci.h
index 96cae15db9ca..f4bd93e02ee2 100644
--- a/drivers/serial/sh-sci.h
+++ b/drivers/serial/sh-sci.h
@@ -526,8 +526,7 @@ static inline int sci_rxd_in(struct uart_port *port)
526 defined(CONFIG_CPU_SUBTYPE_SH7751R) || \ 526 defined(CONFIG_CPU_SUBTYPE_SH7751R) || \
527 defined(CONFIG_CPU_SUBTYPE_SH7750R) || \ 527 defined(CONFIG_CPU_SUBTYPE_SH7750R) || \
528 defined(CONFIG_CPU_SUBTYPE_SH7750S) || \ 528 defined(CONFIG_CPU_SUBTYPE_SH7750S) || \
529 defined(CONFIG_CPU_SUBTYPE_SH7091) || \ 529 defined(CONFIG_CPU_SUBTYPE_SH7091)
530 defined(CONFIG_CPU_SUBTYPE_SH4_202)
531static inline int sci_rxd_in(struct uart_port *port) 530static inline int sci_rxd_in(struct uart_port *port)
532{ 531{
533 if (port->mapbase == 0xffe00000) 532 if (port->mapbase == 0xffe00000)
@@ -536,6 +535,13 @@ static inline int sci_rxd_in(struct uart_port *port)
536 return ctrl_inw(SCSPTR2)&0x0001 ? 1 : 0; /* SCIF */ 535 return ctrl_inw(SCSPTR2)&0x0001 ? 1 : 0; /* SCIF */
537 return 1; 536 return 1;
538} 537}
538#elif defined(CONFIG_CPU_SUBTYPE_SH4_202)
539static inline int sci_rxd_in(struct uart_port *port)
540{
541 if (port->mapbase == 0xffe80000)
542 return ctrl_inw(SCSPTR2)&0x0001 ? 1 : 0; /* SCIF */
543 return 1;
544}
539#elif defined(CONFIG_CPU_SUBTYPE_SH7760) 545#elif defined(CONFIG_CPU_SUBTYPE_SH7760)
540static inline int sci_rxd_in(struct uart_port *port) 546static inline int sci_rxd_in(struct uart_port *port)
541{ 547{