summaryrefslogtreecommitdiff
path: root/board/bds
diff options
context:
space:
mode:
authorRandall Spangler <rspangler@chromium.org>2012-03-15 12:27:27 -0700
committerRandall Spangler <rspangler@chromium.org>2012-03-15 12:42:11 -0700
commitc72f66c050b7754c36436583272965b9ca4fd850 (patch)
tree8f532eeb86274628a542d38ccd2bc6012a958e38 /board/bds
parent38d1b2e8bad5b9d4698963dbb63684aacbd23ec0 (diff)
downloadchrome-ec-c72f66c050b7754c36436583272965b9ca4fd850.tar.gz
Add wake signal to PCH
This works similar to SCI/SMI events, but triggers a separate level-sensitive signal to the PCH instead. Signed-off-by: Randall Spangler <rspangler@chromium.org> BUG=chrome-os-partner:8514 TEST=manual From EC console: gpioget PCH_WAKEn --> should be 1 hostevent wake 0x1 close lid switch (with magnet) hostevent -> should show wake mask 0x1, raw events 0x1 gpioget PCH_WAKEn --> should be 0 hostevent clear 0x1 hostevent -> should show raw events 0 gpioget PCH_WAKEn --> should be 1 Change-Id: I29832c1dc30239a98987578f07dfeb25791dde11
Diffstat (limited to 'board/bds')
-rw-r--r--board/bds/board.c2
-rw-r--r--board/bds/board.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/board/bds/board.c b/board/bds/board.c
index 8f5013cafc..7be3ecbc17 100644
--- a/board/bds/board.c
+++ b/board/bds/board.c
@@ -42,7 +42,7 @@ const struct gpio_info gpio_list[GPIO_COUNT] = {
/* Outputs */
{"DEBUG_LED", LM4_GPIO_A, (1<<7), GPIO_OUT_LOW, NULL},
/* Unimplemented signals which we need to emulate for now */
- GPIO_SIGNAL_NOT_IMPLEMENTED("PCH_LID_SWITCHn"),
+ GPIO_SIGNAL_NOT_IMPLEMENTED("PCH_WAKEn"),
GPIO_SIGNAL_NOT_IMPLEMENTED("PCH_PWRBTNn"),
GPIO_SIGNAL_NOT_IMPLEMENTED("PCH_BKLTEN"),
GPIO_SIGNAL_NOT_IMPLEMENTED("PCH_SLP_An"),
diff --git a/board/bds/board.h b/board/bds/board.h
index 22f7ebc45c..dd96a58879 100644
--- a/board/bds/board.h
+++ b/board/bds/board.h
@@ -91,7 +91,7 @@ enum gpio_signal {
GPIO_DEBUG_LED, /* Debug LED */
/* Signals which aren't implemented on BDS but we'll emulate anyway, to
* make it more convenient to debug other code. */
- GPIO_PCH_LID_SWITCHn, /* Lid switch output to PCH */
+ GPIO_PCH_WAKEn, /* Wake output to PCH */
GPIO_PCH_PWRBTNn, /* Power button output to PCH */
GPIO_PCH_BKLTEN, /* Backlight enable signal from PCH */