]> git.dujemihanovic.xyz Git - u-boot.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)
commit17bae7766c84a9aaf78c3efa235bc67c14cea56d
tree3359ebe7524a46ae9705bc89c55ce5b6660a93d3
parent214d6e7e68ce77cc57e63d6d1b23987003306bf5
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