diff options
author | Fabrice Gasnier <fabrice.gasnier@st.com> | 2017-05-29 11:28:20 +0200 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2017-06-11 15:07:29 +0100 |
commit | 95e339b6e85d03438d1d9236ccaff4ecd895f3ab (patch) | |
tree | acf40ff9965955f84583046cbf4bd07b4497cea3 /drivers/iio/adc/stm32-adc-core.h | |
parent | 204a6a25db79a0d754451c023933e0470b498730 (diff) | |
download | linux-95e339b6e85d03438d1d9236ccaff4ecd895f3ab.tar.gz linux-95e339b6e85d03438d1d9236ccaff4ecd895f3ab.tar.bz2 linux-95e339b6e85d03438d1d9236ccaff4ecd895f3ab.zip |
iio: adc: stm32: add support for STM32H7
Add support for STM32H7 Analog to Digital Converter. It has up
to 20 external channels, resolution ranges from 8 to 16bits.
Either bus or asynchronous adc clock may be used.
Add registers & bitfields definition. Also add new configuration
options to enter/exit powerdown and perform self-calibration.
Signed-off-by: Fabrice Gasnier <fabrice.gasnier@st.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/adc/stm32-adc-core.h')
-rw-r--r-- | drivers/iio/adc/stm32-adc-core.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/iio/adc/stm32-adc-core.h b/drivers/iio/adc/stm32-adc-core.h index 2ec7abbfbcaa..250ee958a669 100644 --- a/drivers/iio/adc/stm32-adc-core.h +++ b/drivers/iio/adc/stm32-adc-core.h @@ -43,11 +43,13 @@ * struct stm32_adc_common - stm32 ADC driver common data (for all instances) * @base: control registers base cpu addr * @phys_base: control registers base physical addr + * @rate: clock rate used for analog circuitry * @vref_mv: vref voltage (mv) */ struct stm32_adc_common { void __iomem *base; phys_addr_t phys_base; + unsigned long rate; int vref_mv; }; |