summaryrefslogtreecommitdiff
path: root/include/common.h
diff options
context:
space:
mode:
authorRandall Spangler <rspangler@chromium.org>2012-10-11 11:06:29 -0700
committerGerrit <chrome-bot@google.com>2012-10-11 14:24:36 -0700
commit22e03a1de6d525e84e511f4b25531caf6f1a93fd (patch)
tree4b060ef35e12ea2d551518489244bdf59f9a14b8 /include/common.h
parent8f2e99da75152c428c6c92b20a13a62a5fcb40d1 (diff)
downloadchrome-ec-22e03a1de6d525e84e511f4b25531caf6f1a93fd.tar.gz
link: Temp sensors can return not-powered error code
This removes the need for a separate method to check sensor power, and gets rid of temp_sensor.c knowledge of what powers each sensor. BUG=chrome-os-partner:15174 BRANCH=link TEST=manual - reboot - within a second, type 'temps'; I2C sensors should return error 1 - type 'temps' again; all sensors should return data - power off system - type 'temps' again; I2C sensors and PECI should return error 8 - 'gpioset enable_vs 1' - type 'temps' again; I2C sensors should return valid data; PECI should still return error 8. Change-Id: I17c353b3c483bc320769307c7715008ec729089b Signed-off-by: Randall Spangler <rspangler@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/35287 Reviewed-by: Bill Richardson <wfrichar@chromium.org>
Diffstat (limited to 'include/common.h')
-rw-r--r--include/common.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/common.h b/include/common.h
index 5441efdc99..ca772b303f 100644
--- a/include/common.h
+++ b/include/common.h
@@ -41,10 +41,14 @@ enum ec_error_list {
EC_ERROR_TIMEOUT = 4,
/* Invalid argument */
EC_ERROR_INVAL = 5,
- /* Already in use */
+ /* Already in use, or not ready yet */
EC_ERROR_BUSY = 6,
/* Access denied */
EC_ERROR_ACCESS_DENIED = 7,
+ /* Failed because component does not have power */
+ EC_ERROR_NOT_POWERED = 8,
+ /* Failed because component is not calibrated */
+ EC_ERROR_NOT_CALIBRATED = 9,
/* Invalid console command param (PARAMn means parameter n is bad) */
EC_ERROR_PARAM1 = 11,
EC_ERROR_PARAM2 = 12,