diff options
author | Vic (Chun-Ju) Yang <victoryang@chromium.org> | 2013-12-30 10:53:14 +0800 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-01-28 04:35:50 +0000 |
commit | 9785d09fcbc79b034e8b4f8b6a21fab418fafc3e (patch) | |
tree | 743ed349eb4debc23915f239a569e0de65f2feca /board | |
parent | aa636df6ab83d8ca08dc87c4140dceb40dd65900 (diff) | |
download | chrome-ec-9785d09fcbc79b034e8b4f8b6a21fab418fafc3e.tar.gz |
mec1322: hibernation supportstabilize-5339.B
This adds hibernation support. The chip can be waken by either GPIO or a
timer. The maximum delay allowed is ~2 hours.
BUG=chrome-os-partner:24107
TEST=hibernate and wake by GPIO
TEST=hibernate and wake by timer
BRANCH=None
Change-Id: I1e064638a5008894a002a06a738bf6104f18636d
Signed-off-by: Vic (Chun-Ju) Yang <victoryang@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/181202
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'board')
-rw-r--r-- | board/mec1322_evb/board.c | 1 | ||||
-rw-r--r-- | board/mec1322_evb/board.h | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/board/mec1322_evb/board.c b/board/mec1322_evb/board.c index cc9cc6c449..ae854af6ae 100644 --- a/board/mec1322_evb/board.c +++ b/board/mec1322_evb/board.c @@ -22,6 +22,7 @@ const struct gpio_info gpio_list[] = { {"LED3", GPIO_PORT(15), (1 << 6), GPIO_ODR_LOW, NULL}, {"PCH_SMI_L", GPIO_PORT(4), (1 << 4), GPIO_ODR_HIGH, NULL}, {"PCH_WAKE_L", GPIO_PORT(20), (1 << 0), GPIO_ODR_HIGH, NULL}, + {"S1", GPIO_PORT(6), (1 << 3), GPIO_INT_FALLING | GPIO_PULL_UP, NULL}, /* Unimplemented signals which we need to emulate for now */ GPIO_SIGNAL_NOT_IMPLEMENTED("RECOVERY_L"), GPIO_SIGNAL_NOT_IMPLEMENTED("WP"), diff --git a/board/mec1322_evb/board.h b/board/mec1322_evb/board.h index 73a861fa47..57728ca529 100644 --- a/board/mec1322_evb/board.h +++ b/board/mec1322_evb/board.h @@ -13,6 +13,7 @@ #define CONFIG_WATCHDOG_HELP #define CONFIG_FANS 1 #define CONFIG_ADC +#define CONFIG_WAKE_PIN GPIO_S1 /* Modules we want to exclude */ #undef CONFIG_EEPROM @@ -40,6 +41,7 @@ enum gpio_signal { GPIO_LED3, GPIO_PCH_SMI_L, /* SMI output */ GPIO_PCH_WAKE_L, /* PCH wake pin */ + GPIO_S1, /* Switch S1 */ /* * Signals which aren't implemented on MEC1322 eval board but we'll * emulate anyway, to make it more convenient to debug other code. |