diff options
author | Sheng-Liang Song <ssl@chromium.org> | 2014-07-24 09:22:11 -0700 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-08-29 02:57:00 +0000 |
commit | 7bea5174a19b6d3b4cd9f5a7e96f7d492a24fc8f (patch) | |
tree | 4bf5f92421086f20668dd19d85ee129cfd6e93f7 /include/common.h | |
parent | b7f1d5261917c88e734d0e788de74b2bc419c431 (diff) | |
download | chrome-ec-7bea5174a19b6d3b4cd9f5a7e96f7d492a24fc8f.tar.gz |
EC: Add smbus interface read & write APIs
Ref: http://smbus.org/specs/smbus20.pdf
- Support software CRC8 generation and checking.
- Support read/write word (2-bytes)
- Support read/write blocks (up to 32 bytes)
BUG=chrome-os-partner:24741
BRANCH=ToT,glimmer
TEST=Verified with smart battery firmware update application on glimmer.
Passed LGC & Simplo Battery.
Change-Id: Ic2e7f759af80c06741ed49fee1826213429fbf8a
Signed-off-by: Sheng-Liang Song <ssl@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/209747
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'include/common.h')
-rw-r--r-- | include/common.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/common.h b/include/common.h index cddcde31fa..eb4ebd7c32 100644 --- a/include/common.h +++ b/include/common.h @@ -88,6 +88,8 @@ enum ec_error_list { EC_ERROR_NOT_POWERED = 8, /* Failed because component is not calibrated */ EC_ERROR_NOT_CALIBRATED = 9, + /* Failed because CRC error */ + EC_ERROR_CRC = 10, /* Invalid console command param (PARAMn means parameter n is bad) */ EC_ERROR_PARAM1 = 11, EC_ERROR_PARAM2 = 12, |