summaryrefslogtreecommitdiff
path: root/chip/mec1322/registers.h
diff options
context:
space:
mode:
authorShawn Nematbakhsh <shawnn@chromium.org>2015-07-15 17:13:22 -0700
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-07-16 05:15:29 +0000
commit78016324acf20e06abebd9b82a9a88b1eed2bdf6 (patch)
treefb09f9d63c2bfdce77b45fe3dd49128a43217ae4 /chip/mec1322/registers.h
parente7bebf7c805e160bfd633da5c8357527a4fee9f6 (diff)
downloadchrome-ec-78016324acf20e06abebd9b82a9a88b1eed2bdf6.tar.gz
mec1322: Allow multiple hibernate wake sources
Allow multiple GPIOs to wake the EC from hibernate by requiring boards to define hibernate_wake_pins and hibernate_wake_pins_used. In addition, clean up the GPIO-skipping hibernate code, and skip setting PCH_RTCRST as an input due to a bug on certain boards. BUG=chrome-os-partner:42104 TEST=Manual on Glados. Run 'hibernate' from EC console, verify that EC wakes with power button press or with "dut-control lid_open:no". BRANCH=None Signed-off-by: Shawn Nematbakhsh <shawnn@chromium.org> Change-Id: I13a6e062393cab8ed7129eda253585951f771109 Reviewed-on: https://chromium-review.googlesource.com/285924 Reviewed-by: Alec Berg <alecaberg@chromium.org>
Diffstat (limited to 'chip/mec1322/registers.h')
-rw-r--r--chip/mec1322/registers.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/chip/mec1322/registers.h b/chip/mec1322/registers.h
index d1d88d20ac..aab3da935c 100644
--- a/chip/mec1322/registers.h
+++ b/chip/mec1322/registers.h
@@ -479,4 +479,8 @@ typedef volatile struct mec1322_dma_regs mec1322_dma_regs_t;
#define MEC1322_IRQ_RTC 91
#define MEC1322_IRQ_RTC_ALARM 92
+/* Wake pin definitions, defined at board-level */
+extern const enum gpio_signal hibernate_wake_pins[];
+extern const int hibernate_wake_pins_used;
+
#endif /* __CROS_EC_REGISTERS_H */