diff options
author | Chris Zhong <zyw@rock-chips.com> | 2014-11-10 00:57:15 -0800 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-11-13 04:23:22 +0000 |
commit | 208f28fac1c24ed9c673ebfe29f1190edece57c9 (patch) | |
tree | 1aee962589d5aaceb86806b0e58365eb4f6c87fa /power | |
parent | 48b8c34aedd018ff603f00c1daa97a382bd7055e (diff) | |
download | chrome-ec-208f28fac1c24ed9c673ebfe29f1190edece57c9.tar.gz |
Jerry: modify gpio config, hibernate
Added hibernate wakeup pin(EC_WAKE) that covers both AC_PRESENT and LID_OPEN. It pulses a
rising edge when either of them have a rising edge.
The power button was also inverted to handle hibernation better, now it's low
except when pressed it temporarly goes high.
BRANCH=None
BUG=chrome-os-partner:33269 chrome-os-partner:32782
TEST=make BOARD=jerry
Try hibernating, all wakeup sources should work, it shouldn't stay hibernated.
All signals(AC, lid, power button) should work equally well as in pinky.
Change-Id: I894135bdfd5600919296f7510dc9cd1acd567ddc
Signed-off-by: Chris Zhong <zyw@rock-chips.com>
Signed-off-by: Alexandru M Stan <amstan@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/228763
Diffstat (limited to 'power')
-rw-r--r-- | power/rockchip.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/power/rockchip.c b/power/rockchip.c index 1db537cb2a..2d71e2f697 100644 --- a/power/rockchip.c +++ b/power/rockchip.c @@ -159,17 +159,6 @@ static void set_pmic_source(int asserted) } /** - * Power on or off the VCC_5V - * - * @param asserted Assert (=1) or deassert (=0) the signal. - */ -static void set_5v_power(int asserted) -{ - /* Signal is active-high */ - gpio_set_level(GPIO_5V_DRV, asserted ? 1 : 0); -} - -/** * Check for some event triggering the shutdown. * * It can be either a long power button press or a shutdown triggered from the @@ -384,8 +373,6 @@ static void power_on(void) usleep(PMIC_RESET_HOLD_TIME); set_pmic_reset(0); set_pmic_warm_reset(0); - - set_5v_power(1); } /** @@ -424,7 +411,6 @@ static int wait_for_power_button_release(unsigned int timeout_us) */ static void power_off(void) { - set_5v_power(0); /* Call hooks before we drop power rails */ hook_notify(HOOK_CHIPSET_SHUTDOWN); /* switch off all rails */ |