amba-pl011.c (0cce284537fb42d9c28b9b31038ffc9b464555f5) amba-pl011.c (2331e06865047a0c4ff3fb838716210e7a296a4d)
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 * Copyright (C) 2010 ST-Ericsson SA

--- 2100 unchanged lines hidden (view full) ---

2109 ret = -EINVAL;
2110 if (ser->irq < 0 || ser->irq >= nr_irqs)
2111 ret = -EINVAL;
2112 if (ser->baud_base < 9600)
2113 ret = -EINVAL;
2114 return ret;
2115}
2116
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 * Copyright (C) 2010 ST-Ericsson SA

--- 2100 unchanged lines hidden (view full) ---

2109 ret = -EINVAL;
2110 if (ser->irq < 0 || ser->irq >= nr_irqs)
2111 ret = -EINVAL;
2112 if (ser->baud_base < 9600)
2113 ret = -EINVAL;
2114 return ret;
2115}
2116
2117static struct uart_ops amba_pl011_pops = {
2117static const struct uart_ops amba_pl011_pops = {
2118 .tx_empty = pl011_tx_empty,
2119 .set_mctrl = pl011_set_mctrl,
2120 .get_mctrl = pl011_get_mctrl,
2121 .stop_tx = pl011_stop_tx,
2122 .start_tx = pl011_start_tx,
2123 .stop_rx = pl011_stop_rx,
2124 .enable_ms = pl011_enable_ms,
2125 .break_ctl = pl011_break_ctl,

--- 245 unchanged lines hidden (view full) ---

2371
2372static struct uart_driver amba_reg;
2373static struct console amba_console = {
2374 .name = "ttyAMA",
2375 .write = pl011_console_write,
2376 .device = uart_console_device,
2377 .setup = pl011_console_setup,
2378 .match = pl011_console_match,
2118 .tx_empty = pl011_tx_empty,
2119 .set_mctrl = pl011_set_mctrl,
2120 .get_mctrl = pl011_get_mctrl,
2121 .stop_tx = pl011_stop_tx,
2122 .start_tx = pl011_start_tx,
2123 .stop_rx = pl011_stop_rx,
2124 .enable_ms = pl011_enable_ms,
2125 .break_ctl = pl011_break_ctl,

--- 245 unchanged lines hidden (view full) ---

2371
2372static struct uart_driver amba_reg;
2373static struct console amba_console = {
2374 .name = "ttyAMA",
2375 .write = pl011_console_write,
2376 .device = uart_console_device,
2377 .setup = pl011_console_setup,
2378 .match = pl011_console_match,
2379 .flags = CON_PRINTBUFFER,
2379 .flags = CON_PRINTBUFFER | CON_ANYTIME,
2380 .index = -1,
2381 .data = &amba_reg,
2382};
2383
2384#define AMBA_CONSOLE (&amba_console)
2385
2386static void pl011_putc(struct uart_port *port, int c)
2387{

--- 366 unchanged lines hidden ---
2380 .index = -1,
2381 .data = &amba_reg,
2382};
2383
2384#define AMBA_CONSOLE (&amba_console)
2385
2386static void pl011_putc(struct uart_port *port, int c)
2387{

--- 366 unchanged lines hidden ---