zephyr/drivers/gpio/Kconfig.gecko
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
804 B
Plaintext

# Kconfig.gecko - Gecko GPIO configuration options
#
# Copyright (c) 2017 Christian Taedcke
#
# SPDX-License-Identifier: Apache-2.0
#
menuconfig GPIO_GECKO
bool "Gecko GPIO driver"
depends on HAS_SILABS_GECKO
select HAS_DTS_GPIO
select SOC_GECKO_GPIO
help
Enable the Gecko gpio driver.
if GPIO_GECKO
config GPIO_GECKO_COMMON_INIT_PRIORITY
int "Common initialization priority"
default 39
config GPIO_GECKO_PORTA
bool "Port A"
help
Enable Port A.
config GPIO_GECKO_PORTB
bool "Port B"
help
Enable Port B.
config GPIO_GECKO_PORTC
bool "Port C"
help
Enable Port C.
config GPIO_GECKO_PORTD
bool "Port D"
help
Enable Port D.
config GPIO_GECKO_PORTE
bool "Port E"
help
Enable Port E.
config GPIO_GECKO_PORTF
bool "Port F"
help
Enable Port F.
endif # GPIO_GECKO