import PULS_20160108
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / arch / arm / mach-mt8127 / kr076 / gyroscope / inc / cust_gyro.h
1 #ifndef __CUST_GYRO_H__
2 #define __CUST_GYRO_H__
3
4 #include <linux/types.h>
5
6 #define GYRO_CUST_I2C_ADDR_NUM 2
7
8 struct gyro_hw {
9 unsigned short addr;
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;
20 };
21
22 extern struct gyro_hw* get_cust_gyro_hw(void);
23 #endif