diff options
author | Sheng-Liang Song <ssl@chromium.org> | 2014-07-25 13:45:00 -0700 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-09-03 22:49:28 +0000 |
commit | 51e48026c206688c3387c4b4f1d1c0ed42a959e1 (patch) | |
tree | ef432da8ab77758d741e4f91d6102b7c4d1bf2f3 /include/host_command.h | |
parent | 00816a1552db928f662119bf4562be19bb9274fe (diff) | |
download | chrome-ec-51e48026c206688c3387c4b4f1d1c0ed42a959e1.tar.gz |
EC: Add smart battery firmware update driver
Ref: Common Smart Battery System Inferface Specification v8.0.
- Added 2 new AP->EC Command APIs
EC_CMD_SB_FW_UPDATE, EC_CMD_ENTERING_MODE
- Implemented common smart battery update drivers.
BUG=chrome-os-partner:24741
CQ-DEPEND=CL:210032
CQ-DEPEND=CL:210033
CQ-DEPEND=CL:215720
BRANCH=ToT,glimmer
TEST=Verified on LGC & Simplo smart battery
Change-Id: Ice6e60b1b04762217ae7613356d6925777c06abf
Signed-off-by: Sheng-Liang Song <ssl@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/205323
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'include/host_command.h')
-rw-r--r-- | include/host_command.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/host_command.h b/include/host_command.h index 231ef9a6b8..a25f06d10a 100644 --- a/include/host_command.h +++ b/include/host_command.h @@ -227,4 +227,14 @@ int pd_host_command(int command, int version, const void *outdata, int outsize, void *indata, int insize); + +/** + * EC: Get verify boot mode + * @return vboot_mode as the following: + * VBOOT_MODE_NORMAL - normal mode + * VBOOT_MODE_DEVELOPER - developer mode + * VBOOT_MODE_RECOVERY - recovery mode + */ +int host_get_vboot_mode(void); + #endif /* __CROS_EC_HOST_COMMAND_H */ |