CONFIG_ARCH_RK3026=y
CONFIG_DDR_FREQ=y
# CONFIG_DDR_TEST is not set
+CONFIG_RK_CLOCK_PROC=y
CONFIG_RK_USB_UART=y
CONFIG_MACH_RK3028A_86V=y
CONFIG_ARM_ERRATA_761320=y
CONFIG_SENSOR_DEVICE=y
CONFIG_GSENSOR_DEVICE=y
CONFIG_GS_MXC6225=y
+CONFIG_GS_LSM303D=y
# CONFIG_SERIO is not set
# CONFIG_VT is not set
# CONFIG_LEGACY_PTYS is not set
CONFIG_POWER_SUPPLY=y
CONFIG_BATTERY_RK30_ADC_FAC=y
CONFIG_BATTERY_RK30_AC_CHARGE=y
+CONFIG_BATTERY_RK30_USB_CHARGE=y
CONFIG_BATTERY_RK30_VOL3V8=y
# CONFIG_HWMON is not set
CONFIG_MFD_TPS65910=y
/***********************************************************
* gsensor
************************************************************/
+// mma 8452 gsensor
#if defined (CONFIG_GS_MMA8452)
#define MMA8452_INT_PIN GS_INT_PIN
static int mma8452_init_platform_hw(void)
};
#endif
+// lsm303d gsensor
+#if defined (CONFIG_GS_LSM303D)
+#define LSM303D_INT_PIN GS_INT_PIN
+static int lms303d_init_platform_hw(void)
+{
+ return 0;
+}
+
+static struct sensor_platform_data lms303d_info = {
+ .type = SENSOR_TYPE_ACCEL,
+ .irq_enable = 1,
+ .poll_delay_ms = 30,
+ .init_platform_hw = lms303d_init_platform_hw,
+ .orientation = {-1, 0, 0, 0, -1, 0, 0, 0, 1},
+};
+#endif
+
+
/*MMA7660 gsensor*/
#if defined (CONFIG_GS_MMA7660)
#define MMA7660_INT_PIN GS_INT_PIN
.dc_det_level = GPIO_LOW,
.charge_ok_level = GPIO_HIGH,
- .reference_voltage = 1800, // the rK2928 is 3300;RK3066 and rk29 are 2500;rk3066B is 1800;
+ .reference_voltage = 3300, // the rK2928 is 3300;RK3066 and rk29 are 2500;rk3066B is 1800;
.pull_up_res = 200, //divider resistance , pull-up resistor
.pull_down_res = 120, //divider resistance , pull-down resistor
.platform_data = &lis3dh_info,
},
#endif
+#if defined (CONFIG_GS_LSM303D)
+ {
+ .type = "gs_lsm303d",
+ .addr = 0x1d, //0x19(SA0-->VCC), 0x18(SA0-->GND)
+ .flags = 0,
+ .irq = LSM303D_INT_PIN,
+ .platform_data = &lms303d_info,
+ },
+#endif
#if defined (CONFIG_COMPASS_AK8975)
{
.type = "ak8975",