diff options
Diffstat (limited to 'drivers/input/touchscreen/wacom/wacom_i2c_func.h')
-rw-r--r-- | drivers/input/touchscreen/wacom/wacom_i2c_func.h | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/drivers/input/touchscreen/wacom/wacom_i2c_func.h b/drivers/input/touchscreen/wacom/wacom_i2c_func.h new file mode 100644 index 0000000..49fd814 --- /dev/null +++ b/drivers/input/touchscreen/wacom/wacom_i2c_func.h @@ -0,0 +1,58 @@ +/* + * wacom_i2c_func.h - Wacom G5 Digitizer Controller (I2C bus) + * + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * 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. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + */ + + #ifndef _LINUX_WACOM_I2C_FUNC_H +#define _LINUX_WACOM_I2C_FUNC_H + +#ifdef CONFIG_SEC_TOUCHSCREEN_DVFS_LOCK +#include <mach/cpufreq.h> +#define SEC_DVFS_LOCK_TIMEOUT 3 +#endif + +#ifdef SEC_BUS_LOCK +#include <mach/dev.h> +#define BUS_LOCK_FREQ 267160 +#endif + +#ifdef COOR_WORK_AROUND +extern unsigned char screen_rotate; +extern unsigned char user_hand; +#endif + +extern int wacom_i2c_master_send(struct i2c_client *client, const char *buf, + int count, unsigned short addr); +extern int wacom_i2c_master_recv(struct i2c_client *client, char *buf, + int count, unsigned short addr); +extern int wacom_i2c_test(struct wacom_i2c *wac_i2c); +extern int wacom_i2c_coord(struct wacom_i2c *wac_i2c); +extern int wacom_i2c_query(struct wacom_i2c *wac_i2c); +extern void forced_release(struct wacom_i2c *wac_i2c); +#ifdef WACOM_PDCT_WORK_AROUND +extern void forced_hover(struct wacom_i2c *wac_i2c); +#endif + +#ifdef WACOM_IRQ_WORK_AROUND +extern void wacom_i2c_pendct_work(struct work_struct *work); +#endif + +#ifdef CONFIG_SEC_TOUCHSCREEN_DVFS_LOCK +extern void free_dvfs_lock(struct work_struct *work); +#endif + +#endif /* _LINUX_WACOM_I2C_FUNC_H */ |