drivers: spi: Remove unused Kconfig symbols
Remove SPI_[0-8] and SPI_[0-8]_OP_MODES Kconfig symbols as no driver uses them anymore. We also cleanup board and sample code to remove use of these symbols. Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
8388794c9b
commit
b9ed2d33fd
26 changed files with 5 additions and 248 deletions
|
@ -59,12 +59,6 @@ config SPI_DW_FIFO_DEPTH
|
|||
config SPI_DW_ARC_AUX_REGS
|
||||
default n
|
||||
|
||||
config SPI_0
|
||||
default y
|
||||
|
||||
config SPI_1
|
||||
default y
|
||||
|
||||
endif # SPI_DW
|
||||
|
||||
endif # SPI
|
||||
|
|
|
@ -33,15 +33,6 @@ config SPI_DW_ARC_AUX_REGS
|
|||
config SPI_DW_ACCESS_WORD_ONLY
|
||||
default y
|
||||
|
||||
config SPI_0
|
||||
default y
|
||||
|
||||
config SPI_1
|
||||
default y
|
||||
|
||||
config SPI_2
|
||||
default y
|
||||
|
||||
endif # SPI_DW
|
||||
|
||||
endif # SPI
|
||||
|
|
|
@ -8,10 +8,6 @@ if BOARD_96B_NITROGEN
|
|||
config BOARD
|
||||
default "96b_nitrogen"
|
||||
|
||||
config SPI_1
|
||||
default y
|
||||
depends on SPI
|
||||
|
||||
config BT_CTLR
|
||||
default BT
|
||||
|
||||
|
|
|
@ -33,8 +33,6 @@ config SPI_NRFX
|
|||
default y
|
||||
config NRFX_SPIM
|
||||
default y
|
||||
config SPI_2
|
||||
default y
|
||||
config SPI_2_NRF_SPIM
|
||||
default y
|
||||
endif #SPI
|
||||
|
|
|
@ -20,8 +20,4 @@ config MCG_VDIV0
|
|||
config MCG_FCRDIV
|
||||
default 0
|
||||
|
||||
config SPI_0
|
||||
default y
|
||||
depends on SPI
|
||||
|
||||
endif # BOARD_FRDM_K22F
|
||||
|
|
|
@ -24,10 +24,6 @@ config TEMP_KINETIS
|
|||
default y if "$(dt_nodelabel_enabled,adc1)"
|
||||
depends on SENSOR && ADC
|
||||
|
||||
config SPI_0
|
||||
default y
|
||||
depends on SPI
|
||||
|
||||
if NETWORKING
|
||||
|
||||
config NET_L2_ETHERNET
|
||||
|
|
|
@ -34,8 +34,4 @@ config FXOS8700_DRDY_INT1
|
|||
default y
|
||||
depends on FXOS8700_TRIGGER
|
||||
|
||||
config SPI_1
|
||||
default y
|
||||
depends on SPI
|
||||
|
||||
endif # BOARD_FRDM_K82F
|
||||
|
|
|
@ -21,10 +21,6 @@ config FXOS8700_DRDY_INT1
|
|||
default y
|
||||
depends on FXOS8700_TRIGGER
|
||||
|
||||
config SPI_0
|
||||
default y
|
||||
depends on SPI
|
||||
|
||||
choice ADC_MCUX_ADC16_VREF
|
||||
default ADC_MCUX_ADC16_VREF_ALTERNATE
|
||||
endchoice
|
||||
|
|
|
@ -27,17 +27,4 @@ config BATTERY_SENSE
|
|||
|
||||
endif # ADC
|
||||
|
||||
if SPI
|
||||
|
||||
config SPI_0
|
||||
default y
|
||||
|
||||
config SPI_1
|
||||
default n
|
||||
|
||||
config SPI_2
|
||||
default n
|
||||
|
||||
endif # SPI
|
||||
|
||||
endif # BOARD_HEXIWEAR_K64
|
||||
|
|
|
@ -19,8 +19,4 @@ config GPIO_MCUX_LPC_PORT1
|
|||
|
||||
endif # GPIO_MCUX_LPC
|
||||
|
||||
config SPI_5
|
||||
default y
|
||||
depends on SPI
|
||||
|
||||
endif # BOARD_LPCXPRESSO54114_M4 || BOARD_LPCXPRESSO54114_M0
|
||||
|
|
|
@ -18,10 +18,6 @@ config GPIO_MCUX_LPC_PORT1
|
|||
|
||||
endif # GPIO_MCUX_LPC
|
||||
|
||||
config SPI_8
|
||||
default y
|
||||
depends on SPI
|
||||
|
||||
config FXOS8700_DRDY_INT1
|
||||
default y
|
||||
depends on FXOS8700_TRIGGER
|
||||
|
|
|
@ -19,10 +19,6 @@ config GPIO_MCUX_LPC_PORT1
|
|||
|
||||
endif # GPIO_MCUX_LPC
|
||||
|
||||
config SPI_8
|
||||
default y
|
||||
depends on SPI
|
||||
|
||||
config FXOS8700_DRDY_INT1
|
||||
default y
|
||||
depends on FXOS8700_TRIGGER
|
||||
|
|
|
@ -19,10 +19,6 @@ config DISK_ACCESS_USDHC1
|
|||
config I2C
|
||||
default y if KSCAN
|
||||
|
||||
config SPI_3
|
||||
default y
|
||||
depends on SPI_MCUX_LPSPI
|
||||
|
||||
config KSCAN
|
||||
default y if LVGL
|
||||
|
||||
|
|
|
@ -12,17 +12,17 @@ config BOARD_TWR_KE18F_FLEXIO_CLKOUT
|
|||
|
||||
config BOARD_TWR_KE18F_SPI_0_PCS2
|
||||
bool "Use PTE6 as dedicated SPI_0 PCS2 chip select"
|
||||
depends on SPI_0
|
||||
depends on "$(dt_nodelabel_enabled,lpspi0)"
|
||||
default y
|
||||
|
||||
config BOARD_TWR_KE18F_SPI_1_PCS0
|
||||
bool "Use PTD3 as dedicated SPI_1 PCS0 chip select"
|
||||
depends on SPI_1
|
||||
depends on "$(dt_nodelabel_enabled,lpspi1)"
|
||||
default y
|
||||
|
||||
config BOARD_TWR_KE18F_SPI_1_PCS2
|
||||
bool "Use PTA16 as dedicated SPI_1 PCS2 chip select"
|
||||
depends on SPI_1
|
||||
depends on "$(dt_nodelabel_enabled,lpspi1)"
|
||||
default y
|
||||
|
||||
endif # BOARD_TWR_KE18F
|
||||
|
|
|
@ -8,16 +8,6 @@ if BOARD_TWR_KE18F
|
|||
config BOARD
|
||||
default "twr_ke18f"
|
||||
|
||||
if SPI_MCUX_LPSPI
|
||||
|
||||
config SPI_0
|
||||
default y
|
||||
|
||||
config SPI_1
|
||||
default y
|
||||
|
||||
endif # SPI_MCUX_LPSPI
|
||||
|
||||
config TEMP_KINETIS
|
||||
default y if "$(dt_nodelabel_enabled,adc0)"
|
||||
depends on SENSOR && ADC
|
||||
|
|
|
@ -24,10 +24,6 @@ config MCG_VDIV0
|
|||
config MCG_FCRDIV
|
||||
default 2
|
||||
|
||||
config SPI_1
|
||||
default y
|
||||
depends on SPI
|
||||
|
||||
config MCR20A_IS_PART_OF_KW2XD_SIP
|
||||
default y
|
||||
depends on IEEE802154_MCR20A
|
||||
|
|
|
@ -153,9 +153,6 @@ if SPI
|
|||
config SPI_DW
|
||||
default y
|
||||
|
||||
config SPI_0
|
||||
default y
|
||||
|
||||
endif
|
||||
|
||||
config PINMUX_INTEL_S1000
|
||||
|
|
|
@ -352,7 +352,7 @@ compatibles) supported by the driver.
|
|||
|
||||
.. note::
|
||||
|
||||
Historically, Zephyr has used Kconfig options like :option:`CONFIG_SPI_0` and
|
||||
Historically, Zephyr has used Kconfig options like :option:`CONFIG_I2C_0` and
|
||||
:option:`CONFIG_I2C_1` to enable driver support for individual devices of
|
||||
some type. For example, if ``CONFIG_I2C_1=y``, the SoC's I2C peripheral
|
||||
driver would create a ``struct device`` for "I2C bus controller number 1".
|
||||
|
|
|
@ -59,7 +59,7 @@ In particular, avoid adding new Kconfig options of the following types:
|
|||
Options enabling individual devices
|
||||
===================================
|
||||
|
||||
Existing examples like :option:`CONFIG_SPI_0` and :option:`CONFIG_I2C_1` were
|
||||
Existing examples like :option:`CONFIG_I2C_0` and :option:`CONFIG_I2C_1` were
|
||||
introduced before Zephyr supported devicetree, and new cases are discouraged.
|
||||
See :ref:`dt-create-devices` for details on how to do this with devicetree
|
||||
instead.
|
||||
|
|
|
@ -35,160 +35,6 @@ module = SPI
|
|||
module-str = spi
|
||||
source "subsys/logging/Kconfig.template.log_config"
|
||||
|
||||
|
||||
config SPI_0
|
||||
bool "SPI port 0"
|
||||
help
|
||||
Enable SPI controller port 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:
|
||||
1 is MASTER mode only (default)
|
||||
2 is SLAVE mode only
|
||||
3 is both modes are available.
|
||||
|
||||
config SPI_1
|
||||
bool "SPI port 1"
|
||||
help
|
||||
Enable SPI controller port 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:
|
||||
1 is MASTER mode only (default)
|
||||
2 is SLAVE mode only
|
||||
3 is both modes are available.
|
||||
|
||||
config SPI_2
|
||||
bool "SPI port 2"
|
||||
help
|
||||
Enable SPI controller port 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:
|
||||
1 is MASTER mode only (default)
|
||||
2 is SLAVE mode only
|
||||
3 is both modes are available.
|
||||
|
||||
config SPI_3
|
||||
bool "SPI port 3"
|
||||
help
|
||||
Enable SPI controller port 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:
|
||||
1 is MASTER mode only (default)
|
||||
2 is SLAVE mode only
|
||||
3 is both modes are available.
|
||||
|
||||
config SPI_4
|
||||
bool "SPI port 4"
|
||||
help
|
||||
Enable SPI controller port 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:
|
||||
1 is MASTER mode only (default)
|
||||
2 is SLAVE mode only
|
||||
3 is both modes are available.
|
||||
|
||||
config SPI_5
|
||||
bool "SPI port 5"
|
||||
help
|
||||
Enable SPI controller port 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:
|
||||
1 is MASTER mode only (default)
|
||||
2 is SLAVE mode only
|
||||
3 is both modes are available.
|
||||
|
||||
config SPI_6
|
||||
bool "SPI port 6"
|
||||
help
|
||||
Enable SPI controller port 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:
|
||||
1 is MASTER mode only (default)
|
||||
2 is SLAVE mode only
|
||||
3 is both modes are available.
|
||||
|
||||
config SPI_7
|
||||
bool "SPI port 7"
|
||||
help
|
||||
Enable SPI controller port 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:
|
||||
1 is MASTER mode only (default)
|
||||
2 is SLAVE mode only
|
||||
3 is both modes are available.
|
||||
|
||||
config SPI_8
|
||||
bool "SPI port 8"
|
||||
help
|
||||
Enable SPI controller port 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:
|
||||
1 is MASTER mode only (default)
|
||||
2 is SLAVE mode only
|
||||
3 is both modes are available.
|
||||
|
||||
source "drivers/spi/Kconfig.stm32"
|
||||
|
||||
source "drivers/spi/Kconfig.dw"
|
||||
|
|
|
@ -1,3 +1,2 @@
|
|||
CONFIG_SPI_STM32=y
|
||||
CONFIG_SPI_STM32_INTERRUPT=y
|
||||
CONFIG_SPI_2=y
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
CONFIG_SPI_1=y
|
|
@ -1 +0,0 @@
|
|||
CONFIG_SPI_1=y
|
|
@ -1 +0,0 @@
|
|||
CONFIG_SPI_1=y
|
|
@ -1,6 +1,5 @@
|
|||
CONFIG_GPIO=y
|
||||
CONFIG_SPI=y
|
||||
CONFIG_SPI_3=y
|
||||
|
||||
CONFIG_WIFI_WINC1500=y
|
||||
CONFIG_WIFI_WINC1500_REGION_EUROPE=y
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
CONFIG_DISK_ACCESS_SDHC=y
|
||||
CONFIG_DISK_ACCESS_SPI_SDHC=y
|
||||
CONFIG_SPI=y
|
||||
CONFIG_SPI_1=y
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue