diff options
Diffstat (limited to 'drivers/serial')
-rw-r--r-- | drivers/serial/sh-sci.h | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/drivers/serial/sh-sci.h b/drivers/serial/sh-sci.h index 9b52f77a9305..d2352ac437c5 100644 --- a/drivers/serial/sh-sci.h +++ b/drivers/serial/sh-sci.h | |||
@@ -140,7 +140,15 @@ | |||
140 | # define SCSPTR0 0xffe00024 /* 16 bit SCIF */ | 140 | # define SCSPTR0 0xffe00024 /* 16 bit SCIF */ |
141 | # define SCSPTR1 0xffe10024 /* 16 bit SCIF */ | 141 | # define SCSPTR1 0xffe10024 /* 16 bit SCIF */ |
142 | # define SCIF_ORER 0x0001 /* Overrun error bit */ | 142 | # define SCIF_ORER 0x0001 /* Overrun error bit */ |
143 | # define SCSCR_INIT(port) 0x3a /* TIE=0,RIE=0,TE=1,RE=1,REIE=1 */ | 143 | |
144 | #if defined(CONFIG_SH_SH2007) | ||
145 | /* TIE=0,RIE=0,TE=1,RE=1,REIE=1,CKE1=0 */ | ||
146 | # define SCSCR_INIT(port) 0x38 | ||
147 | #else | ||
148 | /* TIE=0,RIE=0,TE=1,RE=1,REIE=1,CKE1=1 */ | ||
149 | # define SCSCR_INIT(port) 0x3a | ||
150 | #endif | ||
151 | |||
144 | #elif defined(CONFIG_CPU_SUBTYPE_SH7785) || \ | 152 | #elif defined(CONFIG_CPU_SUBTYPE_SH7785) || \ |
145 | defined(CONFIG_CPU_SUBTYPE_SH7786) | 153 | defined(CONFIG_CPU_SUBTYPE_SH7786) |
146 | # define SCSPTR0 0xffea0024 /* 16 bit SCIF */ | 154 | # define SCSPTR0 0xffea0024 /* 16 bit SCIF */ |
@@ -616,9 +624,10 @@ static inline int sci_rxd_in(struct uart_port *port) | |||
616 | * -- Mitch Davis - 15 Jul 2000 | 624 | * -- Mitch Davis - 15 Jul 2000 |
617 | */ | 625 | */ |
618 | 626 | ||
619 | #if defined(CONFIG_CPU_SUBTYPE_SH7780) || \ | 627 | #if (defined(CONFIG_CPU_SUBTYPE_SH7780) || \ |
620 | defined(CONFIG_CPU_SUBTYPE_SH7785) || \ | 628 | defined(CONFIG_CPU_SUBTYPE_SH7785) || \ |
621 | defined(CONFIG_CPU_SUBTYPE_SH7786) | 629 | defined(CONFIG_CPU_SUBTYPE_SH7786)) && \ |
630 | !defined(CONFIG_SH_SH2007) | ||
622 | #define SCBRR_VALUE(bps, clk) ((clk+16*bps)/(16*bps)-1) | 631 | #define SCBRR_VALUE(bps, clk) ((clk+16*bps)/(16*bps)-1) |
623 | #elif defined(CONFIG_CPU_SUBTYPE_SH7705) || \ | 632 | #elif defined(CONFIG_CPU_SUBTYPE_SH7705) || \ |
624 | defined(CONFIG_CPU_SUBTYPE_SH7720) || \ | 633 | defined(CONFIG_CPU_SUBTYPE_SH7720) || \ |