mirror of https://github.com/OpenIPC/firmware.git
46 lines
1.4 KiB
Diff
46 lines
1.4 KiB
Diff
diff -drupN a/drivers/tty/serial/Kconfig b/drivers/tty/serial/Kconfig
|
|
--- a/drivers/tty/serial/Kconfig 2018-08-06 17:23:04.000000000 +0300
|
|
+++ b/drivers/tty/serial/Kconfig 2022-06-12 05:28:14.000000000 +0300
|
|
@@ -1663,6 +1663,41 @@ config SERIAL_MVEBU_CONSOLE
|
|
and warnings and which allows logins in single user mode)
|
|
Otherwise, say 'N'.
|
|
|
|
+config SERIAL_SUNXI
|
|
+ tristate "SUNXI UART Controller"
|
|
+ depends on SERIAL_8250=n
|
|
+ depends on OF
|
|
+ select SERIAL_CORE
|
|
+ default y
|
|
+ help
|
|
+ If you have an Allwinner SOC based board and want to use the
|
|
+ built-in UART of the SoC, say Y to this option.
|
|
+
|
|
+config SERIAL_SUNXI_DMA
|
|
+ bool "SUNXI UART USE DMA"
|
|
+ depends on SERIAL_SUNXI=y
|
|
+ depends on OF
|
|
+ default n
|
|
+ help
|
|
+ If you have an Allwinner SOC based board and want to use the
|
|
+ built-in UART DMA of the SoC, say Y to this option
|
|
+
|
|
+config SERIAL_SUNXI_CONSOLE
|
|
+ bool "Console on SUNXI UART port"
|
|
+ depends on SERIAL_SUNXI=y
|
|
+ select SERIAL_CORE_CONSOLE
|
|
+ default SERIAL_SUNXI
|
|
+ help
|
|
+ Enable a built-in UART port of the Allinner SOC to be the system console.
|
|
+
|
|
+config SERIAL_SUNXI_EARLYCON
|
|
+ bool "Enable sunxi earlycon."
|
|
+ depends on SERIAL_SUNXI=y
|
|
+ depends on SERIAL_SUNXI_CONSOLE=y
|
|
+ select SERIAL_EARLYCON
|
|
+ default n
|
|
+ help
|
|
+ Enable earlycon with boot step. If enable earlycon, kernel cmd (earlycon=uart0,addr) must be add.
|
|
endmenu
|
|
|
|
config SERIAL_MCTRL_GPIO
|