summaryrefslogtreecommitdiff
path: root/board/lantis/gpio.inc
diff options
context:
space:
mode:
authorTommy Chung <tommy.chung@quanta.corp-partner.google.com>2020-11-23 19:21:25 +0800
committerCommit Bot <commit-bot@chromium.org>2020-12-09 01:48:07 +0000
commit18609f320d924883f9011a6557765f6585bf554c (patch)
treefa4eac7013659ab7aa4d5cddb8abc125ddab0dbf /board/lantis/gpio.inc
parentdb240bf9ab317cfc71ed1e8e6613b81b4e1afa4f (diff)
downloadchrome-ec-18609f320d924883f9011a6557765f6585bf554c.tar.gz
lantis: Update LED configuration
In lantis, we have a power LED and two battery LEDs. Also, we have two USB-C ports, and which battery LED takes action related to different charging states will depend on which USB-C port has been plugged in for power charge. We blink power LED to indicate system suspend, and we also override battery LEDs for clamshell SKU, which doesn't have power LED. BUG=b:171546871 BRANCH=dedede TEST=Make sure that all LEDs act correctly. Signed-off-by: Tommy Chung <tommy.chung@quanta.corp-partner.google.com> Change-Id: I32e931efad9477f64e83e75057b3ae04db997e63 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2556726 Reviewed-by: Devin Lu <Devin.Lu@quantatw.com> Reviewed-by: Diana Z <dzigterman@chromium.org>
Diffstat (limited to 'board/lantis/gpio.inc')
-rw-r--r--board/lantis/gpio.inc10
1 files changed, 4 insertions, 6 deletions
diff --git a/board/lantis/gpio.inc b/board/lantis/gpio.inc
index 429b952eef..10a182f766 100644
--- a/board/lantis/gpio.inc
+++ b/board/lantis/gpio.inc
@@ -91,10 +91,6 @@ GPIO(HDMI_SEL_L, PIN(C, 6), GPIO_OUT_HIGH)
/* MKBP event synchronization */
GPIO(EC_AP_MKBP_INT_L, PIN(L, 5), GPIO_ODR_HIGH)
-/* Misc pins which will run to the I/O board */
-GPIO(EC_SUB_IO_1_2, PIN(F, 0), GPIO_INPUT)
-GPIO(EC_SUB_IO_2_1, PIN(F, 1), GPIO_INPUT)
-
/* Misc */
GPIO(EN_BL_OD, PIN(K, 4), GPIO_ODR_LOW)
GPIO(EC_ENTERING_RW, PIN(G, 0), GPIO_OUT_LOW)
@@ -118,8 +114,10 @@ GPIO(GPIOJ6_NC, PIN(J, 6), GPIO_INPUT | GPIO_PULL_DOWN)
GPIO(GPIOM6_NC, PIN(M, 6), GPIO_INPUT | GPIO_PULL_DOWN)
/* LED */
-GPIO(BAT_LED_AMBER_L, PIN(A, 1), GPIO_OUT_HIGH)
-GPIO(BAT_LED_WHITE_L, PIN(A, 2), GPIO_OUT_HIGH)
+GPIO(BAT_LED_AMBER_C0, PIN(A, 1), GPIO_OUT_HIGH)
+GPIO(BAT_LED_WHITE_C0, PIN(A, 2), GPIO_OUT_HIGH)
+GPIO(BAT_LED_AMBER_C1, PIN(F, 1), GPIO_OUT_HIGH)
+GPIO(BAT_LED_WHITE_C1, PIN(F, 0), GPIO_OUT_HIGH)
GPIO(PWR_LED_WHITE_L, PIN(A, 3), GPIO_OUT_HIGH)
/* Alternate functions GPIO definitions */