sh: Add sci_rxd_in of SH4-202
SH4-202 doesn't have SCSXX1. But it is treated so that there is SCSPTR1 in current code. This patch add sci_rxd_in of SH4-202. Signed-off-by: Nobuhiro Iwamatsu <iwamatsu.nobuhiro@renesas.com> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
This commit is contained in:
committed by
Paul Mundt
parent
47c2968c84
commit
961e9ff902
@@ -526,8 +526,7 @@ static inline int sci_rxd_in(struct uart_port *port)
|
|||||||
defined(CONFIG_CPU_SUBTYPE_SH7751R) || \
|
defined(CONFIG_CPU_SUBTYPE_SH7751R) || \
|
||||||
defined(CONFIG_CPU_SUBTYPE_SH7750R) || \
|
defined(CONFIG_CPU_SUBTYPE_SH7750R) || \
|
||||||
defined(CONFIG_CPU_SUBTYPE_SH7750S) || \
|
defined(CONFIG_CPU_SUBTYPE_SH7750S) || \
|
||||||
defined(CONFIG_CPU_SUBTYPE_SH7091) || \
|
defined(CONFIG_CPU_SUBTYPE_SH7091)
|
||||||
defined(CONFIG_CPU_SUBTYPE_SH4_202)
|
|
||||||
static inline int sci_rxd_in(struct uart_port *port)
|
static inline int sci_rxd_in(struct uart_port *port)
|
||||||
{
|
{
|
||||||
if (port->mapbase == 0xffe00000)
|
if (port->mapbase == 0xffe00000)
|
||||||
@@ -536,6 +535,13 @@ static inline int sci_rxd_in(struct uart_port *port)
|
|||||||
return ctrl_inw(SCSPTR2)&0x0001 ? 1 : 0; /* SCIF */
|
return ctrl_inw(SCSPTR2)&0x0001 ? 1 : 0; /* SCIF */
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
#elif defined(CONFIG_CPU_SUBTYPE_SH4_202)
|
||||||
|
static inline int sci_rxd_in(struct uart_port *port)
|
||||||
|
{
|
||||||
|
if (port->mapbase == 0xffe80000)
|
||||||
|
return ctrl_inw(SCSPTR2)&0x0001 ? 1 : 0; /* SCIF */
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
#elif defined(CONFIG_CPU_SUBTYPE_SH7760)
|
#elif defined(CONFIG_CPU_SUBTYPE_SH7760)
|
||||||
static inline int sci_rxd_in(struct uart_port *port)
|
static inline int sci_rxd_in(struct uart_port *port)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user