From f7c01beb7391a077ad19b751f3d01e9454c753e9 Mon Sep 17 00:00:00 2001 From: YH Huang Date: Fri, 26 Jun 2015 14:37:54 +0800 Subject: [PATCH] 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 Reviewed-on: https://chromium-review.googlesource.com/282153 Reviewed-by: Rong Chang --- power/mediatek.c | 10 +++++----- 1 file 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