From 9d0da02fbd386ec002b5becf0535a69f31488e62 Mon Sep 17 00:00:00 2001 From: Andrew Davis Date: Thu, 10 Oct 2024 10:25:32 -0500 Subject: [PATCH] soc: ti: k3: Select PINCTRL in UART driver not Kconfig.defconfig The default configuration for PINCTRL should not be set with the other default configurations in .defconfig, instead select a default value as part of defining the UART driver. Signed-off-by: Andrew Davis --- boards/ti/sk_am62/sk_am62_am6234_m4_defconfig | 3 --- drivers/serial/Kconfig.ns16550 | 1 + soc/ti/k3/am6x/Kconfig.defconfig | 3 --- 3 files changed, 1 insertion(+), 6 deletions(-) diff --git a/boards/ti/sk_am62/sk_am62_am6234_m4_defconfig b/boards/ti/sk_am62/sk_am62_am6234_m4_defconfig index 8ed54c6554e..329040d31bd 100644 --- a/boards/ti/sk_am62/sk_am62_am6234_m4_defconfig +++ b/boards/ti/sk_am62/sk_am62_am6234_m4_defconfig @@ -11,9 +11,6 @@ CONFIG_CORTEX_M_SYSTICK=y # Zephyr Kernel Configuration CONFIG_XIP=n -# Enable Pinctrl -CONFIG_PINCTRL=y - # Serial Driver CONFIG_SERIAL=y diff --git a/drivers/serial/Kconfig.ns16550 b/drivers/serial/Kconfig.ns16550 index d919de2f1b6..fb7bcebe098 100644 --- a/drivers/serial/Kconfig.ns16550 +++ b/drivers/serial/Kconfig.ns16550 @@ -69,6 +69,7 @@ config UART_NS16550_ACCESS_WORD_ONLY config UART_NS16550_TI_K3 bool "Add support for NS16550 variant specific to TI K3 SoCs" + select PINCTRL help Enabling this configuration allows the users to use the UART port in Texas Instruments K3 SoCs by enabling a vendor specific extended register diff --git a/soc/ti/k3/am6x/Kconfig.defconfig b/soc/ti/k3/am6x/Kconfig.defconfig index 9555905beec..3183487e2e3 100644 --- a/soc/ti/k3/am6x/Kconfig.defconfig +++ b/soc/ti/k3/am6x/Kconfig.defconfig @@ -27,9 +27,6 @@ config SYS_CLOCK_HW_CYCLES_PER_SEC default 200000000 if SOC_SERIES_AM6X_A53 default 19200000 if SOC_SERIES_AM6X_R5 -config PINCTRL - default y - if SERIAL config UART_NS16550