summaryrefslogtreecommitdiff
path: root/board/jerry/board.h
diff options
context:
space:
mode:
authorChris Zhong <zyw@rock-chips.com>2014-11-10 00:57:15 -0800
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2014-11-13 04:23:22 +0000
commit208f28fac1c24ed9c673ebfe29f1190edece57c9 (patch)
tree1aee962589d5aaceb86806b0e58365eb4f6c87fa /board/jerry/board.h
parent48b8c34aedd018ff603f00c1daa97a382bd7055e (diff)
downloadchrome-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 'board/jerry/board.h')
-rw-r--r--board/jerry/board.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/board/jerry/board.h b/board/jerry/board.h
index 398a56b62a..5a05393717 100644
--- a/board/jerry/board.h
+++ b/board/jerry/board.h
@@ -28,6 +28,7 @@
#define CONFIG_LOW_POWER_IDLE
#define CONFIG_LOW_POWER_S0
#define CONFIG_POWER_BUTTON
+#define CONFIG_POWER_BUTTON_ACTIVE_STATE 1
#define CONFIG_POWER_COMMON
#define CONFIG_PWM
#define CONFIG_SPI
@@ -35,6 +36,8 @@
#define CONFIG_VBOOT_HASH
#undef CONFIG_WATCHDOG_HELP
+#define CONFIG_HIBERNATE_WAKEUP_PINS (STM32_PWR_CSR_EWUP1 | STM32_PWR_CSR_EWUP6)
+
#ifndef __ASSEMBLER__
/* 48 MHz SYSCLK clock frequency */
@@ -57,7 +60,6 @@
enum power_signal {
RK_POWER_GOOD = 0,
RK_SUSPEND_ASSERTED,
-
/* Number of power signals */
POWER_SIGNAL_COUNT
};