2 * MS5611 pressure and temperature sensor driver
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
15 #include <linux/device.h>
16 #include <linux/iio/iio.h>
17 #include <linux/mutex.h>
19 #define MS5611_RESET 0x1e
20 #define MS5611_READ_ADC 0x00
21 #define MS5611_READ_PROM_WORD 0xA0
22 #define MS5611_START_TEMP_CONV 0x58
23 #define MS5611_START_PRESSURE_CONV 0x48
25 #define MS5611_CONV_TIME_MIN 9040
26 #define MS5611_CONV_TIME_MAX 10000
28 #define MS5611_PROM_WORDS_NB 8
34 int (*reset)(struct device *dev);
35 int (*read_prom_word)(struct device *dev, int index, u16 *word);
36 int (*read_adc_temp_and_pressure)(struct device *dev,
37 s32 *temp, s32 *pressure);
39 u16 prom[MS5611_PROM_WORDS_NB];
42 int ms5611_probe(struct iio_dev *indio_dev, struct device *dev);
44 #endif /* _MS5611_H */