summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYH Huang <yh.huang@mediatek.com>2015-06-26 14:37:54 +0800
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-08-03 04:02:15 +0000
commitf7c01beb7391a077ad19b751f3d01e9454c753e9 (patch)
treec5d1c9b0a13abbfa693da2a55079fd3a98e9ef22
parent37b65d5c8c9400049d17a9349ad0b55f42b8203b (diff)
downloadchrome-ec-f7c01beb7391a077ad19b751f3d01e9454c753e9.tar.gz
oak: power: Set 10s for long power key press to force shutdown
In order to pass the test case "firmware_ECPowerButton", I change the value of DELAY_FORCE_SHUTDOWN from 11s to 10s. The test case holds down power button about 10s to shut down without powerd. BRANCH=none BUG=none TEST=manual run "firmware_ECPowerButton" test case. Change-Id: I3da93769f1cb52b04c447df9a7795d3c28ab2bf0 Signed-off-by: YH Huang <yh.huang@mediatek.com> Reviewed-on: https://chromium-review.googlesource.com/282153 Reviewed-by: Rong Chang <rongchang@chromium.org>
-rw-r--r--power/mediatek.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/power/mediatek.c b/power/mediatek.c
index 8cecae332d..f1205a9f2f 100644
--- a/power/mediatek.c
+++ b/power/mediatek.c
@@ -12,14 +12,14 @@
*
* When powered off:
* - Press pwron turns on the AP
- * - Hold pwron turns on the AP, and then 9s later turns it off and leaves
+ * - Hold pwron turns on the AP, and then 10s later turns it off and leaves
* it off until pwron is released and pressed again
*
* When powered on:
* - The PMIC PWRON signal is released <= 1 second after the power button is
* released
- * - Holding pwron for 11s powers off the AP
- * - Pressing and releasing pwron within that 11s is ignored
+ * - Holding pwron for 10s powers off the AP
+ * - Pressing and releasing pwron within that 10s is ignored
* - If POWER_GOOD is dropped by the AP, then we power the AP off
* - If SUSPEND_L goes low, enter suspend mode.
*
@@ -49,7 +49,7 @@
#define IN_SUSPEND POWER_SIGNAL_MASK(MTK_SUSPEND_ASSERTED)
/* Long power key press to force shutdown */
-#define DELAY_FORCE_SHUTDOWN (11000 * MSEC) /* 11 seconds */
+#define DELAY_FORCE_SHUTDOWN (10000 * MSEC) /* 10 seconds */
/*
* The minimum time to assert the PMIC PWRON pin is 20ms.
@@ -82,7 +82,7 @@
* into the inner loop, waiting for next event to occur (power button
* press or POWER_GOOD == 0).
*/
-#define DELAY_SHUTDOWN_ON_POWER_HOLD (11000 * MSEC) /* 11 seconds */
+#define DELAY_SHUTDOWN_ON_POWER_HOLD (10000 * MSEC) /* 10 seconds */
/*
* The hold time for pulling down the PMIC_WARM_RESET_H pin so that