diff options
author | Alec Berg <alecaberg@chromium.org> | 2014-08-18 17:49:53 -0700 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-08-22 05:47:49 +0000 |
commit | c7c312d057b84ebc13bf462ac884cdaf40fcb3a2 (patch) | |
tree | 46a7b585928d0c18872737eaf95ae3d336aa5554 /include | |
parent | 445691932cb08dbfb8c22a50c9071b5fd8df3c3c (diff) | |
download | chrome-ec-c7c312d057b84ebc13bf462ac884cdaf40fcb3a2.tar.gz |
zinger: add custom VDM to read last measured current
Add custom VDM to read last measured output current in mA.
BUG=chrome-os-partner:30850
BRANCH=none
TEST=Run "pd 0 vdm curr" on samus pd console and verify
reasonable current
Change-Id: Ie1f1ab235560eb4e90f399ceac31c5cd93003d80
Signed-off-by: Alec Berg <alecaberg@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/212981
Diffstat (limited to 'include')
-rw-r--r-- | include/usb_pd.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/usb_pd.h b/include/usb_pd.h index fc2d59b6bd..3afef69d1a 100644 --- a/include/usb_pd.h +++ b/include/usb_pd.h @@ -128,6 +128,7 @@ enum pd_errors { #define VDO_CMD_FLASH_WRITE VDO_CMD_VENDOR(7) #define VDO_CMD_FLASH_HASH VDO_CMD_VENDOR(8) #define VDO_CMD_PING_ENABLE VDO_CMD_VENDOR(10) +#define VDO_CMD_CURRENT VDO_CMD_VENDOR(11) #define PD_VDO_VID(vdo) ((vdo) >> 16) #define PD_VDO_CMD(vdo) ((vdo) & 0x1f) |