aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/thermal/qcom/tsens.c
diff options
context:
space:
mode:
authorRajendra Nayak <rnayak@codeaurora.org>2016-05-05 14:21:40 +0530
committerZhang Rui <rui.zhang@intel.com>2016-09-27 14:02:16 +0800
commit840a5bd3ed3fdd62456d4d26c3128ec10496555b (patch)
tree4af75dd44a80231cfaa42de4ec272b4205f3ff1f /drivers/thermal/qcom/tsens.c
parentthermal: qcom: tsens: Add a skeletal TSENS drivers (diff)
downloadwireguard-linux-840a5bd3ed3fdd62456d4d26c3128ec10496555b.tar.xz
wireguard-linux-840a5bd3ed3fdd62456d4d26c3128ec10496555b.zip
thermal: qcom: tsens-8916: Add support for 8916 family of SoCs
Add support to calibrate sensors on 8916 family and also add common functions to read temperature from sensors (This can be reused on other SoCs having similar TSENS device) The calibration data is read from eeprom using the generic nvmem framework apis. Based on the original code by Siddartha Mohanadoss and Stephen Boyd. Signed-off-by: Rajendra Nayak <rnayak@codeaurora.org> Signed-off-by: Eduardo Valentin <edubezval@gmail.com> Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Diffstat (limited to 'drivers/thermal/qcom/tsens.c')
-rw-r--r--drivers/thermal/qcom/tsens.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/thermal/qcom/tsens.c b/drivers/thermal/qcom/tsens.c
index 17d7b5538f3a..7f3dfa1d6757 100644
--- a/drivers/thermal/qcom/tsens.c
+++ b/drivers/thermal/qcom/tsens.c
@@ -65,6 +65,7 @@ static SIMPLE_DEV_PM_OPS(tsens_pm_ops, tsens_suspend, tsens_resume);
static const struct of_device_id tsens_table[] = {
{
.compatible = "qcom,msm8916-tsens",
+ .data = &data_8916,
}, {
.compatible = "qcom,msm8974-tsens",
},