summaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorVarun Wadekar <vwadekar@nvidia.com>2011-05-12 04:51:20 -0400
committerNicolin Chen <nicolinc@nvidia.com>2017-08-11 15:14:12 -0400
commitaf4ccb3fd0c3fefe7ac31269ffaeb9d76577194b (patch)
tree3292c492b252cf0f4c6b5bedc6a430a8a328e4cd /include/linux
parent3ec5afcfd750bca2b94d2d88cf1bb3652ee4c3fb (diff)
misc: nct1008: update edp zones for current temperature
nct1008 will now use the ALERT# functionality to decide which edp zone to switch to. Original-Change-Id: I1616a1d88e9f2f308a8b31935dbecec05ef54bca Signed-off-by: Varun Wadekar <vwadekar@nvidia.com> Reviewed-on: http://git-master/r/31340 Rebase-Id: R28b85258dea981a44137a663c96cfa0914031105
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/nct1008.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/nct1008.h b/include/linux/nct1008.h
index d65693507..8702630d8 100644
--- a/include/linux/nct1008.h
+++ b/include/linux/nct1008.h
@@ -25,6 +25,10 @@
25 25
26#include <linux/types.h> 26#include <linux/types.h>
27 27
28#include <mach/edp.h>
29
30#define MAX_ZONES 16
31
28struct nct1008_platform_data { 32struct nct1008_platform_data {
29 bool supported_hwrev; 33 bool supported_hwrev;
30 bool ext_range; 34 bool ext_range;
@@ -34,6 +38,8 @@ struct nct1008_platform_data {
34 u8 shutdown_ext_limit; 38 u8 shutdown_ext_limit;
35 u8 shutdown_local_limit; 39 u8 shutdown_local_limit;
36 u8 throttling_ext_limit; 40 u8 throttling_ext_limit;
41 u8 thermal_zones[MAX_ZONES];
42 u8 thermal_zones_sz;
37 void (*alarm_fn)(bool raised); 43 void (*alarm_fn)(bool raised);
38}; 44};
39 45