21285.c (cdd38c5f1ce4398ec58fec95904b75824daab7b5) | 21285.c (3f8bab174cb26aa5a8053c4457cc733881e3ad88) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Driver for the serial port on the 21285 StrongArm-110 core logic chip. 4 * 5 * Based on drivers/char/serial.c 6 */ 7#include <linux/module.h> 8#include <linux/tty.h> --- 389 unchanged lines hidden (view full) --- 398}; 399 400static void serial21285_setup_ports(void) 401{ 402 serial21285_port.uartclk = mem_fclk_21285 / 4; 403} 404 405#ifdef CONFIG_SERIAL_21285_CONSOLE | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Driver for the serial port on the 21285 StrongArm-110 core logic chip. 4 * 5 * Based on drivers/char/serial.c 6 */ 7#include <linux/module.h> 8#include <linux/tty.h> --- 389 unchanged lines hidden (view full) --- 398}; 399 400static void serial21285_setup_ports(void) 401{ 402 serial21285_port.uartclk = mem_fclk_21285 / 4; 403} 404 405#ifdef CONFIG_SERIAL_21285_CONSOLE |
406static void serial21285_console_putchar(struct uart_port *port, int ch) | 406static void serial21285_console_putchar(struct uart_port *port, unsigned char ch) |
407{ 408 while (*CSR_UARTFLG & 0x20) 409 barrier(); 410 *CSR_UARTDR = ch; 411} 412 413static void 414serial21285_console_write(struct console *co, const char *s, --- 128 unchanged lines hidden --- | 407{ 408 while (*CSR_UARTFLG & 0x20) 409 barrier(); 410 *CSR_UARTDR = ch; 411} 412 413static void 414serial21285_console_write(struct console *co, const char *s, --- 128 unchanged lines hidden --- |