boards: shields: Clean up Kconfig.defconfig files
Shield's Kconfig.defconfig files should only be used to configure components options, or drivers specific (eg init priority, ..), depending on driver activation which remains application responsibility. High level components (such as DISPLAY) should not be enabled by default on boards activation (which is similar to policy used for boards). Additionally, clean up busses activation (SPI, I2C), which is not required as bus activation is already done automatically on bus devices activation. Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
This commit is contained in:
parent
5a26397450
commit
34b1f7c737
16 changed files with 1 additions and 163 deletions
|
@ -3,9 +3,6 @@
|
|||
|
||||
if SHIELD_ADAFRUIT_2_8_TFT_TOUCH_V2 || SHIELD_ADAFRUIT_2_8_TFT_TOUCH_V2_NANO
|
||||
|
||||
config GPIO
|
||||
default y
|
||||
|
||||
if DISPLAY
|
||||
|
||||
if INPUT
|
||||
|
|
|
@ -1,16 +0,0 @@
|
|||
# Copyright (c) 2019-2023 Henrik Brix Andersen <henrik@brixandersen.dk>
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if SHIELD_ADAFRUIT_DATA_LOGGER
|
||||
|
||||
if DISK_ACCESS
|
||||
|
||||
config SPI
|
||||
default y
|
||||
|
||||
config DISK_DRIVER_SDMMC
|
||||
default y
|
||||
|
||||
endif # DISK_ACCESS
|
||||
|
||||
endif # SHIELD_ADAFRUIT_DATA_LOGGER
|
|
@ -1,13 +0,0 @@
|
|||
# Copyright (c) 2020 M2I Corporation
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if SHIELD_DAC80508_EVM
|
||||
|
||||
if DAC
|
||||
|
||||
config SPI
|
||||
default y
|
||||
|
||||
endif # DAC
|
||||
|
||||
endif # SHIELD_DAC80508_EVM
|
|
@ -8,9 +8,6 @@ if SHIELD_FRDM_CR20A
|
|||
|
||||
if IEEE802154
|
||||
|
||||
config SPI
|
||||
default y
|
||||
|
||||
rsource "boards/*.defconfig"
|
||||
|
||||
endif # IEEE802154
|
||||
|
|
|
@ -5,9 +5,6 @@ if SHIELD_LMP90100_EVB
|
|||
|
||||
if ADC
|
||||
|
||||
config SPI
|
||||
default y
|
||||
|
||||
config ADC_LMP90XXX_GPIO
|
||||
default y
|
||||
|
||||
|
|
|
@ -1,9 +0,0 @@
|
|||
# Copyright (c) 2022 Nordic Semiconductor ASA
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if SHIELD_SPARKFUN_MAX3421E
|
||||
|
||||
config UHC_DRIVER
|
||||
default y
|
||||
|
||||
endif # SHIELD_SPARKFUN_MAX3421E
|
|
@ -5,12 +5,6 @@ if SHIELD_DFROBOT_CAN_BUS_V2_0 || SHIELD_KEYESTUDIO_CAN_BUS_KS0411
|
|||
|
||||
if CAN
|
||||
|
||||
config GPIO
|
||||
default y
|
||||
|
||||
config SPI
|
||||
default y
|
||||
|
||||
config CAN_INIT_PRIORITY
|
||||
default 80
|
||||
|
||||
|
|
|
@ -5,9 +5,6 @@ if SHIELD_MIKROE_ADC_CLICK
|
|||
|
||||
if ADC
|
||||
|
||||
config SPI
|
||||
default y
|
||||
|
||||
config ADC_INIT_PRIORITY
|
||||
default 80
|
||||
|
||||
|
|
|
@ -1,9 +0,0 @@
|
|||
# Copyright (c) 2023 Nordic Semiconductor ASA
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if SHIELD_NPM1100_EK
|
||||
|
||||
config REGULATOR
|
||||
default y
|
||||
|
||||
endif # SHIELD_NPM1100_EK
|
|
@ -1,15 +0,0 @@
|
|||
# Copyright (c) 2023 Nordic Semiconductor ASA
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if SHIELD_NPM1300_EK
|
||||
|
||||
config REGULATOR
|
||||
default y
|
||||
|
||||
config GPIO
|
||||
default y
|
||||
|
||||
config SENSOR
|
||||
default y
|
||||
|
||||
endif # SHIELD_NPM1300_EK
|
|
@ -1,15 +0,0 @@
|
|||
# Copyright (c) 2022 Nordic Semiconductor ASA
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if SHIELD_NPM6001_EK
|
||||
|
||||
config GPIO
|
||||
default y
|
||||
|
||||
config REGULATOR
|
||||
default y
|
||||
|
||||
config WATCHDOG
|
||||
default y
|
||||
|
||||
endif # SHIELD_NPM6001_EK
|
|
@ -1,13 +0,0 @@
|
|||
# Copyright (c) 2022 Konstantinos Papadopoulos <kostas.papadopulos@gmail.com>
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if SHIELD_SEMTECH_SX1262MB2DAS
|
||||
|
||||
if LORA
|
||||
|
||||
config SPI
|
||||
default y
|
||||
|
||||
endif # LORA
|
||||
|
||||
endif # SHIELD_SEMTECH_SX1262MB2DAS
|
|
@ -1,13 +0,0 @@
|
|||
# Copyright (c) 2020 Lemonbeat GmbH
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if SHIELD_SEMTECH_SX1272MB2DAS
|
||||
|
||||
if LORA
|
||||
|
||||
config SPI
|
||||
default y
|
||||
|
||||
endif # LORA
|
||||
|
||||
endif # SHIELD_SEMTECH_SX1272MB2DAS
|
|
@ -1,12 +0,0 @@
|
|||
# Copyright (c) 2023 bytes at work AG
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if SHIELD_ST_B_LCD40_DSI1_MB1166
|
||||
|
||||
config DISPLAY
|
||||
default y
|
||||
|
||||
config GPIO
|
||||
default y
|
||||
|
||||
endif # SHIELD_ST_B_LCD40_DSI1_MB1166
|
|
@ -1,20 +0,0 @@
|
|||
# Copyright (c) 2020 Henrik Brix Andersen <henrik@brixandersen.dk>
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if SHIELD_V2C_DAPLINK || SHIELD_V2C_DAPLINK_CFG
|
||||
|
||||
if BOARD_ARTY_A7_ARM_DESIGNSTART_M1 || BOARD_ARTY_A7_ARM_DESIGNSTART_M3
|
||||
|
||||
if DISK_ACCESS
|
||||
|
||||
config SPI
|
||||
default y
|
||||
|
||||
config DISK_DRIVER_SDMMC
|
||||
default y
|
||||
|
||||
endif # DISK_ACCESS
|
||||
|
||||
endif # BOARD_ARTY_A7_ARM_DESIGNSTART_M1 || BOARD_ARTY_A7_ARM_DESIGNSTART_M3
|
||||
|
||||
endif # SHIELD_V2C_DAPLINK || SHIELD_V2C_DAPLINK_CFG
|
|
@ -3,16 +3,7 @@
|
|||
|
||||
if SHIELD_X_NUCLEO_53L0A1
|
||||
|
||||
config GPIO
|
||||
default y
|
||||
|
||||
config I2C
|
||||
default y
|
||||
|
||||
config SENSOR
|
||||
default y
|
||||
|
||||
config VL53L0X_RECONFIGURE_ADDRESS
|
||||
default y
|
||||
default y if SENSOR
|
||||
|
||||
endif # SHIELD_X_NUCLEO_53L0A1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue