summaryrefslogtreecommitdiff
path: root/board/oak/board.h
diff options
context:
space:
mode:
authorBen Lok <ben.lok@mediatek.com>2015-10-28 10:43:49 +0800
committerchrome-bot <chrome-bot@chromium.org>2015-11-03 09:08:25 -0800
commit37ff1d9696ecd8bcce67368ba4c40c8e17b55e7b (patch)
treedf1acb44d796a7a43c1655e505353c87dac67690 /board/oak/board.h
parent24316025756c6ccdccb06a35e0f343780ccfe0f0 (diff)
downloadchrome-ec-37ff1d9696ecd8bcce67368ba4c40c8e17b55e7b.tar.gz
oak: using only one standby mode wakeup source.
Before Oak rev4, it defines 2 wakeup source EC_WAKE(PA0), EC_PWR_BTN_L(PB5). Due to the wakeup source limitation of STM32F0 (http://goo.gl/VQk9GV), Oak can only use one wakeup source, because EC_PWR_BTN_L is low-active and it is kept high always. The HW & SW should be changed after rev4: Using PA0 as wakeup source only, instead of both (PA0 & PB5). BRANCH=none BUG=chrome-os-partner:46670 TEST=Manual on oak rev4 with HW rework. Detach PD power adapter, run 'hibernate' on EC console, make sure that both EC and PD go to hibernate, verify the following cases individually: 1. Press power button and verify that both EC and PD wake. 2. Plug PD power adapter and verfy that both EC and PD wake. Change-Id: Ief37aa1f11a84dd358875f22fa35c484b10bc388 Signed-off-by: Ben Lok <ben.lok@mediatek.com> Reviewed-on: https://chromium-review.googlesource.com/309246 Reviewed-by: Rong Chang <rongchang@chromium.org>
Diffstat (limited to 'board/oak/board.h')
-rw-r--r--board/oak/board.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/board/oak/board.h b/board/oak/board.h
index 73a979a94c..52814fbf63 100644
--- a/board/oak/board.h
+++ b/board/oak/board.h
@@ -46,7 +46,11 @@
* POWER_BUTTON_L: PB5 - WKUP6
*/
#define CONFIG_HIBERNATE
-#define CONFIG_HIBERNATE_WAKEUP_PINS (STM32_PWR_CSR_EWUP1|STM32_PWR_CSR_EWUP6)
+#if BOARD_REV <= OAK_REV4
+#define CONFIG_HIBERNATE_WAKEUP_PINS (STM32_PWR_CSR_EWUP6)
+#else
+#define CONFIG_HIBERNATE_WAKEUP_PINS (STM32_PWR_CSR_EWUP1)
+#endif /* BOARD_REV */
#define CONFIG_HOST_COMMAND_STATUS
#define CONFIG_HOSTCMD_PD
#define CONFIG_HOSTCMD_PD_PANIC