mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-17 04:26:05 +00:00
Most of these are from source'ing a file within an 'if PINMUX', and then adding another 'depends on PINMUX' 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>
68 lines
1.2 KiB
Plaintext
68 lines
1.2 KiB
Plaintext
# Kconfig - RV31M1 SDK pinmux
|
|
#
|
|
# Copyright (c) 2018 Foundries.io
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
menuconfig PINMUX_RV32M1
|
|
bool "RV32M1 pinmux driver"
|
|
depends on SOC_OPENISA_RV32M1_RISCV32
|
|
help
|
|
Enable the RV32M1 pinmux driver.
|
|
|
|
if PINMUX_RV32M1
|
|
|
|
config PINMUX_RV32M1_PORTA
|
|
bool "Port A"
|
|
help
|
|
Enable Port A.
|
|
|
|
config PINMUX_RV32M1_PORTA_NAME
|
|
string "Pinmux Port A driver name"
|
|
depends on PINMUX_RV32M1_PORTA
|
|
default "porta"
|
|
|
|
config PINMUX_RV32M1_PORTB
|
|
bool "Port B"
|
|
help
|
|
Enable Port B.
|
|
|
|
config PINMUX_RV32M1_PORTB_NAME
|
|
string "Pinmux Port B driver name"
|
|
depends on PINMUX_RV32M1_PORTB
|
|
default "portb"
|
|
|
|
config PINMUX_RV32M1_PORTC
|
|
bool "Port C"
|
|
help
|
|
Enable Port C.
|
|
|
|
config PINMUX_RV32M1_PORTC_NAME
|
|
string "Pinmux Port C driver name"
|
|
depends on PINMUX_RV32M1_PORTC
|
|
default "portc"
|
|
|
|
config PINMUX_RV32M1_PORTD
|
|
bool "Port D"
|
|
help
|
|
Enable Port D.
|
|
|
|
config PINMUX_RV32M1_PORTD_NAME
|
|
string "Pinmux Port D driver name"
|
|
depends on PINMUX_RV32M1_PORTD
|
|
default "portd"
|
|
|
|
config PINMUX_RV32M1_PORTE
|
|
bool "Port E"
|
|
depends on RV32M1_INTMUX
|
|
help
|
|
Enable Port E.
|
|
|
|
config PINMUX_RV32M1_PORTE_NAME
|
|
string "Pinmux Port E driver name"
|
|
depends on PINMUX_RV32M1_PORTE
|
|
default "porte"
|
|
|
|
endif # PINMUX_RV32M1
|