zephyr/drivers/gpio/Kconfig.imx
Ulf Magnusson e65f8ba1f2 kconfig: gpio: Remove lots of redundant GPIO dependencies
Most of these are from source'ing a file within an 'if GPIO', and then
adding another 'depends on GPIO' within it.

'if FOO' is just shorthand for adding 'depends on FOO' to each item
within the 'if'. There are no "conditional includes" in Kconfig, so
'if FOO' has no special meaning around a 'source'. Conditional includes
wouldn't be possible, because an 'if' condition could include (directly
or indirectly) forward references to symbols not defined yet.

Tip: When adding a symbol, check its dependencies in the menuconfig
('ninja menuconfig', then / to jump to the symbol). The menuconfig also
shows how the file with the symbol got included, so if you see
duplicated dependencies, it's easy to hunt down where they come from.

Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
2019-03-07 20:28:04 -05:00

53 lines
717 B
Plaintext

# Kconfig.imx - IMX GPIO configuration options
#
# Copyright (c) 2018, NXP
#
# SPDX-License-Identifier: Apache-2.0
#
menuconfig GPIO_IMX
bool "IMX GPIO driver"
depends on HAS_IMX_GPIO
select HAS_DTS_GPIO
help
Enable the IMX GPIO driver.
if GPIO_IMX
config GPIO_IMX_PORT_1
bool "Port 1"
help
Enable Port 1.
config GPIO_IMX_PORT_2
bool "Port 2"
help
Enable Port 2.
config GPIO_IMX_PORT_3
bool "Port 3"
help
Enable Port 3.
config GPIO_IMX_PORT_4
bool "Port 4"
help
Enable Port 4.
config GPIO_IMX_PORT_5
bool "Port 5"
help
Enable Port 5.
config GPIO_IMX_PORT_6
bool "Port 6"
help
Enable Port 6.
config GPIO_IMX_PORT_7
bool "Port 7"
help
Enable Port 7.
endif # GPIO_IMX