Siddartha Mohanadoss | acd2426 | 2011-08-18 11:19:00 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2011, Code Aurora Forum. All rights reserved. |
| 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 | * Qualcomm TSENS Header file |
| 15 | * |
| 16 | */ |
| 17 | |
| 18 | #ifndef __MSM_TSENS_H |
| 19 | #define __MSM_TSENS_H |
| 20 | |
| 21 | enum platform_type { |
| 22 | MSM_8660 = 0, |
| 23 | MSM_8960, |
Siddartha Mohanadoss | 0b9e517 | 2011-09-29 18:54:13 -0700 | [diff] [blame] | 24 | MSM_9615, |
Siddartha Mohanadoss | acd2426 | 2011-08-18 11:19:00 -0700 | [diff] [blame] | 25 | MSM_TYPE |
| 26 | }; |
| 27 | |
| 28 | struct tsens_platform_data { |
| 29 | int slope; |
| 30 | int tsens_factor; |
| 31 | uint32_t tsens_num_sensor; |
| 32 | enum platform_type hw_type; |
| 33 | }; |
| 34 | |
Siddartha Mohanadoss | ccd4985 | 2012-01-20 15:06:40 -0800 | [diff] [blame] | 35 | struct tsens_device { |
| 36 | uint32_t sensor_num; |
| 37 | }; |
| 38 | |
| 39 | int32_t tsens_get_temp(struct tsens_device *dev, unsigned long *temp); |
| 40 | int msm_tsens_early_init(struct tsens_platform_data *pdata); |
| 41 | |
Siddartha Mohanadoss | acd2426 | 2011-08-18 11:19:00 -0700 | [diff] [blame] | 42 | #endif /*MSM_TSENS_H */ |