Commit | Line | Data |
---|---|---|
6fa3eb70 S |
1 | #include <linux/types.h> |
2 | #include <mach/mt_pm_ldo.h> | |
3 | #include <cust_gyro.h> | |
4 | ||
5 | /*---------------------------------------------------------------------------*/ | |
6 | /* | |
7 | int cust_gyro_power(struct gyro_hw *hw, unsigned int on, char* devname) | |
8 | { | |
9 | if (hw->power_id == MT65XX_POWER_NONE) | |
10 | return 0; | |
11 | if (on) | |
12 | return hwPowerOn(hw->power_id, hw->power_vol, devname); | |
13 | else | |
14 | return hwPowerDown(hw->power_id, devname); | |
15 | } | |
16 | */ | |
17 | /*---------------------------------------------------------------------------*/ | |
18 | static struct gyro_hw cust_gyro_hw = { | |
19 | .addr = 0xd0, | |
20 | .i2c_num = 2, | |
21 | .direction = 7, | |
22 | .power_id = MT65XX_POWER_NONE, /*!< LDO is not used */ | |
23 | .power_vol= VOL_DEFAULT, /*!< LDO is not used */ | |
24 | .firlen = 16, /*!< don't enable low pass fileter */ | |
25 | // .power = cust_gyro_power, | |
26 | }; | |
27 | /*---------------------------------------------------------------------------*/ | |
28 | struct gyro_hw* get_cust_gyro_hw(void) | |
29 | { | |
30 | return &cust_gyro_hw; | |
31 | } |