[AIO-3288J] lvds:change gsensor to mc3230

This commit is contained in:
sujl
2018-07-11 16:45:48 +08:00
parent 869aa82e9d
commit 2396430cad
3 changed files with 13 additions and 2 deletions

View File

@ -38,7 +38,7 @@ EXTENDED_FONT_FOOTPRINT := true
MALLOC_IMPL := dlmalloc
# Sensors
ifeq ($(strip $(TARGET_PRODUCT)), rk3288_aio_box)
ifeq ($(strip $(TARGET_PRODUCT)), rk3288_aio_3288j_box)
BOARD_SENSOR_ST := true
BOARD_SENSOR_MPU := false
else ifeq ($(strip $(TARGET_PRODUCT)), rk3288_aio_3288c_box)

View File

@ -6,6 +6,7 @@
#include "lcd-HSX101H40C-aio-3288j.dtsi"
//#include "lcd-btl790-mipi-aio-3288j.dtsi"
#include <dt-bindings/input/input.h>
#include <dt-bindings/sensor-dev.h>
/ {
fiq-debugger {
@ -469,6 +470,15 @@
&i2c4 {
status = "okay";
sensor@4c {
compatible = "gs_mc3230";
reg = <0x4c>;
type = <SENSOR_TYPE_ACCEL>;
irq_enable = <0>;
poll_delay_ms = <30>;
layout = <1>;
};
/*
sensor@1d {
compatible = "gs_mma8452";
reg = <0x1d>;
@ -478,6 +488,7 @@
poll_delay_ms = <30>;
layout = <2>;
};
*/
};
&i2c5 {

View File

@ -326,7 +326,7 @@ CONFIG_INPUT_UINPUT=y
CONFIG_INPUT_GPIO=y
# CONFIG_GS_LIS3DH is not set
# CONFIG_GS_MMA7660 is not set
CONFIG_GS_MC3230=y
# CONFIG_GS_MC3230=y
# CONFIG_GS_LSM303D is not set
# CONFIG_COMPASS_DEVICE is not set
# CONFIG_GYROSCOPE_DEVICE is not set