| Praveen Chidambaram | 9181436 | 2012-05-25 17:36:07 -0600 | [diff] [blame] | 1 | /* | 
| Duy Truong | e833aca | 2013-02-12 13:35:08 -0800 | [diff] [blame] | 2 | * Copyright (c) 2012, The Linux Foundation. All rights reserved. | 
| Praveen Chidambaram | 9181436 | 2012-05-25 17:36:07 -0600 | [diff] [blame] | 3 | * | 
|  | 4 | * This program is free software; you can redistribute it and/or modify | 
|  | 5 | * it under the terms of the GNU General Public License version 2 and | 
|  | 6 | * only version 2 as published by the Free Software Foundation. | 
|  | 7 | * | 
|  | 8 | * This program is distributed in the hope that it will be useful, | 
|  | 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 
|  | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | 
|  | 11 | * GNU General Public License for more details. | 
|  | 12 | */ | 
|  | 13 |  | 
|  | 14 | #ifndef __MSM_THERMAL_H | 
|  | 15 | #define __MSM_THERMAL_H | 
|  | 16 |  | 
|  | 17 | struct msm_thermal_data { | 
|  | 18 | uint32_t sensor_id; | 
|  | 19 | uint32_t poll_ms; | 
| Praveen Chidambaram | 961dff6 | 2013-04-10 09:20:59 -0600 | [diff] [blame] | 20 | int32_t limit_temp_degC; | 
|  | 21 | int32_t temp_hysteresis_degC; | 
| Eugene Seah | 2ee4a5d | 2012-06-25 18:16:41 -0600 | [diff] [blame] | 22 | uint32_t freq_step; | 
| Praveen Chidambaram | 961dff6 | 2013-04-10 09:20:59 -0600 | [diff] [blame] | 23 | int32_t core_limit_temp_degC; | 
|  | 24 | int32_t core_temp_hysteresis_degC; | 
| Praveen Chidambaram | f223044 | 2013-02-20 17:42:17 -0700 | [diff] [blame] | 25 | uint32_t core_control_mask; | 
| Praveen Chidambaram | 9181436 | 2012-05-25 17:36:07 -0600 | [diff] [blame] | 26 | }; | 
|  | 27 |  | 
|  | 28 | #ifdef CONFIG_THERMAL_MONITOR | 
|  | 29 | extern int msm_thermal_init(struct msm_thermal_data *pdata); | 
| Eugene Seah | b77b0c4 | 2012-07-02 19:28:50 -0600 | [diff] [blame] | 30 | extern int msm_thermal_device_init(void); | 
| Praveen Chidambaram | 9181436 | 2012-05-25 17:36:07 -0600 | [diff] [blame] | 31 | #else | 
|  | 32 | static inline int msm_thermal_init(struct msm_thermal_data *pdata) | 
|  | 33 | { | 
|  | 34 | return -ENOSYS; | 
|  | 35 | } | 
| Eugene Seah | b77b0c4 | 2012-07-02 19:28:50 -0600 | [diff] [blame] | 36 | static inline int msm_thermal_device_init(void) | 
|  | 37 | { | 
|  | 38 | return -ENOSYS; | 
|  | 39 | } | 
| Praveen Chidambaram | 9181436 | 2012-05-25 17:36:07 -0600 | [diff] [blame] | 40 | #endif | 
|  | 41 |  | 
|  | 42 | #endif /*__MSM_THERMAL_H*/ |