Commit | Line | Data |
---|---|---|
6fa3eb70 S |
1 | #ifndef __CUST_ACC_H__ |
2 | #define __CUST_ACC_H__ | |
3 | ||
4 | #include <linux/types.h> | |
5 | ||
6 | #define G_CUST_I2C_ADDR_NUM 2 | |
7 | ||
8 | struct acc_hw { | |
9 | int i2c_num; /*!< the i2c bus used by the chip */ | |
10 | int direction; /*!< the direction of the chip */ | |
11 | int power_id; /*!< the VDD LDO ID of the chip, MT6516_POWER_NONE means the power is always on*/ | |
12 | int power_vol; /*!< the VDD Power Voltage used by the chip */ | |
13 | int firlen; /*!< the length of low pass filter */ | |
14 | int (*power)(struct acc_hw *hw, unsigned int on, char *devname); | |
15 | unsigned char i2c_addr[G_CUST_I2C_ADDR_NUM]; /*!< i2c address list,for chips which has different addresses with different HW layout */ | |
16 | int power_vio_id; /*!< the VIO LDO ID of the chip, MT6516_POWER_NONE means the power is always on*/ | |
17 | int power_vio_vol; /*!< the VIO Power Voltage used by the chip */ | |
18 | bool is_batch_supported; | |
19 | }; | |
20 | ||
21 | extern struct acc_hw* get_cust_acc_hw(void); | |
22 | #endif |