mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-29 02:05:57 +00:00
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
690 B
XML
39 lines
690 B
XML
# Kconfig.sch - Intel SCH GPIO configuration options
|
|
#
|
|
#
|
|
# Copyright (c) 2016 Intel Corporation
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
menuconfig GPIO_SCH
|
|
bool "Intel SCH GPIO controller"
|
|
help
|
|
Enable the SCH GPIO driver found on Intel boards
|
|
|
|
if GPIO_SCH
|
|
|
|
config GPIO_SCH_INIT_PRIORITY
|
|
int "Init priority"
|
|
default 60
|
|
help
|
|
Device driver initialization priority.
|
|
|
|
config GPIO_SCH_0
|
|
bool "Enable SCH GPIO port 0"
|
|
|
|
config GPIO_SCH_0_DEV_NAME
|
|
string "Name of the device"
|
|
depends on GPIO_SCH_0
|
|
default "GPIO_0"
|
|
|
|
config GPIO_SCH_1
|
|
bool "Enable SCH GPIO port 1"
|
|
|
|
config GPIO_SCH_1_DEV_NAME
|
|
string "Name of the device"
|
|
depends on GPIO_SCH_1
|
|
default "GPIO_1"
|
|
|
|
endif # GPIO_SCH
|