boards: remove unnecessary I2C / SPI bus Kconfig enablement

We now 'select I2C' and/or SPI bus in Kconfig in the sensor driver
Kconfig's so there is no need to have boards do the following:

config I2C
       default y if SENSOR

config SPI
       default y if SENSOR

Signed-off-by: Kumar Gala <galak@kernel.org>
This commit is contained in:
Kumar Gala 2022-08-05 11:12:04 -05:00 committed by Kumar Gala
parent 8fe855f166
commit f7496df804
43 changed files with 1 additions and 177 deletions

View file

@ -40,10 +40,4 @@ endchoice
endif # LSM6DSL
config I2C
default y if SENSOR
config SPI
default y if SENSOR
endif # BOARD_96B_ARGONKEY

View file

@ -11,7 +11,4 @@ config BOARD
config REGULATOR
default y if LORA
config I2C
default y if SENSOR
endif # BOARD_96B_WISTRIO

View file

@ -8,9 +8,6 @@ if BOARD_ACTINIUS_ICARUS || BOARD_ACTINIUS_ICARUS_NS
config BOARD
default "actinius_icarus"
config I2C
default y if SENSOR
# For the secure version of the board the firmware is linked at the beginning
# of the flash, or into the code-partition defined in DT if it is intended to
# be loaded by MCUboot. If the secure firmware is to be combined with a non-

View file

@ -8,9 +8,6 @@ if BOARD_ACTINIUS_ICARUS_BEE || BOARD_ACTINIUS_ICARUS_BEE_NS
config BOARD
default "actinius_icarus_bee"
config I2C
default y if SENSOR
# For the secure version of the board the firmware is linked at the beginning
# of the flash, or into the code-partition defined in DT if it is intended to
# be loaded by MCUboot. If the secure firmware is to be combined with a non-

View file

@ -8,9 +8,6 @@ if BOARD_ACTINIUS_ICARUS_SOM || BOARD_ACTINIUS_ICARUS_SOM_NS
config BOARD
default "actinius_icarus_som"
config I2C
default y if SENSOR
# For the secure version of the board the firmware is linked at the beginning
# of the flash, or into the code-partition defined in DT if it is intended to
# be loaded by MCUboot. If the secure firmware is to be combined with a non-

View file

@ -25,9 +25,6 @@ choice LSM6DSL_TRIGGER_MODE
depends on LSM6DSL
endchoice
config I2C
default y if SENSOR
if BT
config SPI

View file

@ -14,9 +14,6 @@ config BT_CTLR
config LOG_BUFFER_SIZE
default 128 if LOG
config I2C
default y if SENSOR
if FXOS8700
choice FXOS8700_MODE

View file

@ -11,7 +11,4 @@ config BOARD
config BT_CTLR
default BT
config I2C
default y if SENSOR
endif # BOARD_BBC_MICROBIT_V2

View file

@ -9,9 +9,6 @@ if BOARD_CIRCUITDOJO_FEATHER_NRF9160 || BOARD_CIRCUITDOJO_FEATHER_NRF9160_NS
config BOARD
default "circuitdojo_feather_nrf9160"
config I2C
default y if SENSOR
# For the secure version of the board the firmware is linked at the beginning
# of the flash, or into the code-partition defined in DT if it is intended to
# be loaded by MCUboot. If the secure firmware is to be combined with a non-

View file

@ -30,9 +30,6 @@ choice LSM6DSL_TRIGGER_MODE
depends on LSM6DSL
endchoice
config I2C
default y if SENSOR
if BT
config SPI

View file

@ -20,7 +20,4 @@ config MCG_VDIV0
config MCG_FCRDIV
default 0
config I2C
default y if SENSOR
endif # BOARD_FRDM_K22F

View file

@ -20,9 +20,6 @@ config MCG_VDIV0
config MCG_FCRDIV
default 1
config I2C
default y if SENSOR
if NETWORKING
config NET_L2_ETHERNET

View file

@ -20,9 +20,6 @@ config MCG_VDIV0
config MCG_FCRDIV
default 1
config I2C
default y if SENSOR
if FLASH
config SPI

View file

@ -23,9 +23,6 @@ config MCG_FRDIV
config MCG_FCRDIV
default 0
config I2C
default y if SENSOR
if FXOS8700
choice FXOS8700_MODE

View file

@ -17,9 +17,6 @@ config MCG_FRDIV
config MCG_FCRDIV
default 0
config I2C
default y if SENSOR
config FXOS8700_DRDY_INT1
default y
depends on FXOS8700_TRIGGER

View file

@ -20,9 +20,6 @@ config MCG_VDIV0
config MCG_FCRDIV
default 1
config I2C
default y if SENSOR
config REGULATOR
default y if ADC || SENSOR

View file

@ -8,9 +8,6 @@ if BOARD_LPCXPRESSO55S16
config BOARD
default "lpcxpresso55S16"
config I2C
default y if SENSOR
config FXOS8700_DRDY_INT1
default y
depends on FXOS8700_TRIGGER

View file

@ -8,9 +8,6 @@ if BOARD_LPCXPRESSO55S28
config BOARD
default "lpcxpresso55S28"
config I2C
default y if SENSOR
if FXOS8700
choice FXOS8700_MODE

View file

@ -9,9 +9,6 @@ config BOARD
default "lpcxpresso55S69_cpu0" if BOARD_LPCXPRESSO55S69_CPU0
default "lpcxpresso55S69_cpu1" if BOARD_LPCXPRESSO55S69_CPU1
config I2C
default y if SENSOR
if FXOS8700
choice FXOS8700_MODE

View file

@ -12,9 +12,6 @@ choice CODE_LOCATION
default CODE_FLEXSPI
endchoice
config I2C
default y if SENSOR
config I2C_MCUX_LPI2C_BUS_RECOVERY
default y
depends on I2C_MCUX_LPI2C && PINCTRL

View file

@ -28,7 +28,7 @@ config FLASH_MCUX_FLEXSPI_NOR
endif #FLASH
config I2C
default y if KSCAN || SENSOR
default y if KSCAN
config KSCAN
default y if LVGL

View file

@ -27,9 +27,6 @@ endchoice
endif #FLASH
config I2C
default y if SENSOR
if NETWORKING
config NET_L2_ETHERNET

View file

@ -33,9 +33,6 @@ endchoice
endif #FLASH
config I2C
default y if SENSOR
if NETWORKING
config NET_L2_ETHERNET

View file

@ -21,9 +21,6 @@ choice FLASH_MCUX_FLEXSPI_XIP_MEM_TARGET
default FLASH_MCUX_FLEXSPI_XIP_MEM_SRAM
endchoice
config I2C
default y if SENSOR
config FXOS8700_DRDY_INT1
default y
depends on FXOS8700_TRIGGER

View file

@ -32,9 +32,6 @@ choice FLASH_MCUX_FLEXSPI_XIP_MEM_TARGET
default FLASH_MCUX_FLEXSPI_XIP_MEM_SRAM
endchoice
config I2C
default y if SENSOR
config FXOS8700_DRDY_INT1
default y
depends on FXOS8700_TRIGGER

View file

@ -45,7 +45,4 @@ config BT_HCI_VS
config REGULATOR
default y if SENSOR
config I2C
default y if SENSOR
endif # BOARD_NRF9160_INNBLUE21 || BOARD_NRF9160_INNBLUE21_NS

View file

@ -45,7 +45,4 @@ config BT_HCI_VS
config REGULATOR
default y if SENSOR
config I2C
default y if SENSOR
endif # BOARD_NRF9160_INNBLUE22 || BOARD_NRF9160_INNBLUE22_NS

View file

@ -14,7 +14,4 @@ config MODEM_QUECTEL_BG9X
config BT_CTLR
default BT
config I2C
default SENSOR
endif # BOARD_RAK5010_NRF52840

View file

@ -8,12 +8,6 @@ if BOARD_SENSORTILE_BOX
config BOARD
default "sensortile_box"
config SPI
default y if SENSOR
config I2C
default y if SENSOR
if SPI
config SPI_STM32_INTERRUPT

View file

@ -26,9 +26,6 @@ config FLASH_LOAD_SIZE
default $(dt_chosen_reg_size_hex,$(DT_CHOSEN_Z_CODE_PARTITION))
depends on BOARD_SPARKFUN_THING_PLUS_NRF9160 && TRUSTED_EXECUTION_SECURE
config I2C
default y if SENSOR
if BOARD_SPARKFUN_THING_PLUS_NRF9160_NS
config FLASH_LOAD_OFFSET

View file

@ -8,7 +8,4 @@ if BOARD_STM32F3_DISCO
config BOARD
default "stm32f3_disco"
config I2C
default y if SENSOR
endif # BOARD_STM32F3_DISCO

View file

@ -8,7 +8,4 @@ if BOARD_STM32F411E_DISCO
config BOARD
default "stm32f411e_disco"
config I2C
default y if SENSOR
endif # BOARD_STM32F411E_DISCO

View file

@ -13,9 +13,6 @@ choice STM32_LPTIM_CLOCK
depends on STM32_LPTIM_TIMER
endchoice
config I2C
default y if SENSOR
if BT
config SPI

View file

@ -8,9 +8,6 @@ if BOARD_TWR_KE18F
config BOARD
default "twr_ke18f"
config I2C
default y if SENSOR
config I2C_MCUX_LPI2C_BUS_RECOVERY
default y
depends on I2C_MCUX_LPI2C && PINCTRL

View file

@ -20,7 +20,4 @@ config MCG_VDIV0
config MCG_FCRDIV
default 1
config I2C
default y if SENSOR
endif # BOARD_TWR_KV58F220M

View file

@ -8,9 +8,6 @@ if BOARD_WARP7_M4
config BOARD
default "warp7_m4"
config I2C
default y if SENSOR
config FXOS8700_DRDY_INT1
default y
depends on FXOS8700_TRIGGER

View file

@ -6,9 +6,6 @@ config BOARD
default "rv32m1_vega_ri5cy" if SOC_OPENISA_RV32M1_RI5CY
default "rv32m1_vega_zero_riscy" if SOC_OPENISA_RV32M1_ZERO_RISCY
config I2C
default y if SENSOR
if BT
config BT_CTLR

View file

@ -1,10 +0,0 @@
# Copyright (c) 2022 Nordic Semiconductor ASA
#
# SPDX-License-Identifier: Apache-2.0
if SHIELD_AMG88XX_EVAL_KIT
config I2C
default y if SENSOR
endif # SHIELD_AMG88XX_EVAL_KIT

View file

@ -1,10 +0,0 @@
# Copyright (c) 2022 TOKITA Hiroshi <tokita.hiroshi@fujitsu.com>
#
# SPDX-License-Identifier: Apache-2.0
if SHIELD_BOOSTXL_ULPSENSE
config SPI
default y if SENSOR
endif # SHIELD_BOOSTXL_ULPSENSE

View file

@ -1,10 +0,0 @@
# Copyright (c) 2022 Intel Corporation
#
# SPDX-License-Identifier: Apache-2.0
if SHIELD_FRDM_STBC_AGM01
config I2C
default y if SENSOR
endif # SHIELD_FRDM_STBC_AGM01

View file

@ -1,10 +0,0 @@
# Copyright (c) 2022 TOKITA Hiroshi <tokita.hiroshi@fujitsu.com>
#
# SPDX-License-Identifier: Apache-2.0
if SHIELD_X_NUCLEO_IKS01A2
config I2C
default y if SENSOR
endif # SHIELD_X_NUCLEO_IKS01A2

View file

@ -1,10 +0,0 @@
# Copyright (c) 2022 Intel Corporation
#
# SPDX-License-Identifier: Apache-2.0
if SHIELD_X_NUCLEO_IKS01A3
config I2C
default y if SENSOR
endif # SHIELD_X_NUCLEO_IKS01A3

View file

@ -1,12 +0,0 @@
# Copyright (c) 2020 STMicroelectronics
#
# SPDX-License-Identifier: Apache-2.0
if SHIELD_X_NUCLEO_IKS02A1
config I2C
default y if SENSOR
endif # SHIELD_X_NUCLEO_IKS02A1
rsource "boards/*.defconfig"