diff options
author | Dave Parker <dparker@chromium.org> | 2013-05-23 13:45:15 -0700 |
---|---|---|
committer | ChromeBot <chrome-bot@google.com> | 2013-06-03 15:30:41 -0700 |
commit | 7abe696281506f7cddfd0e107c1fb34928ef8728 (patch) | |
tree | dc09d612c632ccca5c52c30b1fcd1a6435d80066 | |
parent | b4a958918747c345ddf5a72d69c72454bfd2d0c9 (diff) | |
download | chrome-ec-7abe696281506f7cddfd0e107c1fb34928ef8728.tar.gz |
Peppy: Add GPIOs for power and battery LEDs
Based on 2013-05-23 schematic.
BUG=chrome-os-partner:19640
BRANCH=none
TEST=none
Signed-off-by: Dave Parker <dparker@chromium.org>
Change-Id: Iacb3bf09e7fc6b0d58148f014bc8e4e721151228
Reviewed-on: https://gerrit.chromium.org/gerrit/56502
Tested-by: Dave Parker <dparker@chromium.org>
Reviewed-by: Shawn Nematbakhsh <shawnn@chromium.org>
Commit-Queue: Dave Parker <dparker@chromium.org>
-rw-r--r-- | board/peppy/board.c | 6 | ||||
-rw-r--r-- | board/peppy/board.h | 5 |
2 files changed, 11 insertions, 0 deletions
diff --git a/board/peppy/board.c b/board/peppy/board.c index 69974ced0c..ed1f5b48b4 100644 --- a/board/peppy/board.c +++ b/board/peppy/board.c @@ -110,6 +110,12 @@ const struct gpio_info gpio_list[GPIO_COUNT] = { {"PCH_SUSACK_L", LM4_GPIO_F, (1<<3), GPIO_OUT_HIGH, NULL}, {"PCH_RTCRST_L", LM4_GPIO_F, (1<<6), GPIO_HI_Z, NULL}, {"PCH_SRTCRST_L", LM4_GPIO_F, (1<<7), GPIO_HI_Z, NULL}, + + /* HEY: LED GPIOs need to sync up to 9mA. Leave off for now. */ + {"BAT_LED0", LM4_GPIO_D, (1<<0), GPIO_HI_Z, NULL}, + {"BAT_LED1", LM4_GPIO_N, (1<<4), GPIO_HI_Z, NULL}, + {"PWR_LED0", LM4_GPIO_D, (1<<1), GPIO_HI_Z, NULL}, + {"PWR_LED1", LM4_GPIO_N, (1<<6), GPIO_HI_Z, NULL}, }; /* ADC channels. Must be in the exactly same order as in enum adc_channel. */ diff --git a/board/peppy/board.h b/board/peppy/board.h index 9d13fd326a..f330bbd47e 100644 --- a/board/peppy/board.h +++ b/board/peppy/board.h @@ -131,6 +131,11 @@ enum gpio_signal { GPIO_PCH_RTCRST_L, /* Not supposed to be here */ GPIO_PCH_SRTCRST_L, /* Not supposed to be here */ + GPIO_BAT_LED0, /* Battery charging LED - green */ + GPIO_BAT_LED1, /* Battery charging LED - red */ + GPIO_PWR_LED0, /* Power LED - green */ + GPIO_PWR_LED1, /* Power LED - red */ + /* Number of GPIOs; not an actual GPIO */ GPIO_COUNT }; |