spi: Wrap instance configs consistently with ifdefs
Some spi instance configs were wrapped with ifdefs, while others used depends. Make them consistent by wrapping them all with ifdefs. Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
This commit is contained in:
parent
87b9518496
commit
3fbc7c5853
1 changed files with 8 additions and 4 deletions
|
@ -212,14 +212,14 @@ config SPI_4
|
||||||
help
|
help
|
||||||
Enable SPI controller port 4.
|
Enable SPI controller port 4.
|
||||||
|
|
||||||
|
if SPI_4
|
||||||
|
|
||||||
config SPI_4_NAME
|
config SPI_4_NAME
|
||||||
string "SPI port 4 device name"
|
string "SPI port 4 device name"
|
||||||
depends on SPI_4
|
|
||||||
default "SPI_4"
|
default "SPI_4"
|
||||||
|
|
||||||
config SPI_4_OP_MODES
|
config SPI_4_OP_MODES
|
||||||
int "Port 4 supported operation modes (master/slave/both)"
|
int "Port 4 supported operation modes (master/slave/both)"
|
||||||
depends on SPI_4
|
|
||||||
default 1
|
default 1
|
||||||
range 1 3
|
range 1 3
|
||||||
help
|
help
|
||||||
|
@ -229,20 +229,22 @@ config SPI_4_OP_MODES
|
||||||
2 is SLAVE mode only
|
2 is SLAVE mode only
|
||||||
3 is both modes are available.
|
3 is both modes are available.
|
||||||
|
|
||||||
|
endif # SPI_4
|
||||||
|
|
||||||
config SPI_5
|
config SPI_5
|
||||||
bool "SPI port 5"
|
bool "SPI port 5"
|
||||||
default n
|
default n
|
||||||
help
|
help
|
||||||
Enable SPI controller port 5.
|
Enable SPI controller port 5.
|
||||||
|
|
||||||
|
if SPI_5
|
||||||
|
|
||||||
config SPI_5_NAME
|
config SPI_5_NAME
|
||||||
string "SPI port 5 device name"
|
string "SPI port 5 device name"
|
||||||
depends on SPI_5
|
|
||||||
default "SPI_5"
|
default "SPI_5"
|
||||||
|
|
||||||
config SPI_5_OP_MODES
|
config SPI_5_OP_MODES
|
||||||
int "Port 5 supported operation modes (master/slave/both)"
|
int "Port 5 supported operation modes (master/slave/both)"
|
||||||
depends on SPI_5
|
|
||||||
default 1
|
default 1
|
||||||
range 1 3
|
range 1 3
|
||||||
help
|
help
|
||||||
|
@ -252,6 +254,8 @@ config SPI_5_OP_MODES
|
||||||
2 is SLAVE mode only
|
2 is SLAVE mode only
|
||||||
3 is both modes are available.
|
3 is both modes are available.
|
||||||
|
|
||||||
|
endif # SPI_5
|
||||||
|
|
||||||
config SPI_INTEL
|
config SPI_INTEL
|
||||||
bool "Intel SPI controller driver"
|
bool "Intel SPI controller driver"
|
||||||
depends on CPU_MINUTEIA
|
depends on CPU_MINUTEIA
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue