]> git.baikalelectronics.ru Git - uboot.git/commit
adc: stm32mp15: add calibration support
authorOlivier Moysan <olivier.moysan@foss.st.com>
Thu, 15 Dec 2022 12:51:10 +0000 (13:51 +0100)
committerPatrice Chotard <patrice.chotard@foss.st.com>
Thu, 12 Jan 2023 15:25:51 +0000 (16:25 +0100)
commit87fe4894e78c4adc71fbdfe556d5f132a13e8704
tree3359ebe7524a46ae9705bc89c55ce5b6660a93d3
parentfb0734ea9216c45d5f4a13f04da5edcbacbe310b
adc: stm32mp15: add calibration support

Add support of offset and linear calibration for STM32MP15.
The calibration is performed once at probe. The ADC is set in power on
state for calibration. It remains in this state after calibration,
to give to the kernel the opportunity to retrieve calibration data,
directly from the ADC.

Signed-off-by: Olivier Moysan <olivier.moysan@foss.st.com>
Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
drivers/adc/stm32-adc.c