From d42dfc36d7a88ba2fdb596a1cf0d2d24aab4815d Mon Sep 17 00:00:00 2001 From: Laurentiu Mihalcea Date: Thu, 21 Mar 2024 15:53:14 +0200 Subject: [PATCH] drivers: pinctrl: Kconfig.imx: enable PINCTRL_IMX by default Currently, when using the `pinctrl_imx.c` driver one has to manually enable `CONFIG_PINCTRL_IMX` even if the pinctrl node using the driver is enabled. This is redundant and prone to error as one would expect the driver to be enabled when the node is also enabled. This commit fixes the issue by enabling `CONFIG_PINCTRL_IMX` by default and adding a new dependency on the state of the pinctrl node (i.e: node needs to be enabled for the configuration to also be set to `y`). Signed-off-by: Laurentiu Mihalcea --- drivers/pinctrl/Kconfig.imx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/pinctrl/Kconfig.imx b/drivers/pinctrl/Kconfig.imx index 506f5b30016..d12571786a0 100644 --- a/drivers/pinctrl/Kconfig.imx +++ b/drivers/pinctrl/Kconfig.imx @@ -3,7 +3,9 @@ config PINCTRL_IMX bool "Pin controller driver for iMX MCUs" + depends on DT_HAS_NXP_IMX_IOMUXC_ENABLED depends on HAS_MCUX_IOMUXC || HAS_IMX_IOMUXC + default y help Enable pin controller driver for NXP iMX series MCUs