diff options
Diffstat (limited to 'include/linux/iio')
| -rw-r--r-- | include/linux/iio/dac/ad5421.h | 28 | ||||
| -rw-r--r-- | include/linux/iio/dac/ad5504.h | 16 | ||||
| -rw-r--r-- | include/linux/iio/dac/ad5791.h | 25 | ||||
| -rw-r--r-- | include/linux/iio/dac/max517.h | 15 |
4 files changed, 84 insertions, 0 deletions
diff --git a/include/linux/iio/dac/ad5421.h b/include/linux/iio/dac/ad5421.h new file mode 100644 index 000000000000..8fd8f057a890 --- /dev/null +++ b/include/linux/iio/dac/ad5421.h | |||
| @@ -0,0 +1,28 @@ | |||
| 1 | #ifndef __IIO_DAC_AD5421_H__ | ||
| 2 | #define __IIO_DAC_AD5421_H__ | ||
| 3 | |||
| 4 | /** | ||
| 5 | * enum ad5421_current_range - Current range the AD5421 is configured for. | ||
| 6 | * @AD5421_CURRENT_RANGE_4mA_20mA: 4 mA to 20 mA (RANGE1,0 pins = 00) | ||
| 7 | * @AD5421_CURRENT_RANGE_3mA8_21mA: 3.8 mA to 21 mA (RANGE1,0 pins = x1) | ||
| 8 | * @AD5421_CURRENT_RANGE_3mA2_24mA: 3.2 mA to 24 mA (RANGE1,0 pins = 10) | ||
| 9 | */ | ||
| 10 | |||
| 11 | enum ad5421_current_range { | ||
| 12 | AD5421_CURRENT_RANGE_4mA_20mA, | ||
| 13 | AD5421_CURRENT_RANGE_3mA8_21mA, | ||
| 14 | AD5421_CURRENT_RANGE_3mA2_24mA, | ||
| 15 | }; | ||
| 16 | |||
| 17 | /** | ||
| 18 | * struct ad5421_platform_data - AD5421 DAC driver platform data | ||
| 19 | * @external_vref: whether an external reference voltage is used or not | ||
| 20 | * @current_range: Current range the AD5421 is configured for | ||
| 21 | */ | ||
| 22 | |||
| 23 | struct ad5421_platform_data { | ||
| 24 | bool external_vref; | ||
| 25 | enum ad5421_current_range current_range; | ||
| 26 | }; | ||
| 27 | |||
| 28 | #endif | ||
diff --git a/include/linux/iio/dac/ad5504.h b/include/linux/iio/dac/ad5504.h new file mode 100644 index 000000000000..43895376a9ca --- /dev/null +++ b/include/linux/iio/dac/ad5504.h | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | /* | ||
| 2 | * AD5504 SPI DAC driver | ||
| 3 | * | ||
| 4 | * Copyright 2011 Analog Devices Inc. | ||
| 5 | * | ||
| 6 | * Licensed under the GPL-2. | ||
| 7 | */ | ||
| 8 | |||
| 9 | #ifndef SPI_AD5504_H_ | ||
| 10 | #define SPI_AD5504_H_ | ||
| 11 | |||
| 12 | struct ad5504_platform_data { | ||
| 13 | u16 vref_mv; | ||
| 14 | }; | ||
| 15 | |||
| 16 | #endif /* SPI_AD5504_H_ */ | ||
diff --git a/include/linux/iio/dac/ad5791.h b/include/linux/iio/dac/ad5791.h new file mode 100644 index 000000000000..45ee281c6660 --- /dev/null +++ b/include/linux/iio/dac/ad5791.h | |||
| @@ -0,0 +1,25 @@ | |||
| 1 | /* | ||
| 2 | * AD5791 SPI DAC driver | ||
| 3 | * | ||
| 4 | * Copyright 2011 Analog Devices Inc. | ||
| 5 | * | ||
| 6 | * Licensed under the GPL-2. | ||
| 7 | */ | ||
| 8 | |||
| 9 | #ifndef SPI_AD5791_H_ | ||
| 10 | #define SPI_AD5791_H_ | ||
| 11 | |||
| 12 | /** | ||
| 13 | * struct ad5791_platform_data - platform specific information | ||
| 14 | * @vref_pos_mv: Vdd Positive Analog Supply Volatge (mV) | ||
| 15 | * @vref_neg_mv: Vdd Negative Analog Supply Volatge (mV) | ||
| 16 | * @use_rbuf_gain2: ext. amplifier connected in gain of two configuration | ||
| 17 | */ | ||
| 18 | |||
| 19 | struct ad5791_platform_data { | ||
| 20 | u16 vref_pos_mv; | ||
| 21 | u16 vref_neg_mv; | ||
| 22 | bool use_rbuf_gain2; | ||
| 23 | }; | ||
| 24 | |||
| 25 | #endif /* SPI_AD5791_H_ */ | ||
diff --git a/include/linux/iio/dac/max517.h b/include/linux/iio/dac/max517.h new file mode 100644 index 000000000000..f6d1d252f08d --- /dev/null +++ b/include/linux/iio/dac/max517.h | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | /* | ||
| 2 | * MAX517 DAC driver | ||
| 3 | * | ||
| 4 | * Copyright 2011 Roland Stigge <stigge@antcom.de> | ||
| 5 | * | ||
| 6 | * Licensed under the GPL-2 or later. | ||
| 7 | */ | ||
| 8 | #ifndef IIO_DAC_MAX517_H_ | ||
| 9 | #define IIO_DAC_MAX517_H_ | ||
| 10 | |||
| 11 | struct max517_platform_data { | ||
| 12 | u16 vref_mv[2]; | ||
| 13 | }; | ||
| 14 | |||
| 15 | #endif /* IIO_DAC_MAX517_H_ */ | ||
