summaryrefslogtreecommitdiff
path: root/power/skylake.c
diff options
context:
space:
mode:
authorVijay Hiremath <vijay.p.hiremath@intel.com>2015-05-12 18:33:39 -0700
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-05-18 23:48:17 +0000
commitcb29daa58c0fa5866a7847c454967ef0376c7688 (patch)
tree0e1a19a0e549e523fea174772119fbf5a26290d6 /power/skylake.c
parent628bf151769308e99f6019ce0bbd143461b57046 (diff)
downloadchrome-ec-cb29daa58c0fa5866a7847c454967ef0376c7688.tar.gz
Skylake: Fix for "apreset cold" EC console command
Debounce time for the GPIO SYS_RESET_L is 16ms hence increased the time delay between SYS_RESET_L pin toggling to 20ms. BUG=chrome-os-partner:40246 TEST=Tested "apreset cold" EC console command on Kunimitsu BRANCH=none Change-Id: If17229ce485de708b550ec84939e2696e451cb0c Signed-off-by: Vijay Hiremath <vijay.p.hiremath@intel.com> Reviewed-on: https://chromium-review.googlesource.com/270776 Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'power/skylake.c')
-rw-r--r--power/skylake.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/power/skylake.c b/power/skylake.c
index 202dce628f..bce0069472 100644
--- a/power/skylake.c
+++ b/power/skylake.c
@@ -68,7 +68,8 @@ void chipset_reset(int cold_reset)
if (gpio_get_level(GPIO_SYS_RESET_L) == 0)
return;
gpio_set_level(GPIO_SYS_RESET_L, 0);
- udelay(100);
+ /* Debounce time for SYS_RESET_L is 16 ms */
+ udelay(20 * MSEC);
gpio_set_level(GPIO_SYS_RESET_L, 1);
} else {
/*