mirror of
https://github.com/torvalds/linux.git
synced 2026-04-30 04:22:32 -04:00
Not all archs have io memory. Instead of selecting I2C_MUX (and bypassing the HAS_IOMEM dependency) depend directly on it. Fixes the following kconfig warning: warning: (MEDIA_SUBDRV_AUTOSELECT && VIDEO_CX231XX && INV_MPU6050_I2C) selects I2C_MUX which has unmet direct dependencies (I2C && HAS_IOMEM) And this build error: ERROR: "devm_ioremap_resource" [drivers/i2c/muxes/i2c-mux-reg.ko] undefined! ERROR: "of_address_to_resource" [drivers/i2c/muxes/i2c-mux-reg.ko] undefined! Cc: Jonathan Cameron <jic23@kernel.org> Cc: Hartmut Knaack <knaack.h@gmx.de> Cc: Lars-Peter Clausen <lars@metafoo.de> Cc: Peter Meerwald <pmeerw@pmeerw.net> Signed-off-by: Richard Weinberger <richard@nod.at> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
33 lines
930 B
Plaintext
33 lines
930 B
Plaintext
#
|
|
# inv-mpu6050 drivers for Invensense MPU devices and combos
|
|
#
|
|
|
|
config INV_MPU6050_IIO
|
|
tristate
|
|
select IIO_BUFFER
|
|
select IIO_TRIGGERED_BUFFER
|
|
|
|
config INV_MPU6050_I2C
|
|
tristate "Invensense MPU6050 devices (I2C)"
|
|
depends on I2C_MUX
|
|
select INV_MPU6050_IIO
|
|
select REGMAP_I2C
|
|
help
|
|
This driver supports the Invensense MPU6050 devices.
|
|
This driver can also support MPU6500 in MPU6050 compatibility mode
|
|
and also in MPU6500 mode with some limitations.
|
|
It is a gyroscope/accelerometer combo device.
|
|
This driver can be built as a module. The module will be called
|
|
inv-mpu6050-i2c.
|
|
|
|
config INV_MPU6050_SPI
|
|
tristate "Invensense MPU6050 devices (SPI)"
|
|
depends on SPI_MASTER
|
|
select INV_MPU6050_IIO
|
|
select REGMAP_SPI
|
|
help
|
|
This driver supports the Invensense MPU6050 devices.
|
|
It is a gyroscope/accelerometer combo device.
|
|
This driver can be built as a module. The module will be called
|
|
inv-mpu6050-spi.
|