amba-pl010.c (b70e5e9d717faa334bf33c232c763be3f673138e) | amba-pl010.c (732a84a037a4de29b54e0b4e6cb6f9b3813e29e5) |
---|---|
1/* 2 * Driver for AMBA serial ports 3 * 4 * Based on drivers/char/serial.c, by Linus Torvalds, Theodore Ts'o. 5 * 6 * Copyright 1999 ARM Limited 7 * Copyright (C) 2000 Deep Blue Solutions Ltd. 8 * --- 465 unchanged lines hidden (view full) --- 474 * ----------^----------^----------^----------^----- 475 */ 476 writel(lcr_h, uap->port.membase + UART010_LCRH); 477 writel(old_cr, uap->port.membase + UART010_CR); 478 479 spin_unlock_irqrestore(&uap->port.lock, flags); 480} 481 | 1/* 2 * Driver for AMBA serial ports 3 * 4 * Based on drivers/char/serial.c, by Linus Torvalds, Theodore Ts'o. 5 * 6 * Copyright 1999 ARM Limited 7 * Copyright (C) 2000 Deep Blue Solutions Ltd. 8 * --- 465 unchanged lines hidden (view full) --- 474 * ----------^----------^----------^----------^----- 475 */ 476 writel(lcr_h, uap->port.membase + UART010_LCRH); 477 writel(old_cr, uap->port.membase + UART010_CR); 478 479 spin_unlock_irqrestore(&uap->port.lock, flags); 480} 481 |
482static void pl010_set_ldisc(struct uart_port *port, int new) | 482static void pl010_set_ldisc(struct uart_port *port, struct ktermios *termios) |
483{ | 483{ |
484 if (new == N_PPS) { | 484 if (termios->c_line == N_PPS) { |
485 port->flags |= UPF_HARDPPS_CD; 486 pl010_enable_ms(port); 487 } else 488 port->flags &= ~UPF_HARDPPS_CD; 489} 490 491static const char *pl010_type(struct uart_port *port) 492{ --- 333 unchanged lines hidden --- | 485 port->flags |= UPF_HARDPPS_CD; 486 pl010_enable_ms(port); 487 } else 488 port->flags &= ~UPF_HARDPPS_CD; 489} 490 491static const char *pl010_type(struct uart_port *port) 492{ --- 333 unchanged lines hidden --- |