summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGwendal Grignou <gwendal@chromium.org>2017-11-02 16:42:13 -0700
committerCommit Bot <commit-bot@chromium.org>2019-12-19 08:21:44 +0000
commit8459d34b4dea7f09008c8556ed6e3d03da3ccbb9 (patch)
tree0a05aeaf785d95b5e10a5e7ecf1ec896c5681461
parent24bd40989de6b2169486e39a760b60943e8221c8 (diff)
downloadchrome-ec-8459d34b4dea7f09008c8556ed6e3d03da3ccbb9.tar.gz
common: Add hardware error code
Add error code to indicate a piece of hardware is not working properly. BUG=none TEST=compile BRANCH=none Change-Id: I34eca8073a359aec1c559241654a1d0a7075cd44 Signed-off-by: Gwendal Grignou <gwendal@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/753968 (cherry picked from commit 1c03af23e1f8a62b6815fd520de5ace9e365b12f) Signed-off-by: Gwendal Grignou <gwendal@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1974516 Reviewed-by: Alexandru M Stan <amstan@chromium.org>
-rw-r--r--include/common.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/common.h b/include/common.h
index e3ee158341..65a847ecf1 100644
--- a/include/common.h
+++ b/include/common.h
@@ -117,6 +117,9 @@ enum ec_error_list {
EC_ERROR_PARAM_COUNT = 20, /* Wrong number of params */
EC_ERROR_NOT_HANDLED = 21, /* Interrupt event not handled */
+ /* something wrong in a HW */
+ EC_ERROR_HW_INTERNAL = 25,
+
/* Module-internal error codes may use this range. */
EC_ERROR_INTERNAL_FIRST = 0x10000,