summaryrefslogtreecommitdiff
path: root/power/rockchip.c
diff options
context:
space:
mode:
authorAlexandru M Stan <amstan@chromium.org>2014-07-23 13:59:18 -0700
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2014-07-26 00:01:13 +0000
commit762ad07cffa1dc0326d68d7a94df0323a6e4de10 (patch)
tree34a0d1d6d2ba7a4bf92e3fd1cb4fac512f631750 /power/rockchip.c
parent37380d2312da43c1aedde227a504edb757f83996 (diff)
downloadchrome-ec-762ad07cffa1dc0326d68d7a94df0323a6e4de10.tar.gz
veyron: fixed SUSPEND_L line
Pulled down line so it's not so erratic. Fixes the issue where the EC doesn't know what state the AP is in. BUG=None TEST=EC should report S0 correctly(not S3 all the time). `power on` and `power off` will also work correctly(instead of doing absolutelly nothing). BRANCH=None Change-Id: I69bd17b39d2bd8f7f0456c4babc4ad9f8f34c8bd Signed-off-by: Alexandru M Stan <amstan@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/209668 Reviewed-by: Chris Zhong <zyw@rock-chips.com>
Diffstat (limited to 'power/rockchip.c')
-rw-r--r--power/rockchip.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/power/rockchip.c b/power/rockchip.c
index 81555ed7df..b6eecdc437 100644
--- a/power/rockchip.c
+++ b/power/rockchip.c
@@ -362,7 +362,8 @@ static void power_on(void)
uint64_t t;
/* enable interrupt */
- gpio_set_flags(GPIO_SUSPEND_L, GPIO_INPUT | GPIO_INT_BOTH);
+ gpio_set_flags(GPIO_SUSPEND_L, GPIO_INPUT | GPIO_INT_BOTH
+ | GPIO_PULL_DOWN);
/* Make sure we de-assert the PMI_SOURCE and AP_RESET_L pin. */
set_pmic_source(1);
set_ap_reset(0);