Skip to content

Commit

Permalink
tty: serial: Add Nuvoton ma35d1 serial driver support
Browse files Browse the repository at this point in the history
This adds UART and console driver for Nuvoton ma35d1 Soc.
It supports full-duplex communication, FIFO control, and
hardware flow control.

Signed-off-by: Jacky Huang <ychuang3@nuvoton.com>
  • Loading branch information
ychuang3 authored and intel-lab-lkp committed Mar 28, 2023
1 parent fd1b2dd commit 380d83a
Show file tree
Hide file tree
Showing 3 changed files with 821 additions and 0 deletions.
18 changes: 18 additions & 0 deletions drivers/tty/serial/Kconfig
Expand Up @@ -1562,6 +1562,24 @@ config SERIAL_SUNPLUS_CONSOLE
you can alter that using a kernel command line option such as
"console=ttySUPx".

config SERIAL_NUVOTON_MA35D1
tristate "Nuvoton MA35D1 family UART support"
depends on ARCH_NUVOTON || COMPILE_TEST
select SERIAL_CORE
help
This driver supports Nuvoton MA35D1 family UART ports. If you would
like to use them, you must answer Y or M to this option. Note that
for use as console, it must be included in kernel and not as a
module

config SERIAL_NUVOTON_MA35D1_CONSOLE
bool "Console on a Nuvotn MA35D1 family UART port"
depends on SERIAL_NUVOTON_MA35D1=y
select SERIAL_CORE_CONSOLE
help
Select this options if you'd like to use the UART port0 of the
Nuvoton MA35D1 family as a console.

endmenu

config SERIAL_MCTRL_GPIO
Expand Down
1 change: 1 addition & 0 deletions drivers/tty/serial/Makefile
Expand Up @@ -93,3 +93,4 @@ obj-$(CONFIG_SERIAL_MCTRL_GPIO) += serial_mctrl_gpio.o

obj-$(CONFIG_SERIAL_KGDB_NMI) += kgdb_nmi.o
obj-$(CONFIG_KGDB_SERIAL_CONSOLE) += kgdboc.o
obj-$(CONFIG_SERIAL_NUVOTON_MA35D1) += ma35d1_serial.o

0 comments on commit 380d83a

Please sign in to comment.