blob: 189548cc69dce5cb9aebf73e28c890189f3ee70b [file] [log] [blame]
Siddartha Mohanadossacd24262011-08-18 11:19:00 -07001/*
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
21enum platform_type {
22 MSM_8660 = 0,
23 MSM_8960,
Siddartha Mohanadoss0b9e5172011-09-29 18:54:13 -070024 MSM_9615,
Siddartha Mohanadossacd24262011-08-18 11:19:00 -070025 MSM_TYPE
26};
27
28struct 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 Mohanadossccd49852012-01-20 15:06:40 -080035struct tsens_device {
36 uint32_t sensor_num;
37};
38
39int32_t tsens_get_temp(struct tsens_device *dev, unsigned long *temp);
40int msm_tsens_early_init(struct tsens_platform_data *pdata);
41
Siddartha Mohanadossacd24262011-08-18 11:19:00 -070042#endif /*MSM_TSENS_H */