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: Siddartha Mohanadoss <smohanad@codeaurora.org>
1 file changed