From de510fcccc62897721c0778edb8d8ffbb2d0a1d0 Mon Sep 17 00:00:00 2001 From: haojl2 Date: Sat, 22 Jun 2019 21:12:54 +0800 Subject: [PATCH] himax_v2_mmi: Set panel info in code. For 0 flash panel, read IC info when power-on is not stable. So set those parameters in driver code. This is a workaround for this issue. Need revert later. Change-Id: Ie61c2f90ddc5889f814be3d11f98770d073e7Montana Signed-off-by: haojl2 Reviewed-on: https://gerrit.mot.com/1375005 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Jianqi Yang Submit-Approved: Jira Key --- .../touchscreen/himax_v2_mmi/himax_common.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/input/touchscreen/himax_v2_mmi/himax_common.h b/drivers/input/touchscreen/himax_v2_mmi/himax_common.h index ecdb667b0702..e71b9888424e 100644 --- a/drivers/input/touchscreen/himax_v2_mmi/himax_common.h +++ b/drivers/input/touchscreen/himax_v2_mmi/himax_common.h @@ -78,7 +78,7 @@ /*#define HX_PROTOCOL_A*/ /* for MTK special platform.If turning on,it will report to system by using specific format. */ /*#define HX_RESUME_HW_RESET*/ #define HX_PROTOCOL_B_3PA -/*#define HX_FIX_TOUCH_INFO*/ /* if open, you need to change the touch info in the fix_touch_info*/ +#define HX_FIX_TOUCH_INFO /* if open, you need to change the touch info in the fix_touch_info*/ /*#define HX_ZERO_FLASH*/ /*#if defined(HX_ZERO_FLASH)*/ /*#define HX_CODE_OVERLAY*/ @@ -203,17 +203,17 @@ enum cell_type { }; #ifdef HX_FIX_TOUCH_INFO enum fix_touch_info { - FIX_HX_RX_NUM = 0, - FIX_HX_TX_NUM = 0, + FIX_HX_RX_NUM = 36, + FIX_HX_TX_NUM = 18, FIX_HX_BT_NUM = 0, - FIX_HX_X_RES = 0, - FIX_HX_Y_RES = 0, - FIX_HX_MAX_PT = 0, + FIX_HX_X_RES = 1080, + FIX_HX_Y_RES = 2280, + FIX_HX_MAX_PT = 10, FIX_HX_XY_REVERSE = false, FIX_HX_INT_IS_EDGE = true, #ifdef HX_TP_PROC_2T2R - FIX_HX_RX_NUM_2 = 0, - FIX_HX_TX_NUM_2 = 0, + FIX_HX_RX_NUM_2 = 36, + FIX_HX_TX_NUM_2 = 18, #endif }; #endif