Add a driver to support InvenSense mpu3050 gyroscope chip.
Subsystems (2)
PATCH 1/1 Add a driver to support InvenSense mpu3050 gyroscope chip.
From: Joseph Lai <[email protected]>
This driver is registered as an input device with sysfs control interface, but it still can output 3 axes data in non-interrupt mode.
[Updated to fix the case where probe failed when the power to the device was
off at probe time]
Signed-off-by Joseph Lai <[email protected]>
[Cleaned up PM_RUNTIME defines]
Signed-off-by Alan Cox <[email protected]>
---
drivers/input/misc/Kconfig | 10 + drivers/input/misc/Makefile | 1 drivers/input/misc/mpu3050.c | 501 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 512 insertions(+), 0 deletions(-) create mode 100644 drivers/input/misc/mpu3050.c
drivers/input/misc/Kconfig +10 -0
@@ -477,4 +477,14 @@ config INPUT_BMA023 To compile this driver as a module, choose M here: the module will be called bma023. +config INPUT_MPU3050 + tristate "MPU3050 Triaxial gyroscope sensor" + depends on I2C + help + Say Y here if you want to support InvenSense MPU3050 + connected via an I2C bus. + + To compile this driver as a module, choose M here: the + module will be called mpu3050. + endif
drivers/input/misc/Makefile +1 -0
@@ -28,6 +28,7 @@ obj-$(CONFIG_INPUT_IXP4XX_BEEPER) += ixp4xx-beeper.o obj-$(CONFIG_INPUT_KEYSPAN_REMOTE) += keyspan_remote.o obj-$(CONFIG_INPUT_M68K_BEEP) += m68kspkr.o obj-$(CONFIG_INPUT_MAX8925_ONKEY) += max8925_onkey.o +obj-$(CONFIG_INPUT_MPU3050) += mpu3050.o obj-$(CONFIG_INPUT_PCAP) += pcap_keys.o obj-$(CONFIG_INPUT_PCF50633_PMU) += pcf50633-input.o obj-$(CONFIG_INPUT_PCF8574) += pcf8574_keypad.o
drivers/input/misc/mpu3050.c new file +501 -0
501 lines not on this page · raw message