Skip to content

Commit c17ca3f

Browse files
Eric Anderssondtor
authored andcommitted
Input: add driver for Bosch Sensortec's BMA150 accelerometer
Signed-off-by: Albert Zhang <xu.zhang@bosch-sensortec.com> Signed-off-by: Eric Andersson <eric.andersson@unixphere.com> Acked-by: Jonathan Cameron <jic23@cam.ac.uk> Reviewed-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
1 parent 5e3e4eb commit c17ca3f

4 files changed

Lines changed: 749 additions & 0 deletions

File tree

‎drivers/input/misc/Kconfig‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,17 @@ config INPUT_AD714X_SPI
6262
To compile this driver as a module, choose M here: the
6363
module will be called ad714x-spi.
6464

65+
config INPUT_BMA150
66+
tristate "BMA150/SMB380 acceleration sensor support"
67+
depends on I2C
68+
select INPUT_POLLDEV
69+
help
70+
Say Y here if you have Bosch Sensortec's BMA150 or SMB380
71+
acceleration sensor hooked to an I2C bus.
72+
73+
To compile this driver as a module, choose M here: the
74+
module will be called bma150.
75+
6576
config INPUT_PCSPKR
6677
tristate "PC Speaker support"
6778
depends on PCSPKR_PLATFORM

‎drivers/input/misc/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ obj-$(CONFIG_INPUT_ATI_REMOTE) += ati_remote.o
1717
obj-$(CONFIG_INPUT_ATI_REMOTE2) += ati_remote2.o
1818
obj-$(CONFIG_INPUT_ATLAS_BTNS) += atlas_btns.o
1919
obj-$(CONFIG_INPUT_BFIN_ROTARY) += bfin_rotary.o
20+
obj-$(CONFIG_INPUT_BMA150) += bma150.o
2021
obj-$(CONFIG_INPUT_CM109) += cm109.o
2122
obj-$(CONFIG_INPUT_CMA3000) += cma3000_d0x.o
2223
obj-$(CONFIG_INPUT_CMA3000_I2C) += cma3000_d0x_i2c.o

0 commit comments

Comments
 (0)