diff options
author | Paul Mundt <lethal@linux-sh.org> | 2007-11-26 04:17:21 -0500 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2008-01-27 23:18:57 -0500 |
commit | 6d01f51086cf6c475470cdae67d2f45e5fb57833 (patch) | |
tree | f386f7ac91266e7554db20f26af0b287f82b4b5d /drivers/serial | |
parent | ff1b7506051014cc38036401b89e426bf3d6a608 (diff) |
sh: Add SH7203 CPU support.
This adds support for the SH7203 (SH-2A) CPU.
Signed-off-by: Kieran Bingham <kbingham@mpc-data.co.uk>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'drivers/serial')
-rw-r--r-- | drivers/serial/sh-sci.h | 6 |
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) | ||
621 | static inline int sci_rxd_in(struct uart_port *port) | 623 | static inline int sci_rxd_in(struct uart_port *port) |
622 | { | 624 | { |
623 | if (port->mapbase == 0xfffe8000) | 625 | if (port->mapbase == 0xfffe8000) |