Skip to content

Commit c80dd35

Browse files
terpstrapalmer-dabbelt
authored andcommitted
serial/sifive: initial driver from Paul Walmsley
1 parent 60cc43f commit c80dd35

File tree

4 files changed

+1078
-0
lines changed

4 files changed

+1078
-0
lines changed

drivers/tty/serial/Kconfig

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1060,6 +1060,29 @@ config SERIAL_OMAP_CONSOLE
10601060
your boot loader about how to pass options to the kernel at
10611061
boot time.)
10621062

1063+
config SERIAL_SIFIVE
1064+
tristate "SiFive UART support"
1065+
depends on OF
1066+
select SERIAL_CORE
1067+
help
1068+
If you have a SiFive Freedom U500 or similar SoC, enable this to
1069+
support the SiFive UART.
1070+
1071+
config SERIAL_SIFIVE_CONSOLE
1072+
bool "Console on SiFive UART"
1073+
depends on SERIAL_SIFIVE=y
1074+
select SERIAL_CORE_CONSOLE
1075+
help
1076+
Select this option if you would like to use a SiFive UART as the
1077+
system console.
1078+
1079+
Even if you say Y here, the currently visible virtual console
1080+
(/dev/tty0) will still be used as the system console by default, but
1081+
you can alter that using a kernel command line option such as
1082+
"console=ttySIx". (Try "man bootparam" or see the documentation of
1083+
your boot loader about how to pass options to the kernel at
1084+
boot time.)
1085+
10631086
config SERIAL_LANTIQ
10641087
bool "Lantiq serial driver"
10651088
depends on LANTIQ

drivers/tty/serial/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ obj-$(CONFIG_SERIAL_MVEBU_UART) += mvebu-uart.o
8989
obj-$(CONFIG_SERIAL_PIC32) += pic32_uart.o
9090
obj-$(CONFIG_SERIAL_MPS2_UART) += mps2-uart.o
9191
obj-$(CONFIG_SERIAL_OWL) += owl-uart.o
92+
obj-$(CONFIG_SERIAL_SIFIVE) += sifive.o
9293

9394
# GPIOLIB helpers for modem control lines
9495
obj-$(CONFIG_SERIAL_MCTRL_GPIO) += serial_mctrl_gpio.o

0 commit comments

Comments
 (0)