From 762ad07cffa1dc0326d68d7a94df0323a6e4de10 Mon Sep 17 00:00:00 2001 From: Alexandru M Stan Date: Wed, 23 Jul 2014 13:59:18 -0700 Subject: 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 Reviewed-on: https://chromium-review.googlesource.com/209668 Reviewed-by: Chris Zhong --- power/rockchip.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'power/rockchip.c') 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); -- cgit v1.2.1