aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/cpuidle.c
diff options
context:
space:
mode:
authorEduardo Valentin <edubezval@gmail.com>2015-05-11 19:48:09 -0700
committerKevin Hilman <khilman@linaro.org>2015-07-07 09:20:25 -0700
commit18837407265a12d6dc0f2338f8a6b5f3f35fb0c4 (patch)
treef6d5ec303cbb42666483567c6669f4eb22fde96f /arch/arm/mach-tegra/cpuidle.c
parent5b943ea4df2d865a0dd3d2ba9c03f68c436d87c6 (diff)
thermal: of-thermal: add support for reading coefficients property
In order to avoid having each driver adding their own specific DT property to specify slope and offset, this patch adds a basic coefficient reading from DT thermal zone node. Right now, as the thermal framework does not support multiple sensors, the current coefficients apply only to the only sensor in the thermal zone. The supported equation is a simple linear model: slope * <sensor reading> + offset. slope and offset are read from the coefficients DT property. In the same way as it is described in the DT thermal binding. So, as of today, the thermal framework will support only cases like: /* hotspot = 1 * adc + 6000 */ coefficients = <1 6000>; Signed-off-by: Eduardo Valentin <edubezval@gmail.com> (cherry picked from commit a46dbae8abe5cd94c0189582de188d4225e19ef1) Signed-off-by: Kevin Hilman <khilman@linaro.org>
Diffstat (limited to 'arch/arm/mach-tegra/cpuidle.c')
0 files changed, 0 insertions, 0 deletions