• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# SPDX-License-Identifier: GPL-2.0
2#
3# Serial device configuration
4#
5
6menu "UART Drivers"
7	depends on TTY
8	depends on HAS_IOMEM
9	depends on AW_BSP
10
11config AW_UART
12	tristate "UART Support for Allwinner SoCs"
13	depends on AW_BSP
14	select SERIAL_CORE
15	default y
16	help
17	  Enable the UART (Serial Ports) of the SoC
18
19config AW_SERIAL_DMA
20	bool "Enable DMA for UART"
21	depends on AW_UART && AW_DMA
22	depends on OF
23	default n
24	help
25	  Allow DMA to be used for UART transmission.
26
27config AW_SERIAL_CONSOLE
28	bool "Enable Console on UART"
29	select SERIAL_CORE_CONSOLE
30	depends on AW_UART
31	default AW_UART
32	help
33	  Allow an UART port to be used as the system console.
34
35config AW_SERIAL_EARLYCON
36	bool "Enable Earlycon"
37	depends on SERIAL_EARLYCON
38	depends on AW_UART
39	default n
40	help
41	  Enable earlycon during boot stage.
42	  If This is enabled, kernel cmdline (earlycon=uart0,<addr>) must be specified.
43
44config EARLY_PRINTK
45	bool "Enable Early-Printk"
46	depends on AW_BSP
47	default y
48	help
49	  Enabled Early-Printk for debugging
50
51endmenu
52