sifive.c (173b0b5b0e865348684c02bd9cb1d22b5d46e458) sifive.c (4210022789f345642d56b8165757df6316560db7)
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 * Based partially on:
8 * - drivers/tty/serial/pxa.c

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

756 return -ENODEV;
757
758 dev->con->write = early_sifive_serial_write;
759
760 return 0;
761}
762
763OF_EARLYCON_DECLARE(sifive, "sifive,uart0", early_sifive_serial_setup);
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 * Based partially on:
8 * - drivers/tty/serial/pxa.c

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

756 return -ENODEV;
757
758 dev->con->write = early_sifive_serial_write;
759
760 return 0;
761}
762
763OF_EARLYCON_DECLARE(sifive, "sifive,uart0", early_sifive_serial_setup);
764OF_EARLYCON_DECLARE(sifive, "sifive,fu540-c000-uart0",
764OF_EARLYCON_DECLARE(sifive, "sifive,fu540-c000-uart",
765 early_sifive_serial_setup);
766#endif /* CONFIG_SERIAL_EARLYCON */
767
768/*
769 * Linux console interface
770 */
771
772#ifdef CONFIG_SERIAL_SIFIVE_CONSOLE

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

1027
1028 return uart_resume_port(&sifive_serial_uart_driver, &ssp->port);
1029}
1030
1031static DEFINE_SIMPLE_DEV_PM_OPS(sifive_uart_pm_ops, sifive_serial_suspend,
1032 sifive_serial_resume);
1033
1034static const struct of_device_id sifive_serial_of_match[] = {
765 early_sifive_serial_setup);
766#endif /* CONFIG_SERIAL_EARLYCON */
767
768/*
769 * Linux console interface
770 */
771
772#ifdef CONFIG_SERIAL_SIFIVE_CONSOLE

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

1027
1028 return uart_resume_port(&sifive_serial_uart_driver, &ssp->port);
1029}
1030
1031static DEFINE_SIMPLE_DEV_PM_OPS(sifive_uart_pm_ops, sifive_serial_suspend,
1032 sifive_serial_resume);
1033
1034static const struct of_device_id sifive_serial_of_match[] = {
1035 { .compatible = "sifive,fu540-c000-uart0" },
1035 { .compatible = "sifive,fu540-c000-uart" },
1036 { .compatible = "sifive,uart0" },
1037 {},
1038};
1039MODULE_DEVICE_TABLE(of, sifive_serial_of_match);
1040
1041static struct platform_driver sifive_serial_platform_driver = {
1042 .probe = sifive_serial_probe,
1043 .remove_new = sifive_serial_remove,

--- 39 unchanged lines hidden ---
1036 { .compatible = "sifive,uart0" },
1037 {},
1038};
1039MODULE_DEVICE_TABLE(of, sifive_serial_of_match);
1040
1041static struct platform_driver sifive_serial_platform_driver = {
1042 .probe = sifive_serial_probe,
1043 .remove_new = sifive_serial_remove,

--- 39 unchanged lines hidden ---