rk3188 ds1006h: fix l3g4200d & ak8963
authorwuhao <wuhao@wuhao@rock-chips.com>
Thu, 31 Jan 2013 04:11:19 +0000 (12:11 +0800)
committerwuhao <wuhao@wuhao@rock-chips.com>
Thu, 31 Jan 2013 04:11:19 +0000 (12:11 +0800)
arch/arm/configs/rk3188_ds1006h_defconfig
arch/arm/mach-rk3188/board-rk3188-ds1006h.c

index 748e9efe82ed363a78cc86b34aeab1837f30ea8a..11339f17e1c2809983efaea519ab51150c38ac6a 100644 (file)
@@ -194,6 +194,7 @@ CONFIG_MTD_NAND_IDS=y
 CONFIG_MTD_RKNAND=y
 CONFIG_BLK_DEV_LOOP=y
 CONFIG_MISC_DEVICES=y
+CONFIG_SENSORS_AK8963=y
 CONFIG_UID_STAT=y
 CONFIG_APANIC=y
 CONFIG_SCSI=y
index 9385d3a234d7cf089ae43e5451d2fa63b413146c..bb895a2e7058866dc9fea5ebdf07a6c7e1ad6f99 100755 (executable)
@@ -315,8 +315,8 @@ static int l3g4200d_init_platform_hw(void)
 static struct sensor_platform_data l3g4200d_info = {
        .type = SENSOR_TYPE_GYROSCOPE,
        .irq_enable = 1,
-       .poll_delay_ms = 30,
-       .orientation = {0, 1, 0, -1, 0, 0, 0, 0, 1},
+       .poll_delay_ms = 0,
+       .orientation = {1, 0, 0 , -1, 0, 0, 0, 0, -1},
        .init_platform_hw = l3g4200d_init_platform_hw,
        .x_min = 40,//x_min,y_min,z_min = (0-100) according to hardware
        .y_min = 40,