mirror of
https://github.com/Dasharo/linux.git
synced 2026-03-06 15:25:10 -08:00
serial: Add Milbeaut serial control
Add Milbeaut serial control including earlycon and console. Signed-off-by: Sugaya Taichi <sugaya.taichi@socionext.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
fa2b360f26
commit
ba44dc0430
@@ -1580,6 +1580,32 @@ config SERIAL_RDA_CONSOLE
|
||||
Say 'Y' here if you wish to use the RDA8810PL UART as the system
|
||||
console. Only earlycon is implemented currently.
|
||||
|
||||
config SERIAL_MILBEAUT_USIO
|
||||
tristate "Milbeaut USIO/UART serial port support"
|
||||
depends on ARCH_MILBEAUT || (COMPILE_TEST && OF)
|
||||
default ARCH_MILBEAUT
|
||||
select SERIAL_CORE
|
||||
help
|
||||
This selects the USIO/UART IP found in Socionext Milbeaut SoCs.
|
||||
|
||||
config SERIAL_MILBEAUT_USIO_PORTS
|
||||
int "Maximum number of CSIO/UART ports (1-8)"
|
||||
range 1 8
|
||||
depends on SERIAL_MILBEAUT_USIO
|
||||
default "4"
|
||||
|
||||
config SERIAL_MILBEAUT_USIO_CONSOLE
|
||||
bool "Support for console on MILBEAUT USIO/UART serial port"
|
||||
depends on SERIAL_MILBEAUT_USIO=y
|
||||
default y
|
||||
select SERIAL_CORE_CONSOLE
|
||||
select SERIAL_EARLYCON
|
||||
help
|
||||
Say 'Y' here if you wish to use a USIO/UART of Socionext Milbeaut
|
||||
SoCs as the system console (the system console is the device which
|
||||
receives all kernel messages and warnings and which allows logins in
|
||||
single user mode).
|
||||
|
||||
endmenu
|
||||
|
||||
config SERIAL_MCTRL_GPIO
|
||||
|
||||
@@ -92,6 +92,7 @@ obj-$(CONFIG_SERIAL_PIC32) += pic32_uart.o
|
||||
obj-$(CONFIG_SERIAL_MPS2_UART) += mps2-uart.o
|
||||
obj-$(CONFIG_SERIAL_OWL) += owl-uart.o
|
||||
obj-$(CONFIG_SERIAL_RDA) += rda-uart.o
|
||||
obj-$(CONFIG_SERIAL_MILBEAUT_USIO) += milbeaut_usio.o
|
||||
|
||||
# GPIOLIB helpers for modem control lines
|
||||
obj-$(CONFIG_SERIAL_MCTRL_GPIO) += serial_mctrl_gpio.o
|
||||
|
||||
621
drivers/tty/serial/milbeaut_usio.c
Normal file
621
drivers/tty/serial/milbeaut_usio.c
Normal file
File diff suppressed because it is too large
Load Diff
@@ -287,4 +287,7 @@
|
||||
/* RDA UART */
|
||||
#define PORT_RDA 118
|
||||
|
||||
/* Socionext Milbeaut UART */
|
||||
#define PORT_MLB_USIO 119
|
||||
|
||||
#endif /* _UAPILINUX_SERIAL_CORE_H */
|
||||
|
||||
Reference in New Issue
Block a user