summaryrefslogtreecommitdiff
path: root/drivers/misc/cros_ec_sandbox.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2020-11-15 10:13:22 -0500
committerTom Rini <trini@konsulko.com>2020-11-15 10:13:22 -0500
commitcd0d3749afdad4f4fd03bc005fe5efaad0e09417 (patch)
tree2b36d72786e953e1c59e332aeeda08a00acbc5ca /drivers/misc/cros_ec_sandbox.c
parentde865f7ee1d9b6dff6e265dee44509c8274ea606 (diff)
parenta3e458524c15710e4ac9ce1556a5f0898084d09a (diff)
Merge tag 'dm-pull-15nov20' of git://git.denx.de/u-boot-dm
Minor fixes/improvements to 'patman status'
Diffstat (limited to 'drivers/misc/cros_ec_sandbox.c')
-rw-r--r--drivers/misc/cros_ec_sandbox.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/misc/cros_ec_sandbox.c b/drivers/misc/cros_ec_sandbox.c
index a191f061b89..ff7f782742a 100644
--- a/drivers/misc/cros_ec_sandbox.c
+++ b/drivers/misc/cros_ec_sandbox.c
@@ -460,6 +460,16 @@ static int process_cmd(struct ec_state *ec,
case EC_CMD_ENTERING_MODE:
len = 0;
break;
+ case EC_CMD_GET_NEXT_EVENT:
+ /*
+ * TODO:
+ * This driver emulates an old keyboard device supporting
+ * EC_CMD_MKBP_STATE. Current Chrome OS keyboards use
+ * EC_CMD_GET_NEXT_EVENT. Cf.
+ * "mkbp: Add support for buttons and switches"
+ * https://chromium.googlesource.com/chromiumos/platform/ec/+/87a071941b89e3f7fd3eb329b682e60b3fbd6c73
+ */
+ return -EC_RES_INVALID_COMMAND;
default:
printf(" ** Unknown EC command %#02x\n", req_hdr->command);
return -1;