e65f8ba1f2
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>
39 lines
714 B
Plaintext
39 lines
714 B
Plaintext
# Kconfig.mcux_lpc - MCUX LPC GPIO configuration options
|
|
#
|
|
# Copyright (c) 2017, NXP
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
menuconfig GPIO_MCUX_LPC
|
|
bool "MCUX LPC GPIO driver"
|
|
depends on HAS_MCUX
|
|
help
|
|
Enable the MCUX LPC pinmux driver.
|
|
|
|
if GPIO_MCUX_LPC
|
|
|
|
config GPIO_MCUX_LPC_PORT0
|
|
bool "Port 0"
|
|
depends on PINMUX_MCUX_LPC_PORT0
|
|
help
|
|
Enable Port 0.
|
|
|
|
config GPIO_MCUX_LPC_PORT0_NAME
|
|
string "Port 0 driver name"
|
|
depends on GPIO_MCUX_LPC_PORT0
|
|
default "GPIO_0"
|
|
|
|
config GPIO_MCUX_LPC_PORT1
|
|
bool "Port 1"
|
|
depends on PINMUX_MCUX_LPC_PORT1
|
|
help
|
|
Enable Port 1.
|
|
|
|
config GPIO_MCUX_LPC_PORT1_NAME
|
|
string "Port 1 driver name"
|
|
depends on GPIO_MCUX_LPC_PORT1
|
|
default "GPIO_1"
|
|
|
|
endif # GPIO_MCUX_LPC
|