diff options
author | Magnus Damm <magnus.damm@gmail.com> | 2008-02-08 03:31:24 -0500 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2008-02-14 00:22:10 -0500 |
commit | 9109a30e5a548b39463b5a777943cf103da507af (patch) | |
tree | 30c9e05311a3a76acef42ebcc6f00f08cdacd605 /drivers/serial/sh-sci.h | |
parent | d847afe7d4966d35eb7a6fe6f196a0d7e5633f35 (diff) |
sh: add support for sh7366 processor
This patch adds sh7366 cpu supports. Just the most basic things like interrupt
controller, clocks and serial port are included at this point.
Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'drivers/serial/sh-sci.h')
-rw-r--r-- | drivers/serial/sh-sci.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/serial/sh-sci.h b/drivers/serial/sh-sci.h index f5764ebcfe07..57aaa09811ea 100644 --- a/drivers/serial/sh-sci.h +++ b/drivers/serial/sh-sci.h | |||
@@ -97,6 +97,12 @@ | |||
97 | # define SCSCR_INIT(port) 0x0038 /* TIE=0,RIE=0,TE=1,RE=1,REIE=1 */ | 97 | # define SCSCR_INIT(port) 0x0038 /* TIE=0,RIE=0,TE=1,RE=1,REIE=1 */ |
98 | # define SCIF_ONLY | 98 | # define SCIF_ONLY |
99 | # define PORT_PSCR 0xA405011E | 99 | # define PORT_PSCR 0xA405011E |
100 | #elif defined(CONFIG_CPU_SUBTYPE_SH7366) | ||
101 | # define SCPDR0 0xA405013E /* 16 bit SCIF0 PSDR */ | ||
102 | # define SCSPTR0 SCPDR0 | ||
103 | # define SCIF_ORER 0x0001 /* overrun error bit */ | ||
104 | # define SCSCR_INIT(port) 0x0038 /* TIE=0,RIE=0,TE=1,RE=1,REIE=1 */ | ||
105 | # define SCIF_ONLY | ||
100 | #elif defined(CONFIG_CPU_SUBTYPE_SH4_202) | 106 | #elif defined(CONFIG_CPU_SUBTYPE_SH4_202) |
101 | # define SCSPTR2 0xffe80020 /* 16 bit SCIF */ | 107 | # define SCSPTR2 0xffe80020 /* 16 bit SCIF */ |
102 | # define SCIF_ORER 0x0001 /* overrun error bit */ | 108 | # define SCIF_ORER 0x0001 /* overrun error bit */ |
@@ -577,7 +583,7 @@ static inline int sci_rxd_in(struct uart_port *port) | |||
577 | return ctrl_inw(SCSPTR3) & 0x0001 ? 1 : 0; /* SCIF */ | 583 | return ctrl_inw(SCSPTR3) & 0x0001 ? 1 : 0; /* SCIF */ |
578 | return 1; | 584 | return 1; |
579 | } | 585 | } |
580 | #elif defined(CONFIG_CPU_SUBTYPE_SH7722) | 586 | #elif defined(CONFIG_CPU_SUBTYPE_SH7722) || defined(CONFIG_CPU_SUBTYPE_SH7366) |
581 | static inline int sci_rxd_in(struct uart_port *port) | 587 | static inline int sci_rxd_in(struct uart_port *port) |
582 | { | 588 | { |
583 | if (port->mapbase == 0xffe00000) | 589 | if (port->mapbase == 0xffe00000) |