sb1250-duart.c (50501936288d6a29d7ef78f25d00e33240fad45f) sb1250-duart.c (fd2b55f86b8b25afc5b6e7dff53dddb3fd0dd211)
1// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Support for the asynchronous serial interface (DUART) included
4 * in the BCM1250 and derived System-On-a-Chip (SOC) devices.
5 *
6 * Copyright (c) 2007 Maciej W. Rozycki
7 *
8 * Derived from drivers/char/sb1250_duart.c for which the following

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

326 write_sbdchn(sport, R_DUART_CMD, V_DUART_MISC_CMD_STOP_BREAK);
327}
328
329
330static void sbd_receive_chars(struct sbd_port *sport)
331{
332 struct uart_port *uport = &sport->port;
333 struct uart_icount *icount;
1// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Support for the asynchronous serial interface (DUART) included
4 * in the BCM1250 and derived System-On-a-Chip (SOC) devices.
5 *
6 * Copyright (c) 2007 Maciej W. Rozycki
7 *
8 * Derived from drivers/char/sb1250_duart.c for which the following

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

326 write_sbdchn(sport, R_DUART_CMD, V_DUART_MISC_CMD_STOP_BREAK);
327}
328
329
330static void sbd_receive_chars(struct sbd_port *sport)
331{
332 struct uart_port *uport = &sport->port;
333 struct uart_icount *icount;
334 unsigned int status, ch, flag;
334 unsigned int status;
335 int count;
335 int count;
336 u8 ch, flag;
336
337 for (count = 16; count; count--) {
338 status = read_sbdchn(sport, R_DUART_STATUS);
339 if (!(status & M_DUART_RX_RDY))
340 break;
341
342 ch = read_sbdchn(sport, R_DUART_RX_HOLD);
343

--- 620 unchanged lines hidden ---
337
338 for (count = 16; count; count--) {
339 status = read_sbdchn(sport, R_DUART_STATUS);
340 if (!(status & M_DUART_RX_RDY))
341 break;
342
343 ch = read_sbdchn(sport, R_DUART_RX_HOLD);
344

--- 620 unchanged lines hidden ---