cust_baro.h 748 B

12345678910111213141516171819202122
  1. #ifndef __CUST_BARO_H__
  2. #define __CUST_BARO_H__
  3. #include <linux/types.h>
  4. #define B_CUST_I2C_ADDR_NUM 2
  5. struct baro_hw {
  6. int i2c_num; /*!< the i2c bus used by the chip */
  7. int direction; /*!< the direction of the chip */
  8. int power_id; /*!< the LDO ID of the chip, MT6516_POWER_NONE means the power is always on */
  9. int power_vol; /*!< the Power Voltage used by the chip */
  10. int firlen; /*!< the length of low pass filter */
  11. int (*power)(struct baro_hw *hw, unsigned int on, char *devname);
  12. unsigned char i2c_addr[B_CUST_I2C_ADDR_NUM];
  13. /*!< i2c address list,for chips which has different addresses with different HW layout */
  14. bool is_batch_supported;
  15. };
  16. struct baro_hw *get_baro_dts_func(const char *name, struct baro_hw *hw);
  17. #endif