diff options
author | Jun Lin <CHLin56@nuvoton.com> | 2022-12-19 15:57:01 +0800 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-12-19 17:37:51 +0000 |
commit | d8dc0845a6ff46acdbde57b4f5ba87a64be869a3 (patch) | |
tree | c4b7399350610502badcfeb6319c1ec1fbd9048b | |
parent | 9a924f2de57719624ddf89e81cc9495b1099d0a0 (diff) | |
download | chrome-ec-d8dc0845a6ff46acdbde57b4f5ba87a64be869a3.tar.gz |
npcx9: SHA256: Fix the code definition of enum ncl_status
The coding of the enum ncl_status is not correctly defined in the SHA256
chip driver. This CL fixed it to meet the actual return code from the
SHA ROM API.
BRANCH=none
BUG=b:155771688
TEST=manually dump and check the return value from SHA ROM API.
Change-Id: Iee3ec5c7102ddc93f7afda6523c59393a5a0047a
Signed-off-by: Jun Lin <CHLin56@nuvoton.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4113813
Commit-Queue: Keith Short <keithshort@chromium.org>
Reviewed-by: Keith Short <keithshort@chromium.org>
Tested-by: CH Lin <chlin56@nuvoton.com>
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Reviewed-by: Fabio Baltieri <fabiobaltieri@google.com>
-rw-r--r-- | chip/npcx/sha256_chip.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/chip/npcx/sha256_chip.c b/chip/npcx/sha256_chip.c index 4d90ba6e74..0f64279c3b 100644 --- a/chip/npcx/sha256_chip.c +++ b/chip/npcx/sha256_chip.c @@ -11,9 +11,9 @@ #include "util.h" enum ncl_status { - NCL_STATUS_OK, - NCL_STATUS_FAIL, - NCL_STATUS_INVALID_PARAM, + NCL_STATUS_OK = 0xA5A5, + NCL_STATUS_FAIL = 0x5A5A, + NCL_STATUS_INVALID_PARAM = 0x02, NCL_STATUS_PARAM_NOT_SUPPORTED, NCL_STATUS_SYSTEM_BUSY, NCL_STATUS_AUTHENTICATION_FAIL, |