From 4a7bfe7c43c6974d37590c7a4debb5f57f60460a Mon Sep 17 00:00:00 2001 From: Randall Spangler Date: Fri, 3 Feb 2012 16:30:45 -0800 Subject: [PATCH] Increase simulated power button duration in x86power s0 command Signed-off-by: Randall Spangler BUG=chrome-os-partner:7906 TEST=from ec console, 'x86power s0' should power the system on reliably. Change-Id: Idebfc8b4e86587b540934d245649f912ccb4aa95 --- common/x86_power.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/common/x86_power.c b/common/x86_power.c index e272e63bac..8f791e3236 100644 --- a/common/x86_power.c +++ b/common/x86_power.c @@ -239,10 +239,14 @@ void x86_power_task(void) /* TODO: this should be in response to a power button * event, not causing one. For initial bringup, * simulate the event. */ + /* Assert power button */ gpio_set_level(GPIO_PCH_PWRBTNn, 0); - /* Wait 16ms after asserting PWRBTN# */ - usleep(16000); + + /* Wait at least 16ms after asserting PWRBTN#. More + * is better for now, apparently. */ + usleep(100000); + /* Release power button */ gpio_set_level(GPIO_PCH_PWRBTNn, 1);