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>
This commit is contained in:
Dave Parker
2013-05-23 13:45:15 -07:00
committed by ChromeBot
parent b4a9589187
commit 7abe696281
2 changed files with 11 additions and 0 deletions

View File

@@ -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. */

View File

@@ -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
};