diff options
author | Wai-Hong Tam <waihong@google.com> | 2018-08-09 11:59:39 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-08-29 11:15:28 -0700 |
commit | 63fd7e18588023b2940167b686611e609354b78a (patch) | |
tree | 27ec7213ddf178b08575785b38bc734da298d9e2 /power | |
parent | 440002836488f769995945f47c5860f9ce683a56 (diff) | |
download | chrome-ec-63fd7e18588023b2940167b686611e609354b78a.tar.gz |
cheza: Add more power signals for informative purpose
No power sequence logic is chanaged. Add PS_HOLD, PMIC_FAULT_L, and
POWER_GOOD (the real one, not AP_RST_L) as power signals. If their
states change, the EC console will show it and the timestamp.
BRANCH=none
BUG=b:78455067
TEST=Ran "gpioset SWITCHCAP_ON_L 0" and showed the signals changed:
7 signal changes:
750.164712 +0.000000 AP_RST_L => 0
750.164810 +0.000098 PMIC_FAULT_L => 0
750.165312 +0.000502 PS_HOLD => 0
750.166565 +0.001253 POWER_GOOD => 0
750.206345 +0.039780 PMIC_FAULT_L => 1
751.190869 +0.984524 PMIC_FAULT_L => 0
751.233388 +0.042519 PMIC_FAULT_L => 1
Change-Id: I1237f4fff20e2256f504d3c9d11ed26da5224ecd
Signed-off-by: Wai-Hong Tam <waihong@google.com>
Reviewed-on: https://chromium-review.googlesource.com/1169951
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Diffstat (limited to 'power')
-rw-r--r-- | power/sdm845.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/power/sdm845.c b/power/sdm845.c index 881761035e..878bd24737 100644 --- a/power/sdm845.c +++ b/power/sdm845.c @@ -37,7 +37,7 @@ #define CPRINTS(format, args...) cprints(CC_CHIPSET, format, ## args) /* Masks for power signals */ -#define IN_POWER_GOOD POWER_SIGNAL_MASK(SDM845_POWER_GOOD) +#define IN_POWER_GOOD POWER_SIGNAL_MASK(SDM845_AP_RST_L) /* Long power key press to force shutdown */ #define DELAY_FORCE_SHUTDOWN (8 * SECOND) |