diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/iio/common/st_sensors.h | 4 | ||||
| -rw-r--r-- | include/linux/platform_data/ad5761.h | 44 |
2 files changed, 48 insertions, 0 deletions
diff --git a/include/linux/iio/common/st_sensors.h b/include/linux/iio/common/st_sensors.h index 2fe939c73cd2..6670c3d25c58 100644 --- a/include/linux/iio/common/st_sensors.h +++ b/include/linux/iio/common/st_sensors.h | |||
| @@ -119,6 +119,8 @@ struct st_sensor_bdu { | |||
| 119 | * @addr: address of the register. | 119 | * @addr: address of the register. |
| 120 | * @mask_int1: mask to enable/disable IRQ on INT1 pin. | 120 | * @mask_int1: mask to enable/disable IRQ on INT1 pin. |
| 121 | * @mask_int2: mask to enable/disable IRQ on INT2 pin. | 121 | * @mask_int2: mask to enable/disable IRQ on INT2 pin. |
| 122 | * @addr_ihl: address to enable/disable active low on the INT lines. | ||
| 123 | * @mask_ihl: mask to enable/disable active low on the INT lines. | ||
| 122 | * struct ig1 - represents the Interrupt Generator 1 of sensors. | 124 | * struct ig1 - represents the Interrupt Generator 1 of sensors. |
| 123 | * @en_addr: address of the enable ig1 register. | 125 | * @en_addr: address of the enable ig1 register. |
| 124 | * @en_mask: mask to write the on/off value for enable. | 126 | * @en_mask: mask to write the on/off value for enable. |
| @@ -127,6 +129,8 @@ struct st_sensor_data_ready_irq { | |||
| 127 | u8 addr; | 129 | u8 addr; |
| 128 | u8 mask_int1; | 130 | u8 mask_int1; |
| 129 | u8 mask_int2; | 131 | u8 mask_int2; |
| 132 | u8 addr_ihl; | ||
| 133 | u8 mask_ihl; | ||
| 130 | struct { | 134 | struct { |
| 131 | u8 en_addr; | 135 | u8 en_addr; |
| 132 | u8 en_mask; | 136 | u8 en_mask; |
diff --git a/include/linux/platform_data/ad5761.h b/include/linux/platform_data/ad5761.h new file mode 100644 index 000000000000..7bd8ed7d978e --- /dev/null +++ b/include/linux/platform_data/ad5761.h | |||
| @@ -0,0 +1,44 @@ | |||
| 1 | /* | ||
| 2 | * AD5721, AD5721R, AD5761, AD5761R, Voltage Output Digital to Analog Converter | ||
| 3 | * | ||
| 4 | * Copyright 2016 Qtechnology A/S | ||
| 5 | * 2016 Ricardo Ribalda <ricardo.ribalda@gmail.com> | ||
| 6 | * | ||
| 7 | * Licensed under the GPL-2. | ||
| 8 | */ | ||
| 9 | #ifndef __LINUX_PLATFORM_DATA_AD5761_H__ | ||
| 10 | #define __LINUX_PLATFORM_DATA_AD5761_H__ | ||
| 11 | |||
| 12 | /** | ||
| 13 | * enum ad5761_voltage_range - Voltage range the AD5761 is configured for. | ||
| 14 | * @AD5761_VOLTAGE_RANGE_M10V_10V: -10V to 10V | ||
| 15 | * @AD5761_VOLTAGE_RANGE_0V_10V: 0V to 10V | ||
| 16 | * @AD5761_VOLTAGE_RANGE_M5V_5V: -5V to 5V | ||
| 17 | * @AD5761_VOLTAGE_RANGE_0V_5V: 0V to 5V | ||
| 18 | * @AD5761_VOLTAGE_RANGE_M2V5_7V5: -2.5V to 7.5V | ||
| 19 | * @AD5761_VOLTAGE_RANGE_M3V_3V: -3V to 3V | ||
| 20 | * @AD5761_VOLTAGE_RANGE_0V_16V: 0V to 16V | ||
| 21 | * @AD5761_VOLTAGE_RANGE_0V_20V: 0V to 20V | ||
| 22 | */ | ||
| 23 | |||
| 24 | enum ad5761_voltage_range { | ||
| 25 | AD5761_VOLTAGE_RANGE_M10V_10V, | ||
| 26 | AD5761_VOLTAGE_RANGE_0V_10V, | ||
| 27 | AD5761_VOLTAGE_RANGE_M5V_5V, | ||
| 28 | AD5761_VOLTAGE_RANGE_0V_5V, | ||
| 29 | AD5761_VOLTAGE_RANGE_M2V5_7V5, | ||
| 30 | AD5761_VOLTAGE_RANGE_M3V_3V, | ||
| 31 | AD5761_VOLTAGE_RANGE_0V_16V, | ||
| 32 | AD5761_VOLTAGE_RANGE_0V_20V, | ||
| 33 | }; | ||
| 34 | |||
| 35 | /** | ||
| 36 | * struct ad5761_platform_data - AD5761 DAC driver platform data | ||
| 37 | * @voltage_range: Voltage range the AD5761 is configured for | ||
| 38 | */ | ||
| 39 | |||
| 40 | struct ad5761_platform_data { | ||
| 41 | enum ad5761_voltage_range voltage_range; | ||
| 42 | }; | ||
| 43 | |||
| 44 | #endif | ||
