1 #ifndef __CUST_GYRO_H__
2 #define __CUST_GYRO_H__
4 #include <linux/types.h>
6 #define GYRO_CUST_I2C_ADDR_NUM 2
10 int i2c_num
; /*!< the i2c bus used by the chip */
11 int direction
; /*!< the direction of the chip */
12 int power_id
; /*!< the LDO ID of the chip, MT6516_POWER_NONE means the power is always on*/
13 int power_vol
; /*!< the Power Voltage used by the chip */
14 int firlen
; /*!< the length of low pass filter */
15 int (*power
)(struct gyro_hw
*hw
, unsigned int on
, char *devname
);
16 unsigned char i2c_addr
[GYRO_CUST_I2C_ADDR_NUM
]; /*!< i2c address list,for chips which has different addresses with different HW layout */
17 int power_vio_id
; /*!< the LDO ID of the chip, MT6516_POWER_NONE means the power is always on*/
18 int power_vio_vol
; /*!< the Power Voltage used by the chip */
19 bool is_batch_supported
;
22 extern struct gyro_hw
* get_cust_gyro_hw(void);