diff options
author | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-22 10:38:37 -0500 |
---|---|---|
committer | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-22 10:38:37 -0500 |
commit | fcc9d2e5a6c89d22b8b773a64fb4ad21ac318446 (patch) | |
tree | a57612d1888735a2ec7972891b68c1ac5ec8faea /include/linux/spi/rm31080a_ts.h | |
parent | 8dea78da5cee153b8af9c07a2745f6c55057fe12 (diff) |
Diffstat (limited to 'include/linux/spi/rm31080a_ts.h')
-rw-r--r-- | include/linux/spi/rm31080a_ts.h | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/include/linux/spi/rm31080a_ts.h b/include/linux/spi/rm31080a_ts.h new file mode 100644 index 00000000000..13323a6f2ec --- /dev/null +++ b/include/linux/spi/rm31080a_ts.h | |||
@@ -0,0 +1,44 @@ | |||
1 | #ifndef _RM31080A_TS_H_ | ||
2 | #define _RM31080A_TS_H_ | ||
3 | |||
4 | #define ENABLE_RAW_DATA_QUEUE | ||
5 | |||
6 | #define RM_IOCTL_REPORT_POINT 0x1001 | ||
7 | #define RM_IOCTL_SET_HAL_PID 0x1002 | ||
8 | #define RM_IOCTL_INIT_START 0x1003 | ||
9 | #define RM_IOCTL_INIT_END 0x1004 | ||
10 | #define RM_IOCTL_FINISH_CALC 0x1005 | ||
11 | #define RM_IOCTL_SCRIBER_CTRL 0x1006 | ||
12 | #define RM_IOCTL_READ_RAW_DATA 0x1007 | ||
13 | #define RM_IOCTL_AUTOSCAN_CTRL 0x1008 | ||
14 | #define RM_IOCTL_NOISE_CHECK 0x1009 | ||
15 | #define RM_IOCTL_GET_PARAMETER 0x100A | ||
16 | #define RM_IOCTL_SET_PARAMETER 0x100B | ||
17 | |||
18 | #define RM_INPUT_RESOLUTION_X 4096 | ||
19 | #define RM_INPUT_RESOLUTION_Y 4096 | ||
20 | |||
21 | #define RM_TS_SIGNAL 44 | ||
22 | #define RM_TS_MAX_POINTS 16 | ||
23 | |||
24 | #define RM_SIGNAL_INTR 0x00000001 | ||
25 | #define RM_SIGNAL_SUSPEND 0x00000002 | ||
26 | #define RM_SIGNAL_RESUME 0x00000003 | ||
27 | |||
28 | typedef struct { | ||
29 | unsigned char ucTouchCount; | ||
30 | unsigned char ucID[RM_TS_MAX_POINTS]; | ||
31 | unsigned short usX[RM_TS_MAX_POINTS]; | ||
32 | unsigned short usY[RM_TS_MAX_POINTS]; | ||
33 | unsigned short usZ[RM_TS_MAX_POINTS]; | ||
34 | } rm_touch_event; | ||
35 | |||
36 | |||
37 | struct rm_spi_ts_platform_data{ | ||
38 | int gpio_reset; | ||
39 | int x_size; | ||
40 | int y_size; | ||
41 | unsigned char* config; | ||
42 | }; | ||
43 | |||
44 | #endif //_RM31080A_TS_H_ | ||