diff options
Diffstat (limited to 'arch/arm/mach-tegra/include/mach/tsensor.h')
-rw-r--r-- | arch/arm/mach-tegra/include/mach/tsensor.h | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/include/mach/tsensor.h b/arch/arm/mach-tegra/include/mach/tsensor.h new file mode 100644 index 00000000000..190a38586c5 --- /dev/null +++ b/arch/arm/mach-tegra/include/mach/tsensor.h | |||
@@ -0,0 +1,48 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-tegra/include/mach/tsensor.h | ||
3 | * | ||
4 | * Tegra tsensor header file | ||
5 | * | ||
6 | * Copyright (c) 2011, NVIDIA Corporation. | ||
7 | * | ||
8 | * This software is licensed under the terms of the GNU General Public | ||
9 | * License version 2, as published by the Free Software Foundation, and | ||
10 | * may be copied, distributed, and modified under those terms. | ||
11 | * | ||
12 | * This program is distributed in the hope that it will be useful, | ||
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
15 | * GNU General Public License for more details. | ||
16 | * | ||
17 | */ | ||
18 | |||
19 | #ifndef __MACH_TEGRA_TSENSOR_H | ||
20 | #define __MACH_TEGRA_TSENSOR_H | ||
21 | |||
22 | #include <linux/types.h> | ||
23 | |||
24 | #include <mach/edp.h> | ||
25 | |||
26 | #define MAX_ZONES 16 | ||
27 | |||
28 | struct tegra_tsensor_data; | ||
29 | |||
30 | struct tegra_tsensor_platform_data { | ||
31 | void (*probe_callback)(struct tegra_tsensor_data *); | ||
32 | }; | ||
33 | |||
34 | int tsensor_thermal_get_temp(struct tegra_tsensor_data *data, | ||
35 | long *milli_temp); | ||
36 | int tsensor_thermal_get_temp_low(struct tegra_tsensor_data *data, | ||
37 | long *milli_temp); | ||
38 | int tsensor_thermal_set_limits(struct tegra_tsensor_data *data, | ||
39 | long lo_limit_milli, | ||
40 | long hi_limit_milli); | ||
41 | int tsensor_thermal_set_alert(struct tegra_tsensor_data *data, | ||
42 | void (*alert_func)(void *), | ||
43 | void *alert_data); | ||
44 | int tsensor_thermal_set_shutdown_temp(struct tegra_tsensor_data *data, | ||
45 | long shutdown_temp_milli); | ||
46 | |||
47 | #endif /* __MACH_TEGRA_TSENSOR_H */ | ||
48 | |||