[Issue][Optimize][Boot] Modify long-pressing PWR key for 2.2s to boot-up.
Defect:
The PWR Key will be powered on when it is impacted
The default long-pressing PWR key to boot-up time is 0.5 seconds.
Root cause:
Long-pressing PWR key to boot-up time is to small.
How to fix:
Modify the boot-up time to 2.2 seconds.
Impacted group:
Boot-up
RiskArea:
PWR key
Reference:
http://review3.arimacomm.com.tw:8080/c/kernel/lk/+/101939
Change-Id: I0e943b6a84b6856a2d239c4c1fab8a4bcbc76ffd
diff --git a/platform/msm_shared/shutdown_detect.c b/platform/msm_shared/shutdown_detect.c
old mode 100644
new mode 100755
index d574b8d..e52d4de
--- a/platform/msm_shared/shutdown_detect.c
+++ b/platform/msm_shared/shutdown_detect.c
@@ -43,7 +43,9 @@
* Set long press wait time to 500ms to benefit boot time.
*/
#define MPM_SLEEP_TIMETICK_COUNT 0x8000
-#define PWRKEY_LONG_PRESS_COUNT 0x4000
+//<2019/01/15-RexLu, Modify long-pressing PWR key for 2.2s to boot-up.
+#define PWRKEY_LONG_PRESS_COUNT 0x1199A //2.2sec
+//>2019/01/15-RexLu
#define QPNP_DEFAULT_TIMEOUT 250
#define PWRKEY_DETECT_FREQUENCY 50