-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
iio: imu: add Kconfig and Makefile for inv_icm42600 driver
Add 3 modules: inv-icm42600, inv-icm42600-i2c, inv-icm42600-spi. Signed-off-by: Jean-Baptiste Maneyrol <jmaneyrol@invensense.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
- Loading branch information
Jean-Baptiste Maneyrol
authored and
Jonathan Cameron
committed
Jun 27, 2020
1 parent
bc3eb02
commit 8237945
Showing
4 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# SPDX-License-Identifier: GPL-2.0-or-later | ||
|
||
config INV_ICM42600 | ||
tristate | ||
|
||
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# SPDX-License-Identifier: GPL-2.0-or-later | ||
|
||
obj-$(CONFIG_INV_ICM42600) += inv-icm42600.o | ||
inv-icm42600-y += inv_icm42600_core.o | ||
inv-icm42600-y += inv_icm42600_gyro.o | ||
inv-icm42600-y += inv_icm42600_accel.o | ||
inv-icm42600-y += inv_icm42600_temp.o | ||
|
||
obj-$(CONFIG_INV_ICM42600_I2C) += inv-icm42600-i2c.o | ||
inv-icm42600-i2c-y += inv_icm42600_i2c.o | ||
|
||
obj-$(CONFIG_INV_ICM42600_SPI) += inv-icm42600-spi.o | ||
inv-icm42600-spi-y += inv_icm42600_spi.o |