mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-08-31 14:13:39 +00:00

Create new inv_sensors common modules and move inv_icm42600 timestamp module inside. This module will be used by IMUs and also in the future by other chips. Modify inv_icm42600 driver to use timestamp module and do some headers cleanup. Signed-off-by: Jean-Baptiste Maneyrol <jean-baptiste.maneyrol@tdk.com> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Link: https://lore.kernel.org/r/20230606162147.79667-3-inv.git-commit@tdk.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
31 lines
747 B
Plaintext
31 lines
747 B
Plaintext
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
config INV_ICM42600
|
|
tristate
|
|
select IIO_BUFFER
|
|
select IIO_INV_SENSORS_TIMESTAMP
|
|
|
|
config INV_ICM42600_I2C
|
|
tristate "InvenSense ICM-426xx I2C driver"
|
|
depends on I2C
|
|
select INV_ICM42600
|
|
select REGMAP_I2C
|
|
help
|
|
This driver supports the InvenSense ICM-426xx motion tracking
|
|
devices over I2C.
|
|
|
|
This driver can be built as a module. The module will be called
|
|
inv-icm42600-i2c.
|
|
|
|
config INV_ICM42600_SPI
|
|
tristate "InvenSense ICM-426xx SPI driver"
|
|
depends on SPI_MASTER
|
|
select INV_ICM42600
|
|
select REGMAP_SPI
|
|
help
|
|
This driver supports the InvenSense ICM-426xx motion tracking
|
|
devices over SPI.
|
|
|
|
This driver can be built as a module. The module will be called
|
|
inv-icm42600-spi.
|