Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 963f1f82 authored by Siddartha Mohanadoss's avatar Siddartha Mohanadoss Committed by Stephen Boyd
Browse files

hwmon: qpnp-adc-current: Add periodic calibration



Support periodic IADC peripheral calibration to perform
calibration as a function of time and temperature.
Calibration is performed every 5 minutes and for
every 5degC temperature change in the die temperature.

As part of the periodic calibration update the USR trim
registers with fresh offset values. The clients can read
the offset trim values through their own trim registers.

Support reading internal RSENSE trim register and
use it for current calculation.

Also update the gain and offset api to support clients
who require the updated periodic calibrated values.

Change-Id: I2b3f0383b76417069333fb95c0c7fc1ac06eafd5
Signed-off-by: default avatarSiddartha Mohanadoss <smohanad@codeaurora.org>
parent 81281e94
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment