diff options
author | Yen Lin <yelin@nvidia.com> | 2013-11-21 17:21:17 -0800 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2013-11-23 02:33:43 +0000 |
commit | b29aba19211508a517e75fb535a58979e5182f9a (patch) | |
tree | f92c071fbdd21910c37a2bb8dd7fdd23b69468f9 | |
parent | 2f084199ca9f17e7a79656d03afe313eb039721f (diff) | |
download | chrome-ec-b29aba19211508a517e75fb535a58979e5182f9a.tar.gz |
nyan: change power button long press timeout to 10.2 seconds
The worst case of the ONKEY long press timeout of AS3722 PMIC is
10.08 seconds, according to AMS. Increase of such timeout defines
to 10.2 seconds.
BUG=nvbug 1372063
BRANCH=nyan
TEST=verified on Venice2 boards that were failing to turn off power
with 9 seconds timeout
Change-Id: I65c8ebaab0523874ceff621cdbda72d8b44f4864
Signed-off-by: Yen Lin <yelin@nvidia.com>
Reviewed-on: https://chromium-review.googlesource.com/177611
Reviewed-by: Randall Spangler <rspangler@chromium.org>
-rw-r--r-- | power/tegra.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/power/tegra.c b/power/tegra.c index ed756ed843..99c350c658 100644 --- a/power/tegra.c +++ b/power/tegra.c @@ -43,7 +43,7 @@ #define CPRINTF(format, args...) cprintf(CC_CHIPSET, format, ## args) /* Long power key press to force shutdown */ -#define DELAY_FORCE_SHUTDOWN (9 * SECOND) +#define DELAY_FORCE_SHUTDOWN (10200 * MSEC) /* 10.2 seconds */ /* * If the power key is pressed to turn on, then held for this long, we @@ -53,7 +53,7 @@ * into the inner loop, waiting for next event to occur (power button * press or XPSHOLD == 0). */ -#define DELAY_SHUTDOWN_ON_POWER_HOLD (9 * SECOND) +#define DELAY_SHUTDOWN_ON_POWER_HOLD (10200 * MSEC) /* 10.2 seconds */ /* Maximum delay after power button press before we deassert GPIO_PMIC_PWRON */ #define DELAY_RELEASE_PWRON SECOND /* 1s */ |