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 <laurentiu.mihalcea@nxp.com>
This commit is contained in:
parent
ebdb07a05c
commit
d42dfc36d7
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue