thermal: msm8960_tsens: Add APQ8064 support

TSENS is used by the thermal daemon for thermal management.
On APQ8064 there are 11 TSENS sensors that can be used by the
thermal daemon to monitor the temperature across the chip.

TSENS for APQ8064 supports individual slope for each of the
sensors. The offset used in the temperature from each of the
slope is used for temperature calcuation from the ADC code.

Change-Id: I00457aff8d67ab3367882ffe1077af863b90bc49
Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
Signed-off-by: David Brown <davidb@codeaurora.org>
This commit is contained in:
Siddartha Mohanadoss
2012-02-07 16:41:38 -08:00
committed by Stephen Boyd
parent ac6e574364
commit 085efea37e
2 changed files with 151 additions and 66 deletions

View File

@@ -22,14 +22,15 @@ enum platform_type {
MSM_8660 = 0,
MSM_8960,
MSM_9615,
APQ_8064,
MSM_TYPE
};
struct tsens_platform_data {
int slope;
int tsens_factor;
uint32_t tsens_num_sensor;
enum platform_type hw_type;
int slope[11];
};
struct tsens_device {