summaryrefslogtreecommitdiff
path: root/baseboard/volteer/baseboard.c
diff options
context:
space:
mode:
authorAbe Levkoy <alevkoy@chromium.org>2020-03-20 19:00:10 -0600
committerCommit Bot <commit-bot@chromium.org>2020-03-30 23:10:16 +0000
commit0e423969f1ebfb627aad04810802e414c92a4c6e (patch)
tree825d006f39d638dcc908f516957c991ad7c4e9a6 /baseboard/volteer/baseboard.c
parentd5facd1417b59b822caaec065c5ec2525b3f37d4 (diff)
downloadchrome-ec-0e423969f1ebfb627aad04810802e414c92a4c6e.tar.gz
volteer: Select LED based on charge port
If a port is charging, illuminate the LED next the the charging port. If no port is charging, illuminate both LEDs. BUG=b:139554899 TEST=Attach charger to C0 or C1; LED on attached side is illuminated BRANCH=none Change-Id: I85e3851132f42a35032bcd43bfd02c59c23cc589 Signed-off-by: Abe Levkoy <alevkoy@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2113121 Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'baseboard/volteer/baseboard.c')
-rw-r--r--baseboard/volteer/baseboard.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/baseboard/volteer/baseboard.c b/baseboard/volteer/baseboard.c
index 4f2df794cc..57abe21bb3 100644
--- a/baseboard/volteer/baseboard.c
+++ b/baseboard/volteer/baseboard.c
@@ -655,10 +655,7 @@ __override void board_icl_tgl_all_sys_pwrgood(void)
static void baseboard_init(void)
{
- /* Illuminate motherboard and daughter board LEDs equally.
- * TODO(b/139554899): Illuminate only the LED next to the active
- * charging port.
- */
+ /* Illuminate motherboard and daughter board LEDs equally to start. */
pwm_enable(PWM_CH_LED4_SIDESEL, 1);
pwm_set_duty(PWM_CH_LED4_SIDESEL, 50);