diff options
author | Diana Z <dzigterman@chromium.org> | 2018-07-31 09:37:24 -0600 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-08-01 19:35:26 -0700 |
commit | fe10a59e056643e3b23a5d1b0e6142323b0e5ced (patch) | |
tree | 610aca1fd3159e071d6cad94d7fe65a35fa1bb48 /chip/it83xx | |
parent | d01e71d5b4b1c20c9bd2f9acce7e3a48a1460b78 (diff) | |
download | chrome-ec-fe10a59e056643e3b23a5d1b0e6142323b0e5ced.tar.gz |
octopus: Refactor power LED code
The upcoming work to implement the fleex power LED will require slightly
different power LED behavior, so this refactors the power LED code to be
more flexible. This change also sets the phaser power LED GPIO name to
something more clear, and protects the code from a possible
divide-by-zero condition which can be hit with undefined states.
Currently, there will be prints 4 times per second that the board is in
the undefined state, which should draw a developer's attention to the
issue.
BRANCH=None
BUG=None
TEST=verified power LED behaved the same on phaser in all different
power states, verified that removing a state's entry in the table
results in an error print to the console in that state
Change-Id: I58733008e5e49d1e631d79a8631d2ca04127bd08
Signed-off-by: Diana Z <dzigterman@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1156872
Reviewed-by: Furquan Shaikh <furquan@chromium.org>
Reviewed-by: Jett Rink <jettrink@chromium.org>
Diffstat (limited to 'chip/it83xx')
0 files changed, 0 insertions, 0 deletions