liteuart.c (1136fa0c07de570dc17858745af8be169d1440ba) | liteuart.c (3f8bab174cb26aa5a8053c4457cc733881e3ad88) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * LiteUART serial controller (LiteX) Driver 4 * 5 * Copyright (C) 2019-2020 Antmicro <www.antmicro.com> 6 */ 7 8#include <linux/console.h> --- 79 unchanged lines hidden (view full) --- 88 uart_insert_char(port, status, 0, ch, flg); 89 90 tty_flip_buffer_push(&port->state->port); 91 } 92 93 mod_timer(&uart->timer, jiffies + uart_poll_timeout(port)); 94} 95 | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * LiteUART serial controller (LiteX) Driver 4 * 5 * Copyright (C) 2019-2020 Antmicro <www.antmicro.com> 6 */ 7 8#include <linux/console.h> --- 79 unchanged lines hidden (view full) --- 88 uart_insert_char(port, status, 0, ch, flg); 89 90 tty_flip_buffer_push(&port->state->port); 91 } 92 93 mod_timer(&uart->timer, jiffies + uart_poll_timeout(port)); 94} 95 |
96static void liteuart_putchar(struct uart_port *port, int ch) | 96static void liteuart_putchar(struct uart_port *port, unsigned char ch) |
97{ 98 while (litex_read8(port->membase + OFF_TXFULL)) 99 cpu_relax(); 100 101 litex_write8(port->membase + OFF_RXTX, ch); 102} 103 104static unsigned int liteuart_tx_empty(struct uart_port *port) --- 335 unchanged lines hidden --- | 97{ 98 while (litex_read8(port->membase + OFF_TXFULL)) 99 cpu_relax(); 100 101 litex_write8(port->membase + OFF_RXTX, ch); 102} 103 104static unsigned int liteuart_tx_empty(struct uart_port *port) --- 335 unchanged lines hidden --- |