intput: sensors: accel: add sc7a30 support
Signed-off-by: Wu Liangqing <wlq@rock-chips.com> Change-Id: I7727b6bf642b9f2f2a1ee53e7de283c4f818d7f9
This commit is contained in:
parent
1e5052252d
commit
844ba815a5
5 changed files with 1217 additions and 0 deletions
|
|
@ -71,6 +71,12 @@ config GS_MC3230
|
|||
To have support for your specific gsesnor you will have to
|
||||
select the proper drivers which depend on this option.
|
||||
|
||||
config GS_SC7A30
|
||||
bool "gsensor sc7a30"
|
||||
help
|
||||
To have support for your specific gsesnor you will have to
|
||||
select the proper drivers which depend on this option.
|
||||
|
||||
config GS_MXC6225
|
||||
bool "gsensor mxc6225"
|
||||
help
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@ obj-$(CONFIG_GS_DMT10) += dmard10.o
|
|||
obj-$(CONFIG_GS_LSM303D) += lsm303d.o
|
||||
obj-$(CONFIG_GS_MC3230) += mc3230.o
|
||||
obj-$(CONFIG_MPU6880_ACC) += mpu6880_acc.o
|
||||
obj-$(CONFIG_GS_SC7A30) += sc7a30.o
|
||||
obj-$(CONFIG_MPU6500_ACC) += mpu6500_acc.o
|
||||
obj-$(CONFIG_LSM330_ACC) += lsm330_acc.o
|
||||
obj-$(CONFIG_BMA2XX_ACC) += bma2xx.o
|
||||
|
|
|
|||
1206
drivers/input/sensors/accel/sc7a30.c
Normal file
1206
drivers/input/sensors/accel/sc7a30.c
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -2016,6 +2016,7 @@ static const struct i2c_device_id sensor_id[] = {
|
|||
{"gs_mxc6655xa", ACCEL_ID_MXC6655XA},
|
||||
{"gs_dmard10", ACCEL_ID_DMARD10},
|
||||
{"gs_lsm303d", ACCEL_ID_LSM303D},
|
||||
{"gs_sc7a30",ACCEL_ID_SC7A30},
|
||||
{"gs_mc3230", ACCEL_ID_MC3230},
|
||||
{"mpu6880_acc", ACCEL_ID_MPU6880},
|
||||
{"mpu6500_acc", ACCEL_ID_MPU6500},
|
||||
|
|
@ -2074,10 +2075,12 @@ static struct of_device_id sensor_dt_ids[] = {
|
|||
{ .compatible = "gs_mma7660" },
|
||||
{ .compatible = "gs_mxc6225" },
|
||||
{ .compatible = "gs_mc3230" },
|
||||
{ .compatible = "gs_sc7a30" },
|
||||
{ .compatible = "lsm330_acc" },
|
||||
{ .compatible = "bma2xx_acc" },
|
||||
{ .compatible = "gs_stk8baxx" },
|
||||
{ .compatible = "gs_mxc6655xa"},
|
||||
|
||||
/*compass*/
|
||||
{ .compatible = "ak8975" },
|
||||
{ .compatible = "ak8963" },
|
||||
|
|
|
|||
|
|
@ -51,6 +51,7 @@ enum sensor_id {
|
|||
ACCEL_ID_MMA8450,
|
||||
ACCEL_ID_MMA845X,
|
||||
ACCEL_ID_MMA7660,
|
||||
ACCEL_ID_SC7A30,
|
||||
ACCEL_ID_MPU6050,
|
||||
ACCEL_ID_MXC6225,
|
||||
ACCEL_ID_MXC6655XA,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue