Skip to content

Commit b7396a3

Browse files
Lyra-Zhanggregkh
authored andcommitted
tty/serial: Add Spreadtrum sc9836-uart driver support
Add a full sc9836-uart driver for SC9836 SoC which is based on the spreadtrum sharkl64 platform. This driver also support earlycon. Originally-by: Lanqing Liu <[email protected]> Signed-off-by: Orson Zhai <[email protected]> Signed-off-by: Chunyan Zhang <[email protected]> Acked-by: Arnd Bergmann <[email protected]> Reviewed-by: Peter Hurley <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent e570f6b commit b7396a3

File tree

4 files changed

+815
-0
lines changed

4 files changed

+815
-0
lines changed

drivers/tty/serial/Kconfig

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1583,6 +1583,24 @@ config SERIAL_MEN_Z135
15831583
This driver can also be build as a module. If so, the module will be called
15841584
men_z135_uart.ko
15851585

1586+
config SERIAL_SPRD
1587+
tristate "Support for Spreadtrum serial"
1588+
depends on ARCH_SPRD
1589+
select SERIAL_CORE
1590+
help
1591+
This enables the driver for the Spreadtrum's serial.
1592+
1593+
config SERIAL_SPRD_CONSOLE
1594+
bool "Spreadtrum UART console support"
1595+
depends on SERIAL_SPRD=y
1596+
select SERIAL_CORE_CONSOLE
1597+
select SERIAL_EARLYCON
1598+
help
1599+
Support for early debug console using Spreadtrum's serial. This enables
1600+
the console before standard serial driver is probed. This is enabled
1601+
with "earlycon" on the kernel command line. The console is
1602+
enabled when early_param is processed.
1603+
15861604
endmenu
15871605

15881606
config SERIAL_MCTRL_GPIO

drivers/tty/serial/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ obj-$(CONFIG_SERIAL_RP2) += rp2.o
9393
obj-$(CONFIG_SERIAL_FSL_LPUART) += fsl_lpuart.o
9494
obj-$(CONFIG_SERIAL_CONEXANT_DIGICOLOR) += digicolor-usart.o
9595
obj-$(CONFIG_SERIAL_MEN_Z135) += men_z135_uart.o
96+
obj-$(CONFIG_SERIAL_SPRD) += sprd_serial.o
9697

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

0 commit comments

Comments
 (0)