aboutsummaryrefslogtreecommitdiff
path: root/src/ec/google/wilco/commands.c
diff options
context:
space:
mode:
authorKeith Short <keithshort@chromium.org>2019-05-10 11:49:24 -0600
committerPatrick Georgi <pgeorgi@google.com>2019-05-20 14:48:10 +0000
commit8ef6732b94148a39f8203cb3b4cf3388dc103199 (patch)
tree9a4600840149f50c286547a716b3fa78ed38f02e /src/ec/google/wilco/commands.c
parent686b539949d9a07d3b6522c075ccae3f15a6121a (diff)
ec/google/wilco: Add support for KB_ERR_CODE to Wilco EC
Adds support for the KB_ERR_CODE command on the Wilco EC. This command is used to drive diagnostic LEDs on the platform after a failed boot. This change also adds the Wilco EC mailbox command support to bootblock and verstage so that those stages can use the KB_ERR_CODE command. BUG=b:124401932 BRANCH=sarien TEST=build coreboot for sarien and arcada platforms Change-Id: I96d17baf57694e4e01c676d80c606f67054cd0c3 Signed-off-by: Keith Short <keithshort@chromium.org> Reviewed-on: https://review.coreboot.org/c/coreboot/+/32776 Reviewed-by: Duncan Laurie <dlaurie@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/ec/google/wilco/commands.c')
-rw-r--r--src/ec/google/wilco/commands.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ec/google/wilco/commands.c b/src/ec/google/wilco/commands.c
index d0d572d569..a97a28ecce 100644
--- a/src/ec/google/wilco/commands.c
+++ b/src/ec/google/wilco/commands.c
@@ -181,3 +181,9 @@ int wilco_ec_signed_fw(void)
CONFIG_EC_BASE_ACPI_DATA);
return !!ec_read(EC_RAM_SIGNED_FW);
}
+
+int wilco_ec_err_code(enum ec_err_code err_code)
+{
+ return wilco_ec_mailbox(WILCO_EC_MSG_DEFAULT, KB_ERR_CODE,
+ &err_code, 1, NULL, 0);
+}