diff options
Diffstat (limited to 'include/linux/spi')
| -rw-r--r-- | include/linux/spi/rm31080a_ts.h | 35 |
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 | ||
| 89 | int rm31080_spi_byte_write(unsigned char u8Addr, unsigned char u8Value); | 106 | int rm31080_spi_byte_write(unsigned char u8Addr, unsigned char u8Value); |
