clps711x.c (8dd06ef34b6e2f41b29fbf5fc1663780f2524285) | clps711x.c (3f8bab174cb26aa5a8053c4457cc733881e3ad88) |
---|---|
1// SPDX-License-Identifier: GPL-2.0+ 2/* 3 * Driver for CLPS711x serial ports 4 * 5 * Based on drivers/char/serial.c, by Linus Torvalds, Theodore Ts'o. 6 * 7 * Copyright 1999 ARM Limited 8 * Copyright (C) 2000 Deep Blue Solutions Ltd. --- 334 unchanged lines hidden (view full) --- 343 .set_termios = uart_clps711x_set_termios, 344 .type = uart_clps711x_type, 345 .config_port = uart_clps711x_config_port, 346 .release_port = uart_clps711x_nop_void, 347 .request_port = uart_clps711x_nop_int, 348}; 349 350#ifdef CONFIG_SERIAL_CLPS711X_CONSOLE | 1// SPDX-License-Identifier: GPL-2.0+ 2/* 3 * Driver for CLPS711x serial ports 4 * 5 * Based on drivers/char/serial.c, by Linus Torvalds, Theodore Ts'o. 6 * 7 * Copyright 1999 ARM Limited 8 * Copyright (C) 2000 Deep Blue Solutions Ltd. --- 334 unchanged lines hidden (view full) --- 343 .set_termios = uart_clps711x_set_termios, 344 .type = uart_clps711x_type, 345 .config_port = uart_clps711x_config_port, 346 .release_port = uart_clps711x_nop_void, 347 .request_port = uart_clps711x_nop_int, 348}; 349 350#ifdef CONFIG_SERIAL_CLPS711X_CONSOLE |
351static void uart_clps711x_console_putchar(struct uart_port *port, int ch) | 351static void uart_clps711x_console_putchar(struct uart_port *port, unsigned char ch) |
352{ 353 struct clps711x_port *s = dev_get_drvdata(port->dev); 354 u32 sysflg = 0; 355 356 /* Wait for FIFO is not full */ 357 do { 358 regmap_read(s->syscon, SYSFLG_OFFSET, &sysflg); 359 } while (sysflg & SYSFLG_UTXFF); --- 203 unchanged lines hidden --- | 352{ 353 struct clps711x_port *s = dev_get_drvdata(port->dev); 354 u32 sysflg = 0; 355 356 /* Wait for FIFO is not full */ 357 do { 358 regmap_read(s->syscon, SYSFLG_OFFSET, &sysflg); 359 } while (sysflg & SYSFLG_UTXFF); --- 203 unchanged lines hidden --- |