This repository has been archived on 2026-03-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
ubports_kernel_google_msm/drivers/hwmon
Siddartha Mohanadoss 213b8f5bce hwmon: qpnp-adc: Add PMIC 2.0 ADC bringup fixes
VADC/IADC peripheral is supported from PMIC 2.0 onwards.
Add version check to allow VADC/IADC reads if the
version is supported. Add probe defereal api for clients
who need to know if the ADC driver is ready. There is a
bug where the completion is not initialized. Fix it
by initializing it. Add support to disable the peripheral
after the ADC is read and enable it before starting a
conversion.

Add scaling functions to support reading the die temperature,
XO_THERM, batt_therm and batt_id. Add the ratiometric
calibration routine that uses the vref/gnd for calibration.
The ratiometric calibration is used for calibrating xo_therm,
batt_therm, batt_id.

Update the gain value used for calibration on the IADC
peripheral. PMIC 2.0 IADC peripheral uses 17.857mV instead
of 25mV for its gain calibration.

Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
(cherry picked from commit 5ace110e2165fba66227e18154d58b0e6cbb24b2)

Change-Id: I37b02de53ea2bed913c30261624c31a1ae57131c
Signed-off-by: Sudhir Sharma <sudsha@codeaurora.org>
2013-03-07 15:18:54 -08:00
..
2012-04-22 18:22:53 -07:00
2012-04-18 11:15:50 -07:00
2012-03-18 18:27:03 -07:00
2012-03-18 18:26:51 -07:00
2012-03-27 20:06:02 +02:00
2012-03-18 18:27:16 -07:00
2012-03-18 18:26:52 -07:00
2012-03-18 18:26:35 -07:00
2012-03-18 18:26:42 -07:00
2012-01-05 08:19:35 -08:00
2012-03-18 18:27:24 -07:00
2012-03-18 18:27:24 -07:00
2012-03-18 18:27:25 -07:00
2012-03-18 18:27:05 -07:00
2012-03-18 18:27:06 -07:00
2013-02-25 11:29:50 -08:00
2012-03-23 10:02:20 +01:00
2013-02-25 11:29:50 -08:00
2012-03-18 18:26:36 -07:00
2012-03-18 18:27:10 -07:00
2012-03-27 20:06:02 +02:00
2013-02-25 11:29:50 -08:00