summaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorXiaohui Tao <xtao@nvidia.com>2012-10-17 14:35:32 -0400
committerDavid Pu <dpu@nvidia.com>2017-07-27 19:09:19 -0400
commitd4e8bdbb307a2adb85b2fcfadbd59249f54b49a1 (patch)
treec8032f2fcaa9f9b24dce15bc4fbf8ecc1aea7e25 /include/linux
parentf110999e858a5ed28663003655046df3434e36cf (diff)
input: touch: raydium: updates for RM31100 chip
Raydium code drop. Add support for the new Raydium chip; Working for both the old chip and new one Bug 1162178 Signed-off-by: Xiaohui Tao <xtao@nvidia.com> Reviewed-on: http://git-master/r/145319 (cherry picked from commit df26903f2f776b20a4b70eb0a16e9cf65b2a216c) Signed-off-by: David Jung <djung@nvidia.com> Change-Id: Ibbb0e8dc92241753799b91fd2f37263a28404dc1 Reviewed-on: http://git-master/r/146047 Reviewed-by: Thomas Cherry <tcherry@nvidia.com> Rebase-Id: Rdb927e43c13350627e071f61f5847918311da3da
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/spi/rm31080a_ts.h35
1 files changed, 26 insertions, 9 deletions
diff --git a/include/linux/spi/rm31080a_ts.h b/include/linux/spi/rm31080a_ts.h
index 54b955d87..4545e1826 100644
--- a/include/linux/spi/rm31080a_ts.h
+++ b/include/linux/spi/rm31080a_ts.h
@@ -3,24 +3,31 @@
3 3
4#define ENABLE_RAW_DATA_QUEUE 4#define ENABLE_RAW_DATA_QUEUE
5 5
6#define ENABLE_TOUCH_RESPONSE_TEST 1 //Roger 6#define ENABLE_TOUCH_RESPONSE_TEST 1 //Roger
7#define ENABLE_RESOLUTION_SWITCH 1 //Alex 7#define ENABLE_RESOLUTION_SWITCH 1 //Alex
8#define ENABLE_FILTER_SWITCH 0 //Cage 8#define ENABLE_FILTER_SWITCH 0 //Cage
9#define ENABLE_NEW_NOISE_MODE 0 //Marty 9#define ENABLE_NEW_NOISE_MODE 0 //Marty
10#define NOISE_SUM_CHECK 0 //Nelson 10#define NOISE_SUM_CHECK 0 //Nelson
11#define ENABLE_CALIBRATTION_BY_FIRMWARE 1 11#define ENABLE_CALIBRATTION_BY_FIRMWARE 1
12#define ENABLE_NEW_PARAMETER 1 12#define ENABLE_NEW_PARAMETER 1
13#define ENABLE_ST_SCAN 0
13 14
14#define ENABLE_T007B1_SETTING 1 15#define ENABLE_T007B1_SETTING 1
15#define ENABLE_T007B1_STABLE_IDLE_MODE 1 16#define ENABLE_T007B1_STABLE_IDLE_MODE 1
16 17
17/* Define for T007 A6/B1 IC version ckeck */ 18/* Define for T007 A6/B1 IC version ckeck */
18#define T007A6 0xD0 19#define T007A6 0xD0
19#define T007_VERSION_B 0xB0 20#define T007_VERSION_B 0xB0
20#define T007B1 0xB0 21 #define T007B1 0xB0
21#define T007B2 0xB1 22 #define T007B2 0xB1
22#define T007_VERSION_C 0xC0 23#define T007_VERSION_C 0xC0
23 24
25#define VERSION_A_PARAMETER_OFFSET 0x00
26#define VERSION_B_PARAMETER_OFFSET 0x01
27#define VERSION_C_PARAMETER_OFFSET 0x02
28#define PARAMETER_AMOUNT 384
29#define RM_MAX_CHANNEL_COUNT 120
30
24#define RM_IOCTL_REPORT_POINT 0x1001 31#define RM_IOCTL_REPORT_POINT 0x1001
25#define RM_IOCTL_SET_HAL_PID 0x1002 32#define RM_IOCTL_SET_HAL_PID 0x1002
26#define RM_IOCTL_INIT_START 0x1003 33#define RM_IOCTL_INIT_START 0x1003
@@ -62,6 +69,13 @@
62#define RM_SELF_TEST_RESULT_FAIL 0 69#define RM_SELF_TEST_RESULT_FAIL 0
63#define RM_SELF_TEST_RESULT_PASS 1 70#define RM_SELF_TEST_RESULT_PASS 1
64 71
72
73#define RM_PLATFORM_KAI_PCB 0x00
74#define RM_PLATFORM_KAI 0x01
75#define RM_PLATFORM_CARDHU 0x02
76#define RM_PLATFORM_DALMORE 0x03
77#define RM_PLATFORM_PLUTO 0x04
78
65#define RM_PLATFORM_K007 0x00 79#define RM_PLATFORM_K007 0x00
66#define RM_PLATFORM_K107 0x01 80#define RM_PLATFORM_K107 0x01
67#define RM_PLATFORM_C210 0x02 81#define RM_PLATFORM_C210 0x02
@@ -84,6 +98,9 @@ struct rm_spi_ts_platform_data {
84 int y_size; 98 int y_size;
85 unsigned char *config; 99 unsigned char *config;
86 int platform_id; 100 int platform_id;
101 unsigned char *name_of_clock;
102 unsigned char *name_of_3v3;
103 unsigned char *name_of_1v8;
87}; 104};
88 105
89int rm31080_spi_byte_write(unsigned char u8Addr, unsigned char u8Value); 106int rm31080_spi_byte_write(unsigned char u8Addr, unsigned char u8Value);