static struct mpu3050_platform_data mpu3050_data = {
.int_config = 0x10,
//.orientation = { 1, 0, 0,0, -1, 0,0, 0, 1 },
- .orientation = { 0, 1, 0,-1, 0, 0,0, 0, -1 },
+ //.orientation = { 0, 1, 0,-1, 0, 0,0, 0, -1 },
+ .orientation = { -1, 0, 0,0, -1, 0,0, 0, -1 },
.level_shifter = 0,
#if defined (CONFIG_SENSORS_KXTF9)
.accel = {
.bus = EXT_SLAVE_BUS_SECONDARY, //The secondary I2C of MPU
.address = 0x0f,
//.orientation = { 1, 0, 0,0, 1, 0,0, 0, 1 },
- .orientation = { 0, -1, 0,-1, 0, 0,0, 0, -1 },
+ //.orientation = { 0, -1, 0,-1, 0, 0,0, 0, -1 },
+ .orientation = { 0, 1, 0,1, 0, 0,0, 0, -1 },
},
#endif
#if defined (CONFIG_SENSORS_AK8975)
.bus = EXT_SLAVE_BUS_PRIMARY,
.address = 0x0d,
//.orientation = { -1, 0, 0,0, -1, 0,0, 0, 1 },
- .orientation = { 0, -1, 0,-1, 0, 0,0, 0, -1 },
+ //.orientation = { 0, -1, 0,-1, 0, 0,0, 0, -1 },
+ .orientation = { 0, 1, 0,1, 0, 0,0, 0, -1 },
},
};
#endif
.bus_num = 0,
.flags = 0,
.slave_addr = 0xff,
- .scl_rate = 400*1000,
+ .scl_rate = 200*1000,
.mode = I2C_MODE_IRQ,
.io_init = rk29_i2c0_io_init,
};
.bus_num = 1,
.flags = 0,
.slave_addr = 0xff,
- .scl_rate = 400*1000,
+ .scl_rate = 200*1000,
.mode = I2C_MODE_POLL,
.io_init = rk29_i2c1_io_init,
};
.bus_num = 2,
.flags = 0,
.slave_addr = 0xff,
- .scl_rate = 400*1000,
+ .scl_rate = 200*1000,
.mode = I2C_MODE_IRQ,
.io_init = rk29_i2c2_io_init,
};
.bus_num = 3,
.flags = 0,
.slave_addr = 0xff,
- .scl_rate = 400*1000,
+ .scl_rate = 200*1000,
.mode = I2C_MODE_POLL,
.io_init = rk29_i2c3_io_init,
};
#define FIH_TOUCHKEY_LED_PWM_MUX_MODE GPIO5H_PWM1
#define FIH_TOUCHKEY_LED_PWM_MUX_MODE_GPIO GPIO5H_GPIO5D2
#define FIH_TOUCHKEY_LED_PWM_GPIO RK29_PIN5_PD2
-#define FIH_TOUCHKEY_LED_PWM_EFFECT_VALUE 0
+#define FIH_TOUCHKEY_LED_PWM_EFFECT_VALUE 1
static int fih_touchkey_led_io_init(void)
{
printk("func %s, line %d: request gpio fail\n", __FUNCTION__, __LINE__);
return -1;
}
- gpio_direction_output(FIH_TOUCHKEY_LED_PWM_GPIO, GPIO_HIGH);
+ gpio_direction_output(FIH_TOUCHKEY_LED_PWM_GPIO, GPIO_LOW);
return ret;
}
u8 T9_cfg[31] = {
0x83, 0x00, 0x00, 0x12, 0x0b, 0x00, 0x00, 0x1e,
- 0x02, 0x00, 0x00, 0x03, 0x01, 0x0f, 0x02, 0x0a,
+ 0x02, 0x06, 0x00, 0x03, 0x01, 0x0f, 0x02, 0x0a,
0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x64,
};