diff options
author | Olivier Moysan <[email protected]> | 2022-11-15 11:31:21 +0100 |
---|---|---|
committer | Jonathan Cameron <[email protected]> | 2022-11-23 20:56:13 +0000 |
commit | 9d901e356c8d3640940cb72ff7969f03e85c2e95 (patch) | |
tree | 099e7abca6dbeb36c793e40fcf997c4e5e73bb5a /lib/mpi/mpi-sub-ui.c | |
parent | f237cf1914e24ebba88670ecc36e8209c888c9a2 (diff) |
iio: adc: stm32-adc: smart calibration support
Add smart calibration support for STM32MP1.
- STM32MP15x: both linear & offset calibration are supported
- STM32MP13x: Only offset calibration is supported
Linear calibration:
Linear calibration is SoC dependent and does not change over time
so it can be done only once.
Linear calibration may have already been done in u-boot.
Skip calibration execution if calibration data are already available.
Save calibration factors in private data and restore them from private
data on next ADC start.
Offset calibration:
This calibration may vary over time, depending on temperature or voltage.
Run offset single-ended and differential calibration on each ADC start,
as it is not time consuming. This calibration do not need to be saved.
So, remove calfact_s and calfact_d value and bitfields that are no
longer used.
Signed-off-by: Olivier Moysan <[email protected]>
Reviewed-by: Fabrice Gasnier <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions