aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial/8250.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/tty/serial/8250.c')
-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 a87a56cb541..eeadf1b8e09 100644
--- a/drivers/tty/serial/8250.c
+++ b/drivers/tty/serial/8250.c
@@ -450,24 +450,6 @@ static void au_serial_out(struct uart_port *p, int offset, int value)
450 __raw_writel(value, p->membase + offset); 450 __raw_writel(value, p->membase + offset);
451} 451}
452 452
453static unsigned int tsi_serial_in(struct uart_port *p, int offset)
454{
455 unsigned int tmp;
456 offset = map_8250_in_reg(p, offset) << p->regshift;
457 if (offset == UART_IIR) {
458 tmp = readl(p->membase + (UART_IIR & ~3));
459 return (tmp >> 16) & 0xff; /* UART_IIR % 4 == 2 */
460 } else
461 return readb(p->membase + offset);
462}
463
464static void tsi_serial_out(struct uart_port *p, int offset, int value)
465{
466 offset = map_8250_out_reg(p, offset) << p->regshift;
467 if (!((offset == UART_IER) && (value & UART_IER_UUE)))
468 writeb(value, p->membase + offset);
469}
470
471static unsigned int io_serial_in(struct uart_port *p, int offset) 453static unsigned int io_serial_in(struct uart_port *p, int offset)
472{ 454{
473 offset = map_8250_in_reg(p, offset) << p->regshift; 455 offset = map_8250_in_reg(p, offset) << p->regshift;
@@ -508,11 +490,6 @@ static void set_io_from_upio(struct uart_port *p)
508 p->serial_out = au_serial_out; 490 p->serial_out = au_serial_out;
509 break; 491 break;
510 492
511 case UPIO_TSI:
512 p->serial_in = tsi_serial_in;
513 p->serial_out = tsi_serial_out;
514 break;
515
516 default: 493 default:
517 p->serial_in = io_serial_in; 494 p->serial_in = io_serial_in;
518 p->serial_out = io_serial_out; 495 p->serial_out = io_serial_out;