LR097:compatile with gsensor lis3dh
authoryxj <yxj@rock-chips.com>
Thu, 28 Feb 2013 09:58:46 +0000 (17:58 +0800)
committeryxj <yxj@rock-chips.com>
Tue, 5 Mar 2013 03:19:13 +0000 (11:19 +0800)
arch/arm/configs/rk3188_LR097_defconfig
arch/arm/mach-rk30/board-rk3168-LR097.c

index 69d603f10521ff5944c2f64bf3a1508900c642d5..dae5d7ee30ca0ba791f7d312ec72d8573275da30 100644 (file)
@@ -239,6 +239,7 @@ CONFIG_INPUT_MISC=y
 CONFIG_INPUT_KEYCHORD=y
 CONFIG_INPUT_UINPUT=y
 CONFIG_GS_MMA8452=y
+CONFIG_GS_LIS3DH=y
 CONFIG_SENSOR_DEVICE=y
 CONFIG_GSENSOR_DEVICE=y
 # CONFIG_SERIO is not set
index 56b32e0fcb18f92c41b0125674b5d4925562d8d4..f7792a429491f21293c793ac757a8782f3ff397d 100755 (executable)
@@ -415,7 +415,7 @@ static struct sensor_platform_data lis3dh_info = {
        .irq_enable = 1,
        .poll_delay_ms = 30,
         .init_platform_hw = lis3dh_init_platform_hw,
-       .orientation = {-1, 0, 0, 0, 0, 1, 0, -1, 0},
+       .orientation = {1, 0, 0, 0, 0, -1, 0, -1, 0},
 };
 #endif
 #if defined(CONFIG_CHARGER_CW2015)