diff options
author | Gregor Boirie <gregor.boirie@parrot.com> | 2016-06-27 06:38:56 -0400 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2016-07-04 13:12:21 -0400 |
commit | 05167cdce057910125c535a120d7ba0a4a3617b8 (patch) | |
tree | ce8427d5625ea3c6a80416172244da4f192b4e26 | |
parent | b4701fd6922d9ebb4dab7cb015fa7ac8775814bd (diff) |
iio:st_pressure:lps22hb: open drain support
Add support for open drain interrupt line.
Signed-off-by: Gregor Boirie <gregor.boirie@parrot.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
-rw-r--r-- | drivers/iio/pressure/st_pressure_core.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/iio/pressure/st_pressure_core.c b/drivers/iio/pressure/st_pressure_core.c index ea8241f8b1c8..70230a159b46 100644 --- a/drivers/iio/pressure/st_pressure_core.c +++ b/drivers/iio/pressure/st_pressure_core.c | |||
@@ -213,6 +213,8 @@ | |||
213 | #define ST_PRESS_LPS22HB_DRDY_IRQ_INT2_MASK 0x08 | 213 | #define ST_PRESS_LPS22HB_DRDY_IRQ_INT2_MASK 0x08 |
214 | #define ST_PRESS_LPS22HB_IHL_IRQ_ADDR 0x12 | 214 | #define ST_PRESS_LPS22HB_IHL_IRQ_ADDR 0x12 |
215 | #define ST_PRESS_LPS22HB_IHL_IRQ_MASK 0x80 | 215 | #define ST_PRESS_LPS22HB_IHL_IRQ_MASK 0x80 |
216 | #define ST_PRESS_LPS22HB_OD_IRQ_ADDR 0x12 | ||
217 | #define ST_PRESS_LPS22HB_OD_IRQ_MASK 0x40 | ||
216 | #define ST_PRESS_LPS22HB_MULTIREAD_BIT true | 218 | #define ST_PRESS_LPS22HB_MULTIREAD_BIT true |
217 | 219 | ||
218 | static const struct iio_chan_spec st_press_1_channels[] = { | 220 | static const struct iio_chan_spec st_press_1_channels[] = { |
@@ -511,6 +513,9 @@ static const struct st_sensor_settings st_press_sensors_settings[] = { | |||
511 | .mask_int2 = ST_PRESS_LPS22HB_DRDY_IRQ_INT2_MASK, | 513 | .mask_int2 = ST_PRESS_LPS22HB_DRDY_IRQ_INT2_MASK, |
512 | .addr_ihl = ST_PRESS_LPS22HB_IHL_IRQ_ADDR, | 514 | .addr_ihl = ST_PRESS_LPS22HB_IHL_IRQ_ADDR, |
513 | .mask_ihl = ST_PRESS_LPS22HB_IHL_IRQ_MASK, | 515 | .mask_ihl = ST_PRESS_LPS22HB_IHL_IRQ_MASK, |
516 | .addr_od = ST_PRESS_LPS22HB_OD_IRQ_ADDR, | ||
517 | .mask_od = ST_PRESS_LPS22HB_OD_IRQ_MASK, | ||
518 | .addr_stat_drdy = ST_SENSORS_DEFAULT_STAT_ADDR, | ||
514 | }, | 519 | }, |
515 | .multi_read_bit = ST_PRESS_LPS22HB_MULTIREAD_BIT, | 520 | .multi_read_bit = ST_PRESS_LPS22HB_MULTIREAD_BIT, |
516 | }, | 521 | }, |