d42dfc36d7
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>
25 lines
642 B
Plaintext
25 lines
642 B
Plaintext
# Copyright (c) 2022 NXP
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
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
|
|
|
|
config PINCTRL_IMX_SCU
|
|
bool "Pin controller driver for SCU-based i.MX SoCs"
|
|
depends on DT_HAS_NXP_IMX_IOMUXC_SCU_ENABLED
|
|
default y
|
|
help
|
|
Enable pin controller driver for SCU-based NXP i.MX SoCs.
|
|
|
|
# TODO: Find better place for this option
|
|
config MCUX_XBARA
|
|
bool "MCUX XBARA driver"
|
|
depends on HAS_MCUX_XBARA
|
|
help
|
|
Enable the MCUX XBARA driver.
|