From 7abe696281506f7cddfd0e107c1fb34928ef8728 Mon Sep 17 00:00:00 2001 From: Dave Parker Date: Thu, 23 May 2013 13:45:15 -0700 Subject: [PATCH] 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 Change-Id: Iacb3bf09e7fc6b0d58148f014bc8e4e721151228 Reviewed-on: https://gerrit.chromium.org/gerrit/56502 Tested-by: Dave Parker Reviewed-by: Shawn Nematbakhsh Commit-Queue: Dave Parker --- board/peppy/board.c | 6 ++++++ board/peppy/board.h | 5 +++++ 2 files changed, 11 insertions(+) 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 };