]> Git Repo - J-u-boot.git/blobdiff - drivers/serial/Kconfig
Merge tag 'u-boot-amlogic-20200727' of https://gitlab.denx.de/u-boot/custodians/u...
[J-u-boot.git] / drivers / serial / Kconfig
index 6252dd8c4b5469d81904378835bdc876894476ea..e146ffc5f866e6940da5956c3b39462e9182c790 100644 (file)
@@ -45,7 +45,7 @@ config SERIAL_PRESENT
 
 config SPL_SERIAL_PRESENT
        bool "Provide a serial driver in SPL"
-       depends on DM_SERIAL
+       depends on DM_SERIAL && SPL
        default y
        help
          In very space-constrained devices even the full UART driver is too
@@ -55,7 +55,7 @@ config SPL_SERIAL_PRESENT
 
 config TPL_SERIAL_PRESENT
        bool "Provide a serial driver in TPL"
-       depends on DM_SERIAL
+       depends on DM_SERIAL && TPL
        default y
        help
          In very space-constrained devices even the full UART driver is too
@@ -100,6 +100,7 @@ config CONS_INDEX
 config DM_SERIAL
        bool "Enable Driver Model for serial drivers"
        depends on DM
+       select SYS_MALLOC_F
        help
          Enable driver model for serial. This replaces
          drivers/serial/serial.c with the serial uclass, which
@@ -136,6 +137,7 @@ config SERIAL_SEARCH_ALL
 config SPL_DM_SERIAL
        bool "Enable Driver Model for serial drivers in SPL"
        depends on DM_SERIAL && SPL_DM
+       select SYS_SPL_MALLOC_F
        default y
        help
          Enable driver model for serial in SPL. This replaces
@@ -145,7 +147,8 @@ config SPL_DM_SERIAL
 
 config TPL_DM_SERIAL
        bool "Enable Driver Model for serial drivers in TPL"
-       depends on DM_SERIAL
+       depends on DM_SERIAL && TPL_DM
+       select SYS_TPL_MALLOC_F
        default y if TPL && DM_SERIAL
        help
          Enable driver model for serial in TPL. This replaces
@@ -186,6 +189,7 @@ choice
 
 config DEBUG_UART_ALTERA_JTAGUART
        bool "Altera JTAG UART"
+       depends on ALTERA_JTAG_UART
        help
          Select this to enable a debug UART using the altera_jtag_uart driver.
          You will need to provide parameters to make this work. The driver will
@@ -193,6 +197,7 @@ config DEBUG_UART_ALTERA_JTAGUART
 
 config DEBUG_UART_ALTERA_UART
        bool "Altera UART"
+       depends on ALTERA_UART
        help
          Select this to enable a debug UART using the altera_uart driver.
          You will need to provide parameters to make this work. The driver will
@@ -218,6 +223,7 @@ config DEBUG_ARC_SERIAL
 
 config DEBUG_UART_ATMEL
        bool "Atmel USART"
+       depends on ATMEL_USART
        help
          Select this to enable a debug UART using the atmel usart driver. You
          will need to provide parameters to make this work. The driver will
@@ -233,6 +239,7 @@ config DEBUG_UART_BCM6345
 
 config DEBUG_UART_NS16550
        bool "ns16550"
+       depends on SYS_NS16550
        help
          Select this to enable a debug UART using the ns16550 driver. You
          will need to provide parameters to make this work. The driver will
@@ -249,6 +256,7 @@ config DEBUG_EFI_CONSOLE
 
 config DEBUG_UART_S5P
        bool "Samsung S5P"
+       depends on ARCH_EXYNOS || ARCH_S5PC1XX
        help
          Select this to enable a debug UART using the serial_s5p driver. You
          will need to provide parameters to make this work. The driver will
@@ -264,6 +272,7 @@ config DEBUG_UART_MESON
 
 config DEBUG_UART_UARTLITE
        bool "Xilinx Uartlite"
+       depends on XILINX_UARTLITE
        help
          Select this to enable a debug UART using the serial_uartlite driver.
          You will need to provide parameters to make this work. The driver will
@@ -271,6 +280,7 @@ config DEBUG_UART_UARTLITE
 
 config DEBUG_UART_ARM_DCC
        bool "ARM DCC"
+       depends on ARM_DCC
        help
          Select this to enable a debug UART using the ARM JTAG DCC port.
          The DCC port can be used for very early debugging and doesn't require
@@ -282,6 +292,7 @@ config DEBUG_UART_ARM_DCC
 
 config DEBUG_MVEBU_A3700_UART
        bool "Marvell Armada 3700"
+       depends on MVEBU_A3700_UART
        help
          Select this to enable a debug UART using the serial_mvebu driver. You
          will need to provide parameters to make this work. The driver will
@@ -289,6 +300,7 @@ config DEBUG_MVEBU_A3700_UART
 
 config DEBUG_UART_ZYNQ
        bool "Xilinx Zynq"
+       depends on ZYNQ_SERIAL
        help
          Select this to enable a debug UART using the serial_zynq driver. You
          will need to provide parameters to make this work. The driver will
@@ -304,6 +316,7 @@ config DEBUG_UART_APBUART
 
 config DEBUG_UART_PL010
        bool "pl010"
+       depends on PL01X_SERIAL
        help
          Select this to enable a debug UART using the pl01x driver with the
          PL010 UART type. You will need to provide parameters to make this
@@ -312,6 +325,7 @@ config DEBUG_UART_PL010
 
 config DEBUG_UART_PL011
        bool "pl011"
+       depends on PL011_SERIAL
        help
          Select this to enable a debug UART using the pl01x driver with the
          PL011 UART type. You will need to provide parameters to make this
@@ -343,6 +357,14 @@ config DEBUG_UART_SANDBOX
          start up driver model. The driver will be available until the real
          driver model serial is running.
 
+config DEBUG_UART_SIFIVE
+       bool "SiFive UART"
+       depends on SIFIVE_SERIAL
+       help
+         Select this to enable a debug UART using the serial_sifive driver. You
+         will need to provide parameters to make this work. The driver will
+         be available until the real driver-model serial is running.
+
 config DEBUG_UART_STM32
        bool "STMicroelectronics STM32"
        depends on STM32_SERIAL
@@ -363,6 +385,7 @@ config DEBUG_UART_UNIPHIER
 
 config DEBUG_UART_OMAP
        bool "OMAP uart"
+       depends on OMAP_SERIAL
        help
          Select this to enable a debug UART using the omap ns16550 driver.
          You will need to provide parameters to make this work. The driver
@@ -435,10 +458,23 @@ config DEBUG_UART_ANNOUNCE
 
 config DEBUG_UART_SKIP_INIT
        bool "Skip UART initialization"
+       depends on DEBUG_UART
        help
          Select this if the UART you want to use for debug output is already
          initialized by the time U-Boot starts its execution.
 
+config DEBUG_UART_NS16550_CHECK_ENABLED
+       bool "Check if UART is enabled on output"
+       depends on DEBUG_UART
+       depends on DEBUG_UART_NS16550
+       help
+         Select this if puts()/putc() might be called before the debug UART
+         has been initialized. If this is disabled, putc() might sit in a
+         tight loop if it is called before debug_uart_init() has been called.
+
+         Note that this does not work for every ns16550-compatible UART and
+         so has to be enabled carefully or you might notice lost characters.
+
 config ALTERA_JTAG_UART
        bool "Altera JTAG UART support"
        depends on DM_SERIAL
@@ -481,6 +517,12 @@ config ARC_SERIAL
          Select this to enable support for ARC UART now typically
          only used in Synopsys DesignWare ARC simulators like nSIM.
 
+config ARM_DCC
+       bool "ARM Debug Communication Channel (DCC) as UART support"
+       depends on ARM
+       help
+         Select this to enable using the ARM DCC as a form of UART.
+
 config ATMEL_USART
        bool "Atmel USART support"
        help
@@ -488,6 +530,15 @@ config ATMEL_USART
          configured in the device tree, and input clock frequency can
          be got from the clk node.
 
+config SPL_UART_CLOCK
+       int "SPL fixed UART input clock"
+       depends on ATMEL_USART && SPL && !SPL_CLK
+       default 132096000 if ARCH_AT91
+       help
+         Provide a fixed clock value as input to the UART controller. This
+         might be needed on platforms which can't enable CONFIG_SPL_CLK
+         because of SPL image size restrictions.
+
 config BCM283X_MU_SERIAL
        bool "Support for BCM283x Mini-UART"
        depends on DM_SERIAL && ARCH_BCM283X
@@ -510,6 +561,24 @@ config BCM6345_SERIAL
        help
          Select this to enable UART on BCM6345 SoCs.
 
+config COREBOOT_SERIAL
+       bool "Coreboot UART support"
+       depends on DM_SERIAL
+       default y if SYS_COREBOOT
+       select SYS_NS16550
+       help
+         Select this to enable a ns16550-style UART where the platform data
+         comes from the coreboot 'sysinfo' tables. This allows U-Boot to have
+         a serial console on any platform without needing to change the
+         device tree, etc.
+
+config CORTINA_UART
+       bool "Cortina UART support"
+       depends on DM_SERIAL
+       help
+         Select this to enable UART support for Cortina-Access UART devices
+         found on CAxxxx SoCs.
+
 config FSL_LINFLEXUART
        bool "Freescale Linflex UART support"
        depends on DM_SERIAL
@@ -530,9 +599,18 @@ config MVEBU_A3700_UART
          Choose this option to add support for UART driver on the Marvell
          Armada 3700 SoC. The base address is configured via DT.
 
+config MCFUART
+       bool "Freescale ColdFire UART support"
+        help
+          Choose this option to add support for UART driver on the ColdFire
+          SoC's family. The serial communication channel provides a full-duplex
+          asynchronous/synchronous receiver and transmitter deriving an
+          operating frequency from the internal bus clock or an external clock.
+
 config MXC_UART
        bool "IMX serial port support"
-       depends on MX5 || MX6
+       depends on ARCH_MX25 || ARCH_MX31 || TARGET_APF27 || TARGET_FLEA3 || TARGET_MX35PDK \
+               || MX5 || MX6 || MX7 || IMX8M
        help
          If you have a machine based on a Motorola IMX CPU you
          can enable its onboard serial port by enabling this option.
@@ -561,6 +639,27 @@ config SYS_NS16550
          be used. It can be a constant or a function to get clock, eg,
          get_serial_clock().
 
+config NS16550_DYNAMIC
+       bool "Allow NS16550 to be configured at runtime"
+       default y if SYS_COREBOOT || SYS_SLIMBOOTLOADER
+       help
+         Enable this option to allow device-tree control of the driver.
+
+         Normally this driver is controlled by the following options:
+
+         CONFIG_SYS_NS16550_PORT_MAPPED - indicates that port I/O is used for
+            access. If not enabled, then the UART is memory-mapped.
+         CONFIG_SYS_NS16550_MEM32 - if memory-mapped, indicates that 32-bit
+            access should be used (instead of 8-bit)
+         CONFIG_SYS_NS16550_REG_SIZE - indicates register width and also
+            endianness. If positive, big-endian access is used. If negative,
+            little-endian is used.
+
+         It is not a good practice for a driver to be statically configured,
+         since it prevents the same driver being used for different types of
+         UARTs in a system. This option avoids this problem at the cost of a
+         slightly increased code size.
+
 config INTEL_MID_SERIAL
        bool "Intel MID platform UART support"
        depends on DM_SERIAL && OF_CONTROL
@@ -679,6 +778,12 @@ config PXA_SERIAL
          If you have a machine based on a Marvell XScale PXA2xx CPU you
          can enable its onboard serial ports by enabling this option.
 
+config SIFIVE_SERIAL
+       bool "SiFive UART support"
+       depends on DM_SERIAL
+       help
+         This driver supports the SiFive UART. If unsure say N.
+
 config STI_ASC_SERIAL
        bool "STMicroelectronics on-chip UART"
        depends on DM_SERIAL && ARCH_STI
This page took 0.03594 seconds and 4 git commands to generate.