2011-08-18 18:19:00 +00:00
|
|
|
/*
|
2013-02-12 21:35:08 +00:00
|
|
|
* Copyright (c) 2011-2012, The Linux Foundation. All rights reserved.
|
2011-08-18 18:19:00 +00:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License version 2 and
|
|
|
|
* only version 2 as published by the Free Software Foundation.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*/
|
|
|
|
/*
|
|
|
|
* Qualcomm TSENS Header file
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __MSM_TSENS_H
|
|
|
|
#define __MSM_TSENS_H
|
|
|
|
|
|
|
|
enum platform_type {
|
|
|
|
MSM_8660 = 0,
|
|
|
|
MSM_8960,
|
2012-03-19 18:19:27 +00:00
|
|
|
MDM_9615,
|
2012-02-08 00:41:38 +00:00
|
|
|
APQ_8064,
|
2011-08-18 18:19:00 +00:00
|
|
|
MSM_TYPE
|
|
|
|
};
|
|
|
|
|
2012-04-06 04:29:54 +00:00
|
|
|
#define TSENS_MAX_SENSORS 11
|
|
|
|
|
2011-08-18 18:19:00 +00:00
|
|
|
struct tsens_platform_data {
|
2012-04-06 04:29:54 +00:00
|
|
|
int slope[TSENS_MAX_SENSORS];
|
2011-08-18 18:19:00 +00:00
|
|
|
int tsens_factor;
|
|
|
|
uint32_t tsens_num_sensor;
|
|
|
|
enum platform_type hw_type;
|
|
|
|
};
|
|
|
|
|
2012-01-20 23:06:40 +00:00
|
|
|
struct tsens_device {
|
|
|
|
uint32_t sensor_num;
|
|
|
|
};
|
|
|
|
|
|
|
|
int32_t tsens_get_temp(struct tsens_device *dev, unsigned long *temp);
|
|
|
|
int msm_tsens_early_init(struct tsens_platform_data *pdata);
|
|
|
|
|
2011-08-18 18:19:00 +00:00
|
|
|
#endif /*MSM_TSENS_H */
|