diff options
author | Fabrice Gasnier <fabrice.gasnier@st.com> | 2017-07-24 19:10:38 +0300 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2017-07-30 19:18:38 +0300 |
commit | 50dbe1f4b453b2860ef0e3d48054b9fd24d5ae97 (patch) | |
tree | ed75bf1c7d0e0ecc321bc644e5475a6f4ca48087 /include/linux/iio | |
parent | ff3aa88a4d61468baece3fc2bb54e2a3bea6360f (diff) | |
download | linux-50dbe1f4b453b2860ef0e3d48054b9fd24d5ae97.tar.xz |
iio: adc: stm32: fix common clock rate
ADC clock input is provided to internal prescaler (that decreases its
frequency). It's then used as reference clock for conversions.
- Fix common clock rate used then by stm32-adc sub-devices. Take common
prescaler into account. Currently, rate is used to set "boost" mode.
It may unnecessarily be set. This impacts power consumption.
- Fix ADC max clock rate on STM32H7 (fADC from datasheet). Currently,
prescaler may be set too low. This can result in ADC reference
clock used for conversion to exceed max allowed clock frequency.
Fixes: 95e339b6e85d ("iio: adc: stm32: add support for STM32H7")
Signed-off-by: Fabrice Gasnier <fabrice.gasnier@st.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'include/linux/iio')
0 files changed, 0 insertions, 0 deletions