sifive.c (8be98d2f2a0a262f8bf8a0bc1fdf522b3c7aab17) sifive.c (27e8c8b483a8c33bd770b8cf619d43c7a68ddbaa)
1// SPDX-License-Identifier: GPL-2.0+
2/*
3 * SiFive UART driver
4 * Copyright (C) 2018 Paul Walmsley <paul@pwsan.com>
5 * Copyright (C) 2018-2019 SiFive
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by

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

882
883static void __ssp_add_console_port(struct sifive_serial_port *ssp)
884{
885 sifive_serial_console_ports[ssp->port.line] = ssp;
886}
887
888static void __ssp_remove_console_port(struct sifive_serial_port *ssp)
889{
1// SPDX-License-Identifier: GPL-2.0+
2/*
3 * SiFive UART driver
4 * Copyright (C) 2018 Paul Walmsley <paul@pwsan.com>
5 * Copyright (C) 2018-2019 SiFive
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by

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

882
883static void __ssp_add_console_port(struct sifive_serial_port *ssp)
884{
885 sifive_serial_console_ports[ssp->port.line] = ssp;
886}
887
888static void __ssp_remove_console_port(struct sifive_serial_port *ssp)
889{
890 sifive_serial_console_ports[ssp->port.line] = 0;
890 sifive_serial_console_ports[ssp->port.line] = NULL;
891}
892
893#define SIFIVE_SERIAL_CONSOLE (&sifive_serial_console)
894
895#else
896
897#define SIFIVE_SERIAL_CONSOLE NULL
898

--- 203 unchanged lines hidden ---
891}
892
893#define SIFIVE_SERIAL_CONSOLE (&sifive_serial_console)
894
895#else
896
897#define SIFIVE_SERIAL_CONSOLE NULL
898

--- 203 unchanged lines hidden ---