aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2011-06-27 07:45:16 -0400
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2011-09-19 19:19:39 -0400
commit7df5659eefad9b6d457ccdee016bd78bd064cfc0 (patch)
treea395754d6df1a3d211843a8dd178f865be42fe8a /drivers/tty
parent2eccacd0974dca73e2151d3fd4c2dacf1a5c7cc2 (diff)
serial/8250: Move UPIO_TSI to powerpc
This iotype is only used by the legacy_serial code in powerpc, so the code should live there, rather than be compiled in for every 8250 driver. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Cc: linuxppc-dev@lists.ozlabs.org Cc: Greg Kroah-Hartman <gregkh@suse.de> Cc: linux-serial@vger.kernel.org Acked-by: David Daney <david.daney@cavium.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'drivers/tty')
-rw-r--r--drivers/tty/serial/8250.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/drivers/tty/serial/8250.c b/drivers/tty/serial/8250.c
index 7f50999eebc2..610b8e63710d 100644
--- a/drivers/tty/serial/8250.c
+++ b/drivers/tty/serial/8250.c
@@ -443,24 +443,6 @@ static void au_serial_out(struct uart_port *p, int offset, int value)
443 __raw_writel(value, p->membase + offset); 443 __raw_writel(value, p->membase + offset);
444} 444}
445 445
446static unsigned int tsi_serial_in(struct uart_port *p, int offset)
447{
448 unsigned int tmp;
449 offset = map_8250_in_reg(p, offset) << p->regshift;
450 if (offset == UART_IIR) {
451 tmp = readl(p->membase + (UART_IIR & ~3));
452 return (tmp >> 16) & 0xff; /* UART_IIR % 4 == 2 */
453 } else
454 return readb(p->membase + offset);
455}
456
457static void tsi_serial_out(struct uart_port *p, int offset, int value)
458{
459 offset = map_8250_out_reg(p, offset) << p->regshift;
460 if (!((offset == UART_IER) && (value & UART_IER_UUE)))
461 writeb(value, p->membase + offset);
462}
463
464/* Save the LCR value so it can be re-written when a Busy Detect IRQ occurs. */ 446/* Save the LCR value so it can be re-written when a Busy Detect IRQ occurs. */
465static inline void dwapb_save_out_value(struct uart_port *p, int offset, 447static inline void dwapb_save_out_value(struct uart_port *p, int offset,
466 int value) 448 int value)
@@ -535,11 +517,6 @@ static void set_io_from_upio(struct uart_port *p)
535 p->serial_out = au_serial_out; 517 p->serial_out = au_serial_out;
536 break; 518 break;
537 519
538 case UPIO_TSI:
539 p->serial_in = tsi_serial_in;
540 p->serial_out = tsi_serial_out;
541 break;
542
543 case UPIO_DWAPB: 520 case UPIO_DWAPB:
544 p->serial_in = mem_serial_in; 521 p->serial_in = mem_serial_in;
545 p->serial_out = dwapb_serial_out; 522 p->serial_out = dwapb_serial_out;