summaryrefslogtreecommitdiff
path: root/board/hatch/gpio.inc
diff options
context:
space:
mode:
authorScott Collyer <scollyer@google.com>2018-12-18 11:03:44 -0800
committerchrome-bot <chrome-bot@chromium.org>2019-01-29 21:35:05 -0800
commitd10286cc838c0a51266bd0c162f1cce49d036c2a (patch)
treeef6776845fc5256597a413dec645aef61ad65263 /board/hatch/gpio.inc
parentf71c06294fcfa383cefa52d8705b4443c16db8f4 (diff)
downloadchrome-ec-d10286cc838c0a51266bd0c162f1cce49d036c2a.tar.gz
hatch: Add support for 2 color LED
This CL adds board specific files/functions required to support the battery LED. Similar to Coral or Octopus, the LEDs are controlled by GPIO on/off instead of PWM. BRANCH=none BUG=b:122251649 TEST=make buildall. Verfied charging LED turns when external power is connected. Change-Id: Ic16d4192aaeba6e765e97743ded772d52ca47111 Signed-off-by: Scott Collyer <scollyer@google.com> Reviewed-on: https://chromium-review.googlesource.com/1387586 Commit-Ready: Scott Collyer <scollyer@chromium.org> Tested-by: Scott Collyer <scollyer@chromium.org> Reviewed-by: Aseda Aboagye <aaboagye@chromium.org> Reviewed-by: Zack Yang <zack_yang@compal.corp-partner.google.com>
Diffstat (limited to 'board/hatch/gpio.inc')
-rw-r--r--board/hatch/gpio.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/board/hatch/gpio.inc b/board/hatch/gpio.inc
index bffbecb830..d7f305fccd 100644
--- a/board/hatch/gpio.inc
+++ b/board/hatch/gpio.inc
@@ -52,6 +52,10 @@ GPIO(EN_USB_A_LOW_PWR_ODL, PIN(9, 4), GPIO_OUT_LOW)
/* Misc Signals */
GPIO(EC_BATT_PRES_ODL, PIN(E, 1), GPIO_INPUT)
+GPIO(LED_1_L, PIN(C, 4), GPIO_OUT_HIGH) /* Yellow (hatch) */
+GPIO(LED_2_L, PIN(C, 3), GPIO_OUT_HIGH) /* White (hatch) */
+GPIO(LED_3_L, PIN(C, 2), GPIO_OUT_HIGH)
+GPIO(LED_4_L, PIN(6, 0), GPIO_OUT_HIGH)
/* I2C pins - Alternate function below configures I2C module on these pins */
GPIO(I2C0_SCL, PIN(B, 5), GPIO_INPUT |