diff options
author | Vincent Palatin <vpalatin@chromium.org> | 2015-01-09 10:29:53 -0800 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2015-01-15 01:07:14 +0000 |
commit | 64ada6e3d8220e51a64b30ff15878f1abff11a47 (patch) | |
tree | b59b0dd7e696a2b0c76fa68b0baa3d3941fcad8f /include | |
parent | bd85bc46360e43b74aa1864565c5ad49b719a804 (diff) | |
download | chrome-ec-64ada6e3d8220e51a64b30ff15878f1abff11a47.tar.gz |
pd: log important events for accessories
Record in the PD log when we fail to verify the RW signature and when
the RW partition is erased.
Also log the faults on the power supplies.
Signed-off-by: Vincent Palatin <vpalatin@chromium.org>
BRANCH=samus
BUG=chrome-os-partner:32785
TEST=flash a bad rw on Zinger.
Change-Id: Ib62dcb0d407867151af0aaecc405533e894d773e
Reviewed-on: https://chromium-review.googlesource.com/239913
Reviewed-by: Alec Berg <alecaberg@chromium.org>
Commit-Queue: Vincent Palatin <vpalatin@chromium.org>
Trybot-Ready: Vincent Palatin <vpalatin@chromium.org>
Tested-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/ec_commands.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/include/ec_commands.h b/include/ec_commands.h index 954a423f5d..357c1de432 100644 --- a/include/ec_commands.h +++ b/include/ec_commands.h @@ -2889,9 +2889,7 @@ struct ec_response_pd_log { #define PD_EVENT_ACC_GFU_ENTER (PD_EVENT_ACC_BASE+2) /* PD power supply events */ #define PD_EVENT_PS_BASE 0x40 -#define PD_EVENT_PS_OCP (PD_EVENT_PS_BASE+0) -#define PD_EVENT_PS_OVP (PD_EVENT_PS_BASE+1) -#define PD_EVENT_PS_TEMP (PD_EVENT_PS_BASE+2) +#define PD_EVENT_PS_FAULT (PD_EVENT_PS_BASE+0) /* PD video dongles events */ #define PD_EVENT_VIDEO_BASE 0x60 /* Returned in the "type" field, when there is no entry available */ @@ -2914,6 +2912,14 @@ struct ec_response_pd_log { /* Power delivery role */ #define CHARGE_FLAGS_ROLE_MASK (7 << 0) +/* + * PD_EVENT_PS_FAULT data field flags definition : + */ +#define PS_FAULT_OCP 1 +#define PS_FAULT_FAST_OCP 2 +#define PS_FAULT_OVP 3 +#define PS_FAULT_DISCH 4 + #endif /* !__ACPI__ */ /*****************************************************************************/ |