diff options
author | Vic Yang <victoryang@chromium.org> | 2013-02-19 13:33:33 +0800 |
---|---|---|
committer | ChromeBot <chrome-bot@google.com> | 2013-02-19 23:01:10 -0800 |
commit | aab9accfce10e70197729afd07451229ac8a178d (patch) | |
tree | 5d00eed06499ff87c1b22985fc10696cd8c03c25 /include/ec_commands.h | |
parent | 2e64bed323809ff3cdfe264401eb7c1747b80b9e (diff) | |
download | chrome-ec-aab9accfce10e70197729afd07451229ac8a178d.tar.gz |
spring: Add host command to read power info
Getting voltage and current can be handy when verifying hardware design.
Let's add host command to do this.
BUG=chrome-os-partner:17880
TEST=Manual on Spring
BRANCH=none
Change-Id: I4d4f6a42a9d0f917292d092e132ccd9ce3367fd6
Signed-off-by: Vic Yang <victoryang@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/43508
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'include/ec_commands.h')
-rw-r--r-- | include/ec_commands.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/ec_commands.h b/include/ec_commands.h index 54dcbd314a..cd714cc1db 100644 --- a/include/ec_commands.h +++ b/include/ec_commands.h @@ -1242,6 +1242,22 @@ struct ec_response_ldo_get { } __packed; /*****************************************************************************/ +/* Power info. */ + +/* + * Get power info. + */ +#define EC_CMD_POWER_INFO 0x9d + +struct ec_response_power_info { + uint32_t usb_dev_type; + uint16_t voltage_ac; + uint16_t voltage_system; + uint16_t current_system; + uint16_t usb_current_limit; +} __packed; + +/*****************************************************************************/ /* Temporary debug commands. TODO: remove this crosbug.com/p/13849 */ /* |