pic32_uart.c (ead5d1f4d877e92c051e1a1ade623d0d30e71619) pic32_uart.c (3f8bab174cb26aa5a8053c4457cc733881e3ad88)
1// SPDX-License-Identifier: GPL-2.0+
2/*
3 * PIC32 Integrated Serial Driver.
4 *
5 * Copyright (C) 2015 Microchip Technology, Inc.
6 *
7 * Authors:
8 * Sorin-Andrei Pistirica <andrei.pistirica@microchip.com>

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

686 .release_port = pic32_uart_release_port,
687 .request_port = pic32_uart_request_port,
688 .config_port = pic32_uart_config_port,
689 .verify_port = pic32_uart_verify_port,
690};
691
692#ifdef CONFIG_SERIAL_PIC32_CONSOLE
693/* output given char */
1// SPDX-License-Identifier: GPL-2.0+
2/*
3 * PIC32 Integrated Serial Driver.
4 *
5 * Copyright (C) 2015 Microchip Technology, Inc.
6 *
7 * Authors:
8 * Sorin-Andrei Pistirica <andrei.pistirica@microchip.com>

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

686 .release_port = pic32_uart_release_port,
687 .request_port = pic32_uart_request_port,
688 .config_port = pic32_uart_config_port,
689 .verify_port = pic32_uart_verify_port,
690};
691
692#ifdef CONFIG_SERIAL_PIC32_CONSOLE
693/* output given char */
694static void pic32_console_putchar(struct uart_port *port, int ch)
694static void pic32_console_putchar(struct uart_port *port, unsigned char ch)
695{
696 struct pic32_sport *sport = to_pic32_sport(port);
697
698 if (!(pic32_uart_readl(sport, PIC32_UART_MODE) & PIC32_UART_MODE_ON))
699 return;
700
701 if (!(pic32_uart_readl(sport, PIC32_UART_STA) & PIC32_UART_STA_UTXEN))
702 return;

--- 251 unchanged lines hidden ---
695{
696 struct pic32_sport *sport = to_pic32_sport(port);
697
698 if (!(pic32_uart_readl(sport, PIC32_UART_MODE) & PIC32_UART_MODE_ON))
699 return;
700
701 if (!(pic32_uart_readl(sport, PIC32_UART_STA) & PIC32_UART_STA_UTXEN))
702 return;

--- 251 unchanged lines hidden ---