blob: 8ce1a42866ef385057d410deee8a53741ed3fd59 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
#ifndef __LINUX_FT5X0X_TS_H__
#define __LINUX_FT5X0X_TS_H__
/* -- dirver configure -- */
#define CFG_MAX_TOUCH_POINTS 2
#define PRESS_MAX 0xFF
#define FT_PRESS 0x7F
#define FT5X0X_NAME "ft5x0x_ts"
#define FT_MAX_ID 0x0F
#define FT_TOUCH_STEP 6
#define FT_TOUCH_X_H_POS 3
#define FT_TOUCH_X_L_POS 4
#define FT_TOUCH_Y_H_POS 5
#define FT_TOUCH_Y_L_POS 6
#define FT_TOUCH_EVENT_POS 3
#define FT_TOUCH_ID_POS 5
#define POINT_READ_BUF (3 + FT_TOUCH_STEP * CFG_MAX_TOUCH_POINTS)
/*register address*/
#define FT5x0x_REG_FW_VER 0xA6
#define FT5x0x_REG_POINT_RATE 0x88
#define FT5X0X_REG_THGROUP 0x80
int ft5x0x_i2c_Read(struct i2c_client *client, char *writebuf, int writelen,
char *readbuf, int readlen);
int ft5x0x_i2c_Write(struct i2c_client *client, char *writebuf, int writelen);
/* The platform data for the Focaltech ft5x0x touchscreen driver */
struct ft5x0x_platform_data {
unsigned int x_max;
unsigned int y_max;
unsigned long irqflags;
unsigned int irq;
unsigned int irq_cfg;
unsigned int reset;
};
#endif
|