summaryrefslogtreecommitdiff
path: root/board/bds
diff options
context:
space:
mode:
authorRandall Spangler <rspangler@chromium.org>2012-05-15 13:47:18 -0700
committerRandall Spangler <rspangler@chromium.org>2012-05-17 09:30:38 -0700
commit5907675a477a2fd8af974d0cb1619cae57a83290 (patch)
treeebe472aa4b55a572ac8914db3b85be2d0ed1b66a /board/bds
parent134f80ee0614edb146068f66d6d53eb394cc8c32 (diff)
downloadchrome-ec-5907675a477a2fd8af974d0cb1619cae57a83290.tar.gz
Add AC state change hook
And start wiring to x86_power so it can detect AC state changes (needed to enable/disable turbo). *YES*, this compiles for BDS/Daisy now... Signed-off-by: Randall Spangler <rspangler@chromium.org> BUG=chrome-os-partner:9069 TEST=plug/unplug AC power and look for "x86 AC on" / "x86 AC off" in debug log Change-Id: I8399fab9637d6635a1c615f07448fd45b86bc25f
Diffstat (limited to 'board/bds')
-rw-r--r--board/bds/board.c1
-rw-r--r--board/bds/board.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/board/bds/board.c b/board/bds/board.c
index afee7576ce..1e61f7d2b2 100644
--- a/board/bds/board.c
+++ b/board/bds/board.c
@@ -81,6 +81,7 @@ const struct gpio_info gpio_list[GPIO_COUNT] = {
GPIO_SIGNAL_NOT_IMPLEMENTED("SHUNT_1_5V_DDR"),
GPIO_SIGNAL_NOT_IMPLEMENTED("WRITE_PROTECT"),
GPIO_SIGNAL_NOT_IMPLEMENTED("LIGHTBAR_RESETn"),
+ GPIO_SIGNAL_NOT_IMPLEMENTED("AC_PRESENT"),
};
diff --git a/board/bds/board.h b/board/bds/board.h
index a72875f0b6..8d02c0926b 100644
--- a/board/bds/board.h
+++ b/board/bds/board.h
@@ -114,6 +114,7 @@ enum gpio_signal {
* depending on stuffing. */
GPIO_WRITE_PROTECT, /* Write protect input */
GPIO_LIGHTBAR_RESETn, /* Reset lightbar controllers (Proto1+) */
+ GPIO_AC_PRESENT, /* AC present signal */
/* Number of GPIOs; not an actual GPIO */
GPIO_COUNT