thermal: qcom: tsens-8996: Add support for 8996 family of SoCs
authorRajendra Nayak <rnayak@codeaurora.org>
Thu, 5 May 2016 08:51:44 +0000 (14:21 +0530)
committerZhang Rui <rui.zhang@intel.com>
Fri, 19 Aug 2016 05:58:35 +0000 (13:58 +0800)
commit970e7cd170fcad6e3679a4be9aeee6adcd33b1f8
tree3a9759a9dfe881e28953bac318fa3cc860ea6043
parent483b5655ce44c62f206f891f5c04d22fdd3d8866
thermal: qcom: tsens-8996: Add support for 8996 family of SoCs

The TSENS controller in 8996 family of SoCs is capable of converting the
ADC code outputs to real temperature values (in decidegree Celsius).
It can also be programmed to provide raw ADC code, but the secure software
on 8996 programs it to provide real temperatures and also does the needed
calibrations.

We check the valid bit to ensure valid data is read by the AHB master.
And the spec recommends the below algorithm to read data 3 consecutive
times, which takes care of the worst case delay taken to propagate the
updated data to the register.

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>
drivers/thermal/qcom/Makefile
drivers/thermal/qcom/tsens-8996.c [new file with mode: 0644]
drivers/thermal/qcom/tsens.c
drivers/thermal/qcom/tsens.h
This page took 0.024535 seconds and 5 git commands to generate.