kconfig: Replace non-defconfig single-symbol 'if's with 'depends on'
Same deal as in commit eddd98f811
("kconfig: Replace some single-symbol
'if's with 'depends on'"), for the remaining cases outside defconfig
files. See that commit for an explanation.
Will do the defconfigs separately in case there are any complaints
there.
Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
This commit is contained in:
parent
a42a42cd5a
commit
378d6b137a
74 changed files with 123 additions and 388 deletions
|
@ -41,12 +41,11 @@ config SPI_0
|
|||
help
|
||||
Enable SPI controller port 0.
|
||||
|
||||
if SPI_0
|
||||
|
||||
config SPI_0_OP_MODES
|
||||
int "Port 0 supported operation modes (master/slave/both)"
|
||||
default 1
|
||||
range 1 3
|
||||
depends on SPI_0
|
||||
help
|
||||
This sets the supported operation modes at runtime, by the SPI
|
||||
port 0, where:
|
||||
|
@ -54,19 +53,16 @@ config SPI_0_OP_MODES
|
|||
2 is SLAVE mode only
|
||||
3 is both modes are available.
|
||||
|
||||
endif # SPI_0
|
||||
|
||||
config SPI_1
|
||||
bool "SPI port 1"
|
||||
help
|
||||
Enable SPI controller port 1.
|
||||
|
||||
if SPI_1
|
||||
|
||||
config SPI_1_OP_MODES
|
||||
int "Port 1 supported operation modes (master/slave/both)"
|
||||
default 1
|
||||
range 1 3
|
||||
depends on SPI_1
|
||||
help
|
||||
This sets the supported operation modes at runtime, by the SPI
|
||||
port 1, where:
|
||||
|
@ -74,19 +70,16 @@ config SPI_1_OP_MODES
|
|||
2 is SLAVE mode only
|
||||
3 is both modes are available.
|
||||
|
||||
endif # SPI_1
|
||||
|
||||
config SPI_2
|
||||
bool "SPI port 2"
|
||||
help
|
||||
Enable SPI controller port 2.
|
||||
|
||||
if SPI_2
|
||||
|
||||
config SPI_2_OP_MODES
|
||||
int "Port 2 supported operation modes (master/slave/both)"
|
||||
default 1
|
||||
range 1 3
|
||||
depends on SPI_2
|
||||
help
|
||||
This sets the supported operation modes at runtime, by the SPI
|
||||
port 2, where:
|
||||
|
@ -94,19 +87,16 @@ config SPI_2_OP_MODES
|
|||
2 is SLAVE mode only
|
||||
3 is both modes are available.
|
||||
|
||||
endif # SPI_2
|
||||
|
||||
config SPI_3
|
||||
bool "SPI port 3"
|
||||
help
|
||||
Enable SPI controller port 3.
|
||||
|
||||
if SPI_3
|
||||
|
||||
config SPI_3_OP_MODES
|
||||
int "Port 3 supported operation modes (master/slave/both)"
|
||||
default 1
|
||||
range 1 3
|
||||
depends on SPI_3
|
||||
help
|
||||
This sets the supported operation modes at runtime, by the SPI
|
||||
port 3, where:
|
||||
|
@ -114,19 +104,16 @@ config SPI_3_OP_MODES
|
|||
2 is SLAVE mode only
|
||||
3 is both modes are available.
|
||||
|
||||
endif # SPI_3
|
||||
|
||||
config SPI_4
|
||||
bool "SPI port 4"
|
||||
help
|
||||
Enable SPI controller port 4.
|
||||
|
||||
if SPI_4
|
||||
|
||||
config SPI_4_OP_MODES
|
||||
int "Port 4 supported operation modes (master/slave/both)"
|
||||
default 1
|
||||
range 1 3
|
||||
depends on SPI_4
|
||||
help
|
||||
This sets the supported operation modes at runtime, by the SPI
|
||||
port 4, where:
|
||||
|
@ -134,19 +121,16 @@ config SPI_4_OP_MODES
|
|||
2 is SLAVE mode only
|
||||
3 is both modes are available.
|
||||
|
||||
endif # SPI_4
|
||||
|
||||
config SPI_5
|
||||
bool "SPI port 5"
|
||||
help
|
||||
Enable SPI controller port 5.
|
||||
|
||||
if SPI_5
|
||||
|
||||
config SPI_5_OP_MODES
|
||||
int "Port 5 supported operation modes (master/slave/both)"
|
||||
default 1
|
||||
range 1 3
|
||||
depends on SPI_5
|
||||
help
|
||||
This sets the supported operation modes at runtime, by the SPI
|
||||
port 5, where:
|
||||
|
@ -154,19 +138,16 @@ config SPI_5_OP_MODES
|
|||
2 is SLAVE mode only
|
||||
3 is both modes are available.
|
||||
|
||||
endif # SPI_5
|
||||
|
||||
config SPI_6
|
||||
bool "SPI port 6"
|
||||
help
|
||||
Enable SPI controller port 6.
|
||||
|
||||
if SPI_6
|
||||
|
||||
config SPI_6_OP_MODES
|
||||
int "Port 6 supported operation modes (master/slave/both)"
|
||||
default 1
|
||||
range 1 3
|
||||
depends on SPI_6
|
||||
help
|
||||
This sets the supported operation modes at runtime, by the SPI
|
||||
port 6, where:
|
||||
|
@ -174,19 +155,16 @@ config SPI_6_OP_MODES
|
|||
2 is SLAVE mode only
|
||||
3 is both modes are available.
|
||||
|
||||
endif # SPI_6
|
||||
|
||||
config SPI_7
|
||||
bool "SPI port 7"
|
||||
help
|
||||
Enable SPI controller port 7.
|
||||
|
||||
if SPI_7
|
||||
|
||||
config SPI_7_OP_MODES
|
||||
int "Port 7 supported operation modes (master/slave/both)"
|
||||
default 1
|
||||
range 1 3
|
||||
depends on SPI_7
|
||||
help
|
||||
This sets the supported operation modes at runtime, by the SPI
|
||||
port 7, where:
|
||||
|
@ -194,19 +172,16 @@ config SPI_7_OP_MODES
|
|||
2 is SLAVE mode only
|
||||
3 is both modes are available.
|
||||
|
||||
endif # SPI_7
|
||||
|
||||
config SPI_8
|
||||
bool "SPI port 8"
|
||||
help
|
||||
Enable SPI controller port 8.
|
||||
|
||||
if SPI_8
|
||||
|
||||
config SPI_8_OP_MODES
|
||||
int "Port 8 supported operation modes (master/slave/both)"
|
||||
default 1
|
||||
range 1 3
|
||||
depends on SPI_8
|
||||
help
|
||||
This sets the supported operation modes at runtime, by the SPI
|
||||
port 8, where:
|
||||
|
@ -214,8 +189,6 @@ config SPI_8_OP_MODES
|
|||
2 is SLAVE mode only
|
||||
3 is both modes are available.
|
||||
|
||||
endif # SPI_8
|
||||
|
||||
source "drivers/spi/Kconfig.stm32"
|
||||
|
||||
source "drivers/spi/Kconfig.dw"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue