aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/spi
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/spi')
-rw-r--r--include/linux/spi/74x164.h2
-rw-r--r--include/linux/spi/mcp23s08.h9
-rw-r--r--include/linux/spi/rm31080a_ts.h44
3 files changed, 44 insertions, 11 deletions
diff --git a/include/linux/spi/74x164.h b/include/linux/spi/74x164.h
index d85c52f294a..0aa6acc7331 100644
--- a/include/linux/spi/74x164.h
+++ b/include/linux/spi/74x164.h
@@ -1,8 +1,6 @@
1#ifndef LINUX_SPI_74X164_H 1#ifndef LINUX_SPI_74X164_H
2#define LINUX_SPI_74X164_H 2#define LINUX_SPI_74X164_H
3 3
4#define GEN_74X164_DRIVER_NAME "74x164"
5
6struct gen_74x164_chip_platform_data { 4struct gen_74x164_chip_platform_data {
7 /* number assigned to the first GPIO */ 5 /* number assigned to the first GPIO */
8 unsigned base; 6 unsigned base;
diff --git a/include/linux/spi/mcp23s08.h b/include/linux/spi/mcp23s08.h
index c42cff8ca19..2d676d5aaa8 100644
--- a/include/linux/spi/mcp23s08.h
+++ b/include/linux/spi/mcp23s08.h
@@ -22,13 +22,4 @@ struct mcp23s08_platform_data {
22 * base to base+15 (or base+31 for s17 variant). 22 * base to base+15 (or base+31 for s17 variant).
23 */ 23 */
24 unsigned base; 24 unsigned base;
25
26 void *context; /* param to setup/teardown */
27
28 int (*setup)(struct spi_device *spi,
29 int gpio, unsigned ngpio,
30 void *context);
31 int (*teardown)(struct spi_device *spi,
32 int gpio, unsigned ngpio,
33 void *context);
34}; 25};
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
28typedef 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
37struct 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_