summaryrefslogtreecommitdiff
path: root/drivers/iio/imu
diff options
context:
space:
mode:
authorFabrice Gasnier <fabrice.gasnier@st.com>2017-07-24 18:10:38 +0200
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2017-07-30 17:18:38 +0100
commit50dbe1f4b453b2860ef0e3d48054b9fd24d5ae97 (patch)
treeed75bf1c7d0e0ecc321bc644e5475a6f4ca48087 /drivers/iio/imu
parentff3aa88a4d61468baece3fc2bb54e2a3bea6360f (diff)
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 'drivers/iio/imu')
0 files changed, 0 insertions, 0 deletions