summaryrefslogtreecommitdiff
path: root/board/atlas/led.c
Commit message (Collapse)AuthorAgeFilesLines
* led_pwm: support different pwm modulesTing Shen2019-12-271-6/+10
| | | | | | | | | | | | | | | | add enable() and set_duty() into struct pwm_led, to support PWMs other than the default one. BUG=b:135086465 TEST=verify led works on grunt BRANCH=none Change-Id: I1fd919d4990a145df272a7ee0b2072612f80cd44 Signed-off-by: Ting Shen <phoenixshen@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1963730 Reviewed-by: Eric Yilun Lin <yllin@chromium.org> Commit-Queue: Ting Shen <phoenixshen@chromium.org> Tested-by: Ting Shen <phoenixshen@chromium.org>
* atlas: remove obsolete commentCaveh Jalali2019-04-251-1/+0
| | | | | | | | | | | | | | | | we're going to keep the ability to turn on the blue LED channel for testing the hardware, if nothing else. BUG=b:130447080 BRANCH=none TEST=no functional change Change-Id: Ibc30c0c39cbac4a539ea7fbd55d815f66d098a5a Signed-off-by: Caveh Jalali <caveh@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1570611 Commit-Ready: Caveh Jalali <caveh@google.com> Tested-by: Caveh Jalali <caveh@google.com> Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
* atlas: fine tune hue of charging LEDCaveh Jalali2019-04-191-1/+1
| | | | | | | | | | | | | | | | this updates the hue of the charging LED "amber" to be slightly more red based on feedback form the UX team. BUG=b:130447080 BRANCH=none TEST=amber still looks amber. Change-Id: I1a4bbf209fec433af49df7a27444425940b3764a Signed-off-by: Caveh Jalali <caveh@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1568785 Commit-Ready: Caveh Jalali <caveh@google.com> Tested-by: Caveh Jalali <caveh@google.com> Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
* atlas: tweak LED colorsCaveh Jalali2018-12-061-2/+2
| | | | | | | | | | | | | | | this incorporates feedback from the PD team. BUG=b:110505328 BRANCH=none TEST=visual inspection of LED colors on atlas Change-Id: I6d74a43bd4846a3edbe2d57c8172caac8fad820e Signed-off-by: Caveh Jalali <caveh@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1339041 Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com> Tested-by: caveh jalali <caveh@chromium.org> Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
* atlas: fix order of LEDs to match portsCaveh Jalali2018-08-101-8/+14
| | | | | | | | | | | | | | | | | | | | | this updates the order in which LEDs are listed to match the order of the TCPCs. the charger and LED code use the same port index into the LED and TCPC tables, so we need to keep these tables in the same order. BUG=b:110505328 BRANCH=none TEST=ectool led right/left still controls the correct LED there is an implicit relationship between LEDs and USB-C ports. the ports and LEDs must be listed in the same order. Change-Id: I07c95cdd568f2d90643e1e502bd4698b334a95bf Signed-off-by: Caveh Jalali <caveh@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1170574 Commit-Ready: Caveh Jalali <caveh@google.com> Tested-by: Caveh Jalali <caveh@google.com> Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
* atlas: tune port LED colors for chassisCaveh Jalali2018-08-101-6/+6
| | | | | | | | | | | | | | | | | | this tunes the RGB LEDs associated with the chassis USB-C ports to better match their expected colors and brightness. BUG=b:110505328 BRANCH=none TEST=visual inspection on actual atlas unit Change-Id: Ibe28924a025957136c80b173f138d7bc7d7607ca Signed-off-by: Caveh Jalali <caveh@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1170573 Commit-Ready: Caveh Jalali <caveh@google.com> Commit-Ready: caveh jalali <caveh@chromium.org> Tested-by: caveh jalali <caveh@chromium.org> Reviewed-by: Aseda Aboagye <aaboagye@chromium.org> Reviewed-by: Caveh Jalali <caveh@google.com>
* atlas: enable charge status LEDsCaveh Jalali2018-06-221-0/+84
this enables the charge status LEDs. this is largely taken from the nocturne config. the color_map is tweaked to produce reasonable colors on atlas - at least as a 1st order approximation. BUG=b:110505328 BRANCH=none TEST=verified LEDs on a reworked board. color pattern is the same as nocturne. Change-Id: I4be4847e7a7d41ab83df8ab173bb3dba83297212 Signed-off-by: Caveh Jalali <caveh@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1111576 Commit-Ready: caveh jalali <caveh@chromium.org> Tested-by: caveh jalali <caveh@chromium.org> Reviewed-by: Aseda Aboagye <aaboagye@chromium.org> Reviewed-by: caveh jalali <caveh@chromium.org>