Skip to content

Commit

Permalink
serial: bflb_uart: add Bouffalolab UART Driver
Browse files Browse the repository at this point in the history
Add the driver for Bouffalolab UART IP which is found in Bouffalolab
SoCs such as bl808.

UART driver probe will create path named "/dev/ttySx".

Signed-off-by: Jisheng Zhang <jszhang@kernel.org>
  • Loading branch information
xhackerustc authored and intel-lab-lkp committed Nov 27, 2022
1 parent be0997d commit 0bb4f3a
Show file tree
Hide file tree
Showing 4 changed files with 632 additions and 0 deletions.
18 changes: 18 additions & 0 deletions drivers/tty/serial/Kconfig
Expand Up @@ -179,6 +179,24 @@ config SERIAL_ATMEL_TTYAT

Say Y if you have an external 8250/16C550 UART. If unsure, say N.

config SERIAL_BFLB
tristate "Bouffalolab serial port support"
select SERIAL_CORE
depends on COMMON_CLK
help
This enables the driver for the Bouffalolab's serial.

config SERIAL_BFLB_CONSOLE
bool "Support for console on Bouffalolab serial port"
depends on SERIAL_BFLB
select SERIAL_CORE_CONSOLE
select SERIAL_EARLYCON
help
Say Y here if you wish to use a Bouffalolab UART 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) as /dev/ttySn.

config SERIAL_KGDB_NMI
bool "Serial console over KGDB NMI debugger port"
depends on KGDB_SERIAL_CONSOLE
Expand Down
1 change: 1 addition & 0 deletions drivers/tty/serial/Makefile
Expand Up @@ -25,6 +25,7 @@ obj-$(CONFIG_SERIAL_8250) += 8250/

obj-$(CONFIG_SERIAL_AMBA_PL010) += amba-pl010.o
obj-$(CONFIG_SERIAL_AMBA_PL011) += amba-pl011.o
obj-$(CONFIG_SERIAL_BFLB) += bflb_uart.o
obj-$(CONFIG_SERIAL_CLPS711X) += clps711x.o
obj-$(CONFIG_SERIAL_PXA_NON8250) += pxa.o
obj-$(CONFIG_SERIAL_SA1100) += sa1100.o
Expand Down

0 comments on commit 0bb4f3a

Please sign in to comment.