Commit a6b6b9cb authored by Siddartha Mohanadoss's avatar Siddartha Mohanadoss
Browse files

thermal: tsens8974: Add second one point calibration mode



With the existing one point calibration mode, sensors are
reporting cooler temperature. The existing method used
to calculate the 10bit calibration value is
point1_10bit = ((base_8bit << 2) | 0x2) + point1_6bit

With the above method the dynamic range of the ADC is
limited to 64 ADC codes. This limits the available range
possible for the offset temperatures.

With the new mode the range can be increased by using
point1_10bit = ((base_8bit + point1_6bit) << 2) | 0x2

The modes to differentiate between the two different
one point calibration mode is done through the efused
bits.

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