aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input/touchscreen/wacom/wacom_i2c_func.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/input/touchscreen/wacom/wacom_i2c_func.h')
-rw-r--r--drivers/input/touchscreen/wacom/wacom_i2c_func.h25
1 files changed, 20 insertions, 5 deletions
diff --git a/drivers/input/touchscreen/wacom/wacom_i2c_func.h b/drivers/input/touchscreen/wacom/wacom_i2c_func.h
index 49fd814..3754e13 100644
--- a/drivers/input/touchscreen/wacom/wacom_i2c_func.h
+++ b/drivers/input/touchscreen/wacom/wacom_i2c_func.h
@@ -27,7 +27,9 @@
#ifdef SEC_BUS_LOCK
#include <mach/dev.h>
-#define BUS_LOCK_FREQ 267160
+#define SEC_DVFS_LOCK_TIMEOUT_MS 200
+#define SEC_BUS_LOCK_FREQ 267160
+#define SEC_BUS_LOCK_FREQ2 400200
#endif
#ifdef COOR_WORK_AROUND
@@ -35,13 +37,26 @@ 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);
+#define WACOM_I2C_STOP 0x30
+#define WACOM_I2C_START 0x31
+#define WACOM_I2C_GRID_CHECK 0xC9
+#define WACOM_STATUS 0xD8
+
+#ifdef WACOM_USE_BOXFILTER
+extern int g_boxThreshold_C[];
+extern int g_boxThreshold_X[];
+extern int g_boxThreshold_Y[];
+extern int g_boxThreshold_Trs[];
+#endif
+
+extern int wacom_i2c_send(struct wacom_i2c *wac_i2c,
+ const char *buf, int count, bool mode);
+extern int wacom_i2c_recv(struct wacom_i2c *wac_i2c,
+ char *buf, int count, bool mode);
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 int wacom_checksum(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);