diff options
Diffstat (limited to 'drivers/tty/serial/sh-sci.c')
-rw-r--r-- | drivers/tty/serial/sh-sci.c | 30 |
1 files changed, 2 insertions, 28 deletions
diff --git a/drivers/tty/serial/sh-sci.c b/drivers/tty/serial/sh-sci.c index ebd8629c108d..280c02af0eae 100644 --- a/drivers/tty/serial/sh-sci.c +++ b/drivers/tty/serial/sh-sci.c | |||
@@ -54,10 +54,6 @@ | |||
54 | #include <asm/sh_bios.h> | 54 | #include <asm/sh_bios.h> |
55 | #endif | 55 | #endif |
56 | 56 | ||
57 | #ifdef CONFIG_H8300 | ||
58 | #include <asm/gpio.h> | ||
59 | #endif | ||
60 | |||
61 | #include "sh-sci.h" | 57 | #include "sh-sci.h" |
62 | 58 | ||
63 | struct sci_port { | 59 | struct sci_port { |
@@ -164,23 +160,7 @@ static void sci_poll_put_char(struct uart_port *port, unsigned char c) | |||
164 | } | 160 | } |
165 | #endif /* CONFIG_CONSOLE_POLL || CONFIG_SERIAL_SH_SCI_CONSOLE */ | 161 | #endif /* CONFIG_CONSOLE_POLL || CONFIG_SERIAL_SH_SCI_CONSOLE */ |
166 | 162 | ||
167 | #if defined(__H8300H__) || defined(__H8300S__) | 163 | #if defined(CONFIG_CPU_SUBTYPE_SH7710) || defined(CONFIG_CPU_SUBTYPE_SH7712) |
168 | static void sci_init_pins(struct uart_port *port, unsigned int cflag) | ||
169 | { | ||
170 | int ch = (port->mapbase - SMR0) >> 3; | ||
171 | |||
172 | /* set DDR regs */ | ||
173 | H8300_GPIO_DDR(h8300_sci_pins[ch].port, | ||
174 | h8300_sci_pins[ch].rx, | ||
175 | H8300_GPIO_INPUT); | ||
176 | H8300_GPIO_DDR(h8300_sci_pins[ch].port, | ||
177 | h8300_sci_pins[ch].tx, | ||
178 | H8300_GPIO_OUTPUT); | ||
179 | |||
180 | /* tx mark output*/ | ||
181 | H8300_SCI_DR(ch) |= h8300_sci_pins[ch].tx; | ||
182 | } | ||
183 | #elif defined(CONFIG_CPU_SUBTYPE_SH7710) || defined(CONFIG_CPU_SUBTYPE_SH7712) | ||
184 | static inline void sci_init_pins(struct uart_port *port, unsigned int cflag) | 164 | static inline void sci_init_pins(struct uart_port *port, unsigned int cflag) |
185 | { | 165 | { |
186 | if (port->mapbase == 0xA4400000) { | 166 | if (port->mapbase == 0xA4400000) { |
@@ -1863,14 +1843,8 @@ static int __devinit serial_console_setup(struct console *co, char *options) | |||
1863 | if (options) | 1843 | if (options) |
1864 | uart_parse_options(options, &baud, &parity, &bits, &flow); | 1844 | uart_parse_options(options, &baud, &parity, &bits, &flow); |
1865 | 1845 | ||
1866 | ret = uart_set_options(port, co, baud, parity, bits, flow); | ||
1867 | #if defined(__H8300H__) || defined(__H8300S__) | ||
1868 | /* disable rx interrupt */ | ||
1869 | if (ret == 0) | ||
1870 | sci_stop_rx(port); | ||
1871 | #endif | ||
1872 | /* TODO: disable clock */ | 1846 | /* TODO: disable clock */ |
1873 | return ret; | 1847 | return uart_set_options(port, co, baud, parity, bits, flow); |
1874 | } | 1848 | } |
1875 | 1849 | ||
1876 | static struct console serial_console = { | 1850 | static struct console serial_console = { |