board: argonkey: add LSM6DSL configuration in Kconfig.defconfig
Use the named choices feature introduced by PR #6966 and configure LSM6DSL on ArgonKey board. The two named choices introduced in LSM6DSL are: - LSM6DSL_BUS_TYPE (default LSM6DSL_I2C) - LSM6DSL_TRIGGER_MODE (default LSM6DSL_TRIGGER_NONE) Signed-off-by: Armando Visconti <armando.visconti@st.com>
This commit is contained in:
parent
02bb83bec2
commit
c9262bb47f
|
@ -40,4 +40,22 @@ config SPI_2
|
|||
|
||||
endif # SPI
|
||||
|
||||
if LSM6DSL
|
||||
|
||||
choice LSM6DSL_BUS_TYPE
|
||||
default LSM6DSL_SPI
|
||||
endchoice
|
||||
|
||||
choice LSM6DSL_TRIGGER_MODE
|
||||
default LSM6DSL_TRIGGER_GLOBAL_THREAD
|
||||
endchoice
|
||||
|
||||
config LSM6DSL_SENSORHUB
|
||||
default y
|
||||
|
||||
config LSM6DSL_EXT0_LIS2MDL
|
||||
default y
|
||||
|
||||
endif # LSM6DSL
|
||||
|
||||
endif # BOARD_96B_ARGONKEY
|
||||
|
|
|
@ -15,21 +15,20 @@ menuconfig LSM6DSL
|
|||
Enable driver for LSM6DSL accelerometer and gyroscope
|
||||
sensor.
|
||||
|
||||
choice
|
||||
choice LSM6DSL_BUS_TYPE
|
||||
prompt "Interface to AP"
|
||||
depends on LSM6DSL
|
||||
default LSM6DSL_I2C
|
||||
help
|
||||
Select interface the LSM6DSL driver is connected to AP
|
||||
|
||||
config LSM6DSL_SPI
|
||||
depends on SPI
|
||||
bool "SPI Interface"
|
||||
|
||||
config LSM6DSL_I2C
|
||||
depends on I2C
|
||||
bool "I2C Interface"
|
||||
|
||||
config LSM6DSL_SPI
|
||||
depends on SPI
|
||||
bool "SPI Interface"
|
||||
|
||||
endchoice
|
||||
|
||||
config LSM6DSL_DEV_NAME
|
||||
|
@ -118,7 +117,6 @@ endif # !HAS_DTS_SPI_PINS
|
|||
choice LSM6DSL_TRIGGER_MODE
|
||||
prompt "Trigger mode"
|
||||
depends on LSM6DSL
|
||||
default LSM6DSL_TRIGGER_NONE
|
||||
help
|
||||
Specify the type of triggering to be used by the driver.
|
||||
|
||||
|
|
Loading…
Reference in a new issue