diff options
author | Rong Chang <rongchang@chromium.org> | 2012-07-05 16:07:37 +0800 |
---|---|---|
committer | Gerrit <chrome-bot@google.com> | 2012-07-11 06:55:27 -0700 |
commit | 61e0e5508a559cc9935951be4f68455809300a2e (patch) | |
tree | 5dcc14d2da3dc8dbcd9d92827e567f54b81252fa /board/snow | |
parent | e904d1a78a1cadfb8e4f4924c04dd82b89d72ae8 (diff) | |
download | chrome-ec-61e0e5508a559cc9935951be4f68455809300a2e.tar.gz |
Get AC state from GPIO instead of PMU
Signed-off-by: Rong Chang <rongchang@chromium.org>
BUG=none
TEST=manual
plug and unplug the ac adapter, check charging state
Change-Id: I933976d79bbd2da59449f0b9208656897713ebf2
Reviewed-on: https://gerrit.chromium.org/gerrit/27146
Reviewed-by: Simon Glass <sjg@chromium.org>
Commit-Ready: Rong Chang <rongchang@chromium.org>
Tested-by: Rong Chang <rongchang@chromium.org>
Diffstat (limited to 'board/snow')
-rw-r--r-- | board/snow/board.c | 1 | ||||
-rw-r--r-- | board/snow/board.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/board/snow/board.c b/board/snow/board.c index fcaeb77d1b..52a4cac8a8 100644 --- a/board/snow/board.c +++ b/board/snow/board.c @@ -52,6 +52,7 @@ const struct gpio_info gpio_list[GPIO_COUNT] = { {"KB_IN06", GPIO_C, (1<<15), GPIO_KB_INPUT, matrix_interrupt}, {"KB_IN07", GPIO_D, (1<<2), GPIO_KB_INPUT, matrix_interrupt}, /* Other inputs */ + {"AC_PWRBTN_L", GPIO_A, (1<<0), GPIO_INT_BOTH, NULL}, {"SPI1_NSS", GPIO_A, (1<<4), GPIO_PULL_UP, NULL}, /* Outputs */ diff --git a/board/snow/board.h b/board/snow/board.h index 5a3266fb84..3bba2ec48e 100644 --- a/board/snow/board.h +++ b/board/snow/board.h @@ -76,6 +76,7 @@ enum gpio_signal { GPIO_KB_IN06, GPIO_KB_IN07, /* Other inputs */ + GPIO_AC_PWRBTN_L, GPIO_SPI1_NSS, /* Outputs */ GPIO_SPI1_MISO, |