|
|
Gensor的文件
- /media/ultranix/works/android/mtk/6735/5.1_sujiacan/alps/kernel-3.10/drivers/misc/mediatek/mach/mt6735/tx6735_65u_un_l1/accelerometer/mpu6050g-new/cust_acc.c
复制代码 修改成:
- #include <linux/types.h>
- #include <cust_acc.h>
- #include <mach/mt_pm_ldo.h>
- /*---------------------------------------------------------------------------*/
- static struct acc_hw cust_acc_hw = {
- .i2c_num = 2,
- .direction = 6,
- .power_id = MT65XX_POWER_NONE, /*!< LDO is not used */
- .power_vol= VOL_DEFAULT, /*!< LDO is not used */
- .firlen = 0, //old value 16 /*!< don't enable low pass fileter */
- };
- /*---------------------------------------------------------------------------*/
- struct acc_hw* get_cust_acc_hw(void)
- {
- return &cust_acc_hw;
- }
复制代码 陀螺仪文件:
- /media/ultranix/works/android/mtk/6735/5.1_sujiacan/alps/kernel-3.10/drivers/misc/mediatek/mach/mt6735/tx6735_65u_un_l1/gyroscope/mpu6050gy-new/cust_gyro.c
复制代码 修改成
#include <linux/types.h>
#include <mach/mt_pm_ldo.h>
#include <cust_gyro.h>
/*---------------------------------------------------------------------------*/
static struct gyro_hw cust_gyro_hw = {
.i2c_num = 2,
.direction = 0,
.power_id = MT65XX_POWER_NONE, /*!< LDO is not used */
.power_vol= VOL_DEFAULT, /*!< LDO is not used */
.firlen = 0, /*!< don't enable low pass fileter */
};
/*---------------------------------------------------------------------------*/
struct gyro_hw* get_cust_gyro_hw(void)
{
return &cust_gyro_hw;
}
|
|