liteuart.c (8bb5e7f4dcd9b9ef22a3ea25c9066a8a968f12dd) liteuart.c (bec5b814d46c2a704c3c8148752e62a33e9fa6dc)
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>

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

173 return 0;
174}
175
176static void liteuart_shutdown(struct uart_port *port)
177{
178}
179
180static void liteuart_set_termios(struct uart_port *port, struct ktermios *new,
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>

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

173 return 0;
174}
175
176static void liteuart_shutdown(struct uart_port *port)
177{
178}
179
180static void liteuart_set_termios(struct uart_port *port, struct ktermios *new,
181 struct ktermios *old)
181 const struct ktermios *old)
182{
183 unsigned int baud;
184 unsigned long flags;
185
186 spin_lock_irqsave(&port->lock, flags);
187
188 /* update baudrate */
189 baud = uart_get_baud_rate(port, new, old, 0, 460800);

--- 250 unchanged lines hidden ---
182{
183 unsigned int baud;
184 unsigned long flags;
185
186 spin_lock_irqsave(&port->lock, flags);
187
188 /* update baudrate */
189 baud = uart_get_baud_rate(port, new, old, 0, 460800);

--- 250 unchanged lines hidden ---