summaryrefslogtreecommitdiff
path: root/board/poppy/gpio.inc
diff options
context:
space:
mode:
authorNicolas Boichat <drinkcat@google.com>2017-05-08 15:46:57 +0800
committerchrome-bot <chrome-bot@chromium.org>2017-05-18 06:03:52 -0700
commit0b077ad67173f11f8816b01213bc09f622326799 (patch)
treec788524e881233bb1c2e4691a56cea8f9b0db1bc /board/poppy/gpio.inc
parent6959f42da69f0a7e1c496e14cca48893c3d2fd89 (diff)
downloadchrome-ec-0b077ad67173f11f8816b01213bc09f622326799.tar.gz
poppy/soraka: Basic LED support
This applies the simple rule: Charging port led is on, other is off. When charging, LED is amber, otherwise it's white. Open questions: - Do we want blinking on low battery? On which side(s)? In which AP states? - No blinking in S3? That's ok? - Need to add led blinking support for special debug mode - Recovery mode blinking does not work as LED is powered from a rail that is not on when AP is in S5. BRANCH=none BUG=b:37970194 TEST=Charge from one side, led is first amber, then white when battery is full. Switch side, led behaves the same way. Change-Id: I0531d72cd621148c0d0cce57a32b7310792d9936 Reviewed-on: https://chromium-review.googlesource.com/497372 Commit-Ready: Nicolas Boichat <drinkcat@chromium.org> Tested-by: Nicolas Boichat <drinkcat@chromium.org> Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'board/poppy/gpio.inc')
-rw-r--r--board/poppy/gpio.inc3
1 files changed, 0 insertions, 3 deletions
diff --git a/board/poppy/gpio.inc b/board/poppy/gpio.inc
index 7c33a5fe05..fb8aed6b77 100644
--- a/board/poppy/gpio.inc
+++ b/board/poppy/gpio.inc
@@ -105,14 +105,11 @@ GPIO(USB_C0_TCPC_PWR, PIN(8, 4), GPIO_OUT_LOW) /* Enable C0 TCPC Power */
GPIO(USB2_OTG_ID, PIN(A, 1), GPIO_ODR_LOW) /* OTG ID */
GPIO(USB2_OTG_VBUSSENSE, PIN(9, 5), GPIO_OUT_LOW) /* OTG VBUS Sense */
-#ifdef BOARD_SORAKA
/* LEDs (2 colors on each port) */
-/* TODO(b/35585396): Implement. */
GPIO(LED_YELLOW_C0, PIN(3, 2), GPIO_OUT_LOW)
GPIO(LED_WHITE_C0, PIN(C, 6), GPIO_OUT_LOW)
GPIO(LED_YELLOW_C1, PIN(3, 1), GPIO_OUT_LOW)
GPIO(LED_WHITE_C1, PIN(3, 0), GPIO_OUT_LOW)
-#endif
/* Board ID */
GPIO(BOARD_VERSION1, PIN(C, 4), GPIO_INPUT) /* Board ID bit0 */