diff options
author | Alex Chen <alchen@nvidia.com> | 2014-06-27 17:03:36 +0800 |
---|---|---|
committer | Emad Mir <emir@nvidia.com> | 2014-06-27 19:50:27 -0700 |
commit | 7d511f3a70cfe9508a9bd2230d8b20b6c5114689 (patch) | |
tree | 097e8637883d2ed0e443c033e6cdb2776dcb43de /include/linux | |
parent | 58bf883bf47223dc5a45ecf11a331ae01c58700c (diff) |
input: touch: Raydium: v73.10 code drop
Bug 200004233
1. Raising service priority to avoid "service busy" issue while
system fully loading
2. Test_mode function@driver (Change idle escape threshold at runtime)
Usage:
a. Disable: echo 0 > /sys/devices/virtual/misc/touch/test_mode
b. Enable: echo 1 > /sys/devices/virtual/misc/touch/test_mode
c. Set: echo 2 2 100 > /sys/devices/virtual/misc/touch/test_mode
(take touch threshold 100 as example)
d. Check: cat /sys/devices/virtual/misc/touch/test_mode
3. Coding style refine
4. Add mutex_lock/mutex_unlock protection in KRL_CMD_FLUSH_QU command table
Change-Id: Iebfd42c359b510e7102d54c9b8537382c8788242
Signed-off-by: Alex Chen <alchen@nvidia.com>
Reviewed-on: http://git-master/r/432095
Reviewed-by: Jordan Nien <jnien@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Xiaohui Tao <xtao@nvidia.com>
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/spi/rm31080a_ctrl.h | 1 | ||||
-rw-r--r-- | include/linux/spi/rm31080a_ts.h | 12 |
2 files changed, 8 insertions, 5 deletions
diff --git a/include/linux/spi/rm31080a_ctrl.h b/include/linux/spi/rm31080a_ctrl.h index 61069bf5674c..bddb03da3e56 100644 --- a/include/linux/spi/rm31080a_ctrl.h +++ b/include/linux/spi/rm31080a_ctrl.h @@ -30,6 +30,7 @@ struct rm_tch_ctrl_para { unsigned char u8_watch_dog_normal_cnt; unsigned char u8_ns_func_enable; unsigned char u8_event_report_mode; + unsigned char u8_idle_mode_thd; }; extern struct rm_tch_ctrl_para g_st_ctrl; diff --git a/include/linux/spi/rm31080a_ts.h b/include/linux/spi/rm31080a_ts.h index 9ca27b16f74f..8a07282e1702 100644 --- a/include/linux/spi/rm31080a_ts.h +++ b/include/linux/spi/rm31080a_ts.h @@ -23,7 +23,7 @@ #define TRUE 1 #define FALSE 0 #define DEBUG_DRIVER 0x01 -#define DEBUG_DRIVER_REGISTER 0x02 +#define DEBUG_REGISTER 0x02 #define RM_IOCTL_REPORT_POINT 0x1001 #define RM_IOCTL_SET_HAL_PID 0x1002 @@ -47,8 +47,8 @@ #define RM_VARIABLE_SET_WAKE_UNLOCK 0x0A #define RM_VARIABLE_DPW 0x0B #define RM_VARIABLE_NS_MODE 0x0C -#define RM_VARIABLE_TOUCHFILE_STATUS 0x0D -#define RM_VARIABLE_STYLUS_STATUS 0x0E +#define RM_VARIABLE_TOUCHFILE_STATUS 0x0D +#define RM_VARIABLE_STYLUS_STATUS 0x0E #define RM_IOCTL_GET_VARIABLE 0x1011 @@ -129,6 +129,7 @@ #define KRL_INDEX_RM_NSPARA 12 #define KRL_INDEX_RM_WRITE_IMG 13 #define KRL_INDEX_RM_TLK 14 +#define KRL_INDEX_RM_KL_TESTMODE 15 #define KRL_SIZE_SET_IDLE 128 #define KRL_SIZE_PAUSE_AUTO 64 @@ -144,7 +145,8 @@ #define KRL_SIZE_RM_SETREPTIME 32 #define KRL_SIZE_RM_NS_PARA 64 #define KRL_SIZE_RM_WRITE_IMAGE 64 -#define KRL_SIZE_RM_TLK 128 +#define KRL_SIZE_RM_TLK 128 +#define KRL_SIZE_RM_KL_TESTMODE 128 #define KRL_TBL_FIELD_POS_LEN_H 0 #define KRL_TBL_FIELD_POS_LEN_L 1 @@ -162,7 +164,7 @@ #define KRL_CMD_WRITE_W_COUNT 0x1C #define KRL_CMD_RETURN_RESULT 0x1D #define KRL_CMD_RETURN_VALUE 0x1E -#define KRL_CMD_DRAM_INIT 0x1F +#define KRL_CMD_DRAM_INIT 0x1F #define KRL_CMD_SEND_SIGNAL 0x20 |