blob: f5472ec77945b6f3de324a0f84b1557b729a9fa4 [file] [log] [blame]
Siddartha Mohanadossacd24262011-08-18 11:19:00 -07001/*
Siddartha Mohanadoss7e25dc12012-03-19 11:19:27 -07002 * Copyright (c) 2011-2012, Code Aurora Forum. All rights reserved.
Siddartha Mohanadossacd24262011-08-18 11:19:00 -07003 *
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 Mohanadoss7e25dc12012-03-19 11:19:27 -070024 MDM_9615,
Siddartha Mohanadosscaeaa922012-02-07 16:41:38 -080025 APQ_8064,
Siddartha Mohanadossacd24262011-08-18 11:19:00 -070026 MSM_TYPE
27};
28
29struct tsens_platform_data {
Siddartha Mohanadossacd24262011-08-18 11:19:00 -070030 int tsens_factor;
31 uint32_t tsens_num_sensor;
32 enum platform_type hw_type;
Siddartha Mohanadosscaeaa922012-02-07 16:41:38 -080033 int slope[11];
Siddartha Mohanadossacd24262011-08-18 11:19:00 -070034};
35
Siddartha Mohanadossccd49852012-01-20 15:06:40 -080036struct tsens_device {
37 uint32_t sensor_num;
38};
39
40int32_t tsens_get_temp(struct tsens_device *dev, unsigned long *temp);
41int msm_tsens_early_init(struct tsens_platform_data *pdata);
42
Siddartha Mohanadossacd24262011-08-18 11:19:00 -070043#endif /*MSM_TSENS_H */