diff options
author | Ayushee <ayushee.shah@intel.com> | 2019-04-17 13:14:13 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2019-05-03 02:11:27 -0700 |
commit | f5a218a8c36bf7562cd8e9c588111cc6ef45d401 (patch) | |
tree | 5673c31cfb8275a4528d11f714973a68d0e162ac /power | |
parent | 3081e4a737875bf35d8cd8e357283a4968611de4 (diff) | |
download | chrome-ec-f5a218a8c36bf7562cd8e9c588111cc6ef45d401.tar.gz |
7-seg display: Add config to display port80 msg and power states
Adding this CL to display port80 message and power states of EC & SOC
on the 7-segment display.
BRANCH=None
BUG=b:130738086
TEST=Manually tested on intelrvp, able to verify the power states
and port80 message displayed on the 7 segment display
Change-Id: I4437cfcd60662c8637e406e425f98fad1a4ba7ed
Signed-off-by: Ayushee <ayushee.shah@intel.com>
Reviewed-on: https://chromium-review.googlesource.com/1575433
Commit-Ready: Daisuke Nojiri <dnojiri@chromium.org>
Tested-by: Ayushee Shah <ayushee.shah@intel.com>
Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Diffstat (limited to 'power')
-rw-r--r-- | power/common.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/power/common.c b/power/common.c index 13b66f5117..2e2e9e3cc5 100644 --- a/power/common.c +++ b/power/common.c @@ -10,6 +10,7 @@ #include "chipset.h" #include "common.h" #include "console.h" +#include "display_7seg.h" #include "extpower.h" #include "gpio.h" #include "hooks.h" @@ -525,6 +526,8 @@ void chipset_task(void *u) if (this_in_signals != last_in_signals || state != last_state) { CPRINTS("power state %d = %s, in 0x%04x", state, state_names[state], this_in_signals); + if (IS_ENABLED(CONFIG_SEVEN_SEG_DISPLAY)) + display_7seg_write(SEVEN_SEG_EC_DISPLAY, state); last_in_signals = this_in_signals; last_state = state; } |