[PATCH 1/2] serial: Tighten some serial driver dependencies
Tom Rini
trini at konsulko.com
Mon Aug 4 23:57:13 CEST 2025
A few serial drivers cannot build without access to some platform
specific header files. Express those requirements in Kconfig as well.
Signed-off-by: Tom Rini <trini at konsulko.com>
---
drivers/serial/Kconfig | 14 +++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)
diff --git a/drivers/serial/Kconfig b/drivers/serial/Kconfig
index 1f2f2468eb0b..d7d59e02dd0a 100644
--- a/drivers/serial/Kconfig
+++ b/drivers/serial/Kconfig
@@ -665,6 +665,7 @@ config ARM_DCC
config ATMEL_USART
bool "Atmel USART support"
+ depends on ARCH_AT91
help
Select this to enable USART support for Atmel SoCs. It can be
configured in the device tree, and input clock frequency can
@@ -703,8 +704,8 @@ config BCM6345_SERIAL
config COREBOOT_SERIAL
bool "Coreboot UART support"
- depends on DM_SERIAL
- default y if SYS_COREBOOT
+ depends on DM_SERIAL && SYS_COREBOOT
+ default y
select SYS_NS16550
help
Select this to enable a ns16550-style UART where the platform data
@@ -724,7 +725,7 @@ config COREBOOT_SERIAL_FROM_DBG2
config CORTINA_UART
bool "Cortina UART support"
- depends on DM_SERIAL
+ depends on DM_SERIAL && TARGET_PRESIDIO_ASIC
help
Select this to enable UART support for Cortina-Access UART devices
found on CAxxxx SoCs.
@@ -738,6 +739,7 @@ config FSL_LINFLEXUART
config FSL_LPUART
bool "Freescale LPUART support"
+ depends on MACH_IMX || ARCH_LS1021A || ARCH_LS1028A
help
Select this to enable a Low Power UART for Freescale VF610 and
QorIQ Layerscape devices.
@@ -748,12 +750,14 @@ config LPUART
config MVEBU_A3700_UART
bool "UART support for Armada 3700"
+ depends on ARCH_MVEBU
help
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"
+ depends on M68K
help
Choose this option to add support for UART driver on the ColdFire
SoC's family. The serial communication channel provides a full-duplex
@@ -879,7 +883,7 @@ config PL01X_SERIAL
config ROCKCHIP_SERIAL
bool "Rockchip on-chip UART support"
- depends on DM_SERIAL
+ depends on DM_SERIAL && ARCH_ROCKCHIP
select SYS_NS16550
help
Select this to enable a debug UART for Rockchip devices when using
@@ -1110,7 +1114,7 @@ config MTK_SERIAL
config MT7620_SERIAL
bool "UART driver for MediaTek MT7620 and earlier SoCs"
- depends on DM_SERIAL
+ depends on DM_SERIAL && SOC_MT7620
help
Select this to enable UART support for MediaTek MT7620 and earlier
SoCs. This driver uses driver model and requires a device tree
--
2.43.0
More information about the U-Boot
mailing list