diff options
Diffstat (limited to 'drivers/serial/cpm_uart')
-rw-r--r-- | drivers/serial/cpm_uart/cpm_uart_cpm1.c | 6 | ||||
-rw-r--r-- | drivers/serial/cpm_uart/cpm_uart_cpm1.h | 2 | ||||
-rw-r--r-- | drivers/serial/cpm_uart/cpm_uart_cpm2.c | 10 |
3 files changed, 4 insertions, 14 deletions
diff --git a/drivers/serial/cpm_uart/cpm_uart_cpm1.c b/drivers/serial/cpm_uart/cpm_uart_cpm1.c index 52fb044bb79a..6ea0366e26ae 100644 --- a/drivers/serial/cpm_uart/cpm_uart_cpm1.c +++ b/drivers/serial/cpm_uart/cpm_uart_cpm1.c | |||
@@ -52,11 +52,7 @@ | |||
52 | #ifdef CONFIG_PPC_CPM_NEW_BINDING | 52 | #ifdef CONFIG_PPC_CPM_NEW_BINDING |
53 | void cpm_line_cr_cmd(struct uart_cpm_port *port, int cmd) | 53 | void cpm_line_cr_cmd(struct uart_cpm_port *port, int cmd) |
54 | { | 54 | { |
55 | u16 __iomem *cpcr = &cpmp->cp_cpcr; | 55 | cpm_command(port->command, cmd); |
56 | |||
57 | out_be16(cpcr, port->command | (cmd << 8) | CPM_CR_FLG); | ||
58 | while (in_be16(cpcr) & CPM_CR_FLG) | ||
59 | ; | ||
60 | } | 56 | } |
61 | #else | 57 | #else |
62 | void cpm_line_cr_cmd(struct uart_cpm_port *port, int cmd) | 58 | void cpm_line_cr_cmd(struct uart_cpm_port *port, int cmd) |
diff --git a/drivers/serial/cpm_uart/cpm_uart_cpm1.h b/drivers/serial/cpm_uart/cpm_uart_cpm1.h index 9b5465fb0bbb..ddf46d3c964b 100644 --- a/drivers/serial/cpm_uart/cpm_uart_cpm1.h +++ b/drivers/serial/cpm_uart/cpm_uart_cpm1.h | |||
@@ -10,7 +10,7 @@ | |||
10 | #ifndef CPM_UART_CPM1_H | 10 | #ifndef CPM_UART_CPM1_H |
11 | #define CPM_UART_CPM1_H | 11 | #define CPM_UART_CPM1_H |
12 | 12 | ||
13 | #include <asm/commproc.h> | 13 | #include <asm/cpm1.h> |
14 | 14 | ||
15 | /* defines for IRQs */ | 15 | /* defines for IRQs */ |
16 | #ifndef CONFIG_PPC_CPM_NEW_BINDING | 16 | #ifndef CONFIG_PPC_CPM_NEW_BINDING |
diff --git a/drivers/serial/cpm_uart/cpm_uart_cpm2.c b/drivers/serial/cpm_uart/cpm_uart_cpm2.c index 882dbc17d590..d9af06a791ba 100644 --- a/drivers/serial/cpm_uart/cpm_uart_cpm2.c +++ b/drivers/serial/cpm_uart/cpm_uart_cpm2.c | |||
@@ -52,13 +52,7 @@ | |||
52 | #ifdef CONFIG_PPC_CPM_NEW_BINDING | 52 | #ifdef CONFIG_PPC_CPM_NEW_BINDING |
53 | void cpm_line_cr_cmd(struct uart_cpm_port *port, int cmd) | 53 | void cpm_line_cr_cmd(struct uart_cpm_port *port, int cmd) |
54 | { | 54 | { |
55 | cpm_cpm2_t __iomem *cp = cpm2_map(im_cpm); | 55 | cpm_command(port->command, cmd); |
56 | |||
57 | out_be32(&cp->cp_cpcr, port->command | cmd | CPM_CR_FLG); | ||
58 | while (in_be32(&cp->cp_cpcr) & CPM_CR_FLG) | ||
59 | ; | ||
60 | |||
61 | cpm2_unmap(cp); | ||
62 | } | 56 | } |
63 | #else | 57 | #else |
64 | void cpm_line_cr_cmd(struct uart_cpm_port *port, int cmd) | 58 | void cpm_line_cr_cmd(struct uart_cpm_port *port, int cmd) |
@@ -171,9 +165,9 @@ void scc2_lineif(struct uart_cpm_port *pinfo) | |||
171 | * really has to get out of the driver so boards can | 165 | * really has to get out of the driver so boards can |
172 | * be supported in a sane fashion. | 166 | * be supported in a sane fashion. |
173 | */ | 167 | */ |
168 | volatile cpmux_t *cpmux = cpm2_map(im_cpmux); | ||
174 | #ifndef CONFIG_STX_GP3 | 169 | #ifndef CONFIG_STX_GP3 |
175 | volatile iop_cpm2_t *io = cpm2_map(im_ioport); | 170 | volatile iop_cpm2_t *io = cpm2_map(im_ioport); |
176 | volatile cpmux_t *cpmux = cpm2_map(im_cpmux); | ||
177 | 171 | ||
178 | io->iop_pparb |= 0x008b0000; | 172 | io->iop_pparb |= 0x008b0000; |
179 | io->iop_pdirb |= 0x00880000; | 173 | io->iop_pdirb |= 0x00880000; |