From 8cb7670b00ec16eab82bfd8dc66f2905eb8a16dc Mon Sep 17 00:00:00 2001 From: Shawn Nematbakhsh Date: Thu, 23 Jul 2015 10:56:41 -0700 Subject: [PATCH] glados: Add LED control GPIOs LEDs should be under control of the mec1322 specialized LED control unit, but it's not yet functional. In order to test LEDs for the upcoming build, add GPIOs which can be toggled through the EC console or ectool. BUG=chrome-os-partner:40848 TEST=Verify `gpioset CHARGE_LED_1 1` turns LED red. Verify `gpioset CHARGE_LED_2 1` turns LED green. BRANCH=None Signed-off-by: Shawn Nematbakhsh Change-Id: I64b5109e10aeb6a1f38ae9410dc5205f4cc6a117 Reviewed-on: https://chromium-review.googlesource.com/287675 Reviewed-by: Alec Berg --- board/glados/gpio.inc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/board/glados/gpio.inc b/board/glados/gpio.inc index ef38331675..c8dd407d12 100644 --- a/board/glados/gpio.inc +++ b/board/glados/gpio.inc @@ -93,6 +93,14 @@ GPIO(BOARD_ID2, PIN(10), GPIO_INPUT) GPIO(PVT_CS0, PIN(146), GPIO_ODR_HIGH) GPIO(SYS_RESET_L, PIN(121), GPIO_ODR_HIGH) +/* + * TODO(crosbug.com/p/40848): These LEDs should be under control of the mec1322 + * LED control unit. Remove these GPIO definitions once the LED control unit + * is functional. + */ +GPIO(CHARGE_LED_1, PIN(155), GPIO_OUT_LOW) +GPIO(CHARGE_LED_2, PIN(156), GPIO_OUT_LOW) + /* Alternate functions GPIO definitions */ /* GPIO162(UART_RX), GPIO165(UART_TX) */