diff options
author | Rajat Jain <rajatja@google.com> | 2020-04-10 15:48:49 -0700 |
---|---|---|
committer | Furquan Shaikh <furquan@google.com> | 2020-04-20 21:35:03 +0000 |
commit | 89eef55718e6eb9164dfedae7ce11d6250a4bc5a (patch) | |
tree | bcb4fc433bb4b56783be61246e05ce0ff74f52da /src/ec/google/chromeec/ec.c | |
parent | a28e3fb694ecff6efefbbeef1d0882731a6a2bd2 (diff) | |
download | coreboot-89eef55718e6eb9164dfedae7ce11d6250a4bc5a.tar.xz |
google/chromeec: Add wrapper for EC_CMD_GET_KEYBD_CONFIG
Add a wrapper command for the subject command
Signed-off-by: Rajat Jain <rajatja@google.com>
Change-Id: I29a4021c2ea0d1cbb4a72f56bf2232d8f9c80ac3
Reviewed-on: https://review.coreboot.org/c/coreboot/+/40313
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Diffstat (limited to 'src/ec/google/chromeec/ec.c')
-rw-r--r-- | src/ec/google/chromeec/ec.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/ec/google/chromeec/ec.c b/src/ec/google/chromeec/ec.c index 73baec63be..1c1f42ec62 100644 --- a/src/ec/google/chromeec/ec.c +++ b/src/ec/google/chromeec/ec.c @@ -1518,3 +1518,21 @@ int google_chromeec_wait_for_displayport(long timeout) return 1; } + +int google_chromeec_get_keybd_config(struct ec_response_keybd_config *keybd) +{ + struct chromeec_command cmd = { + .cmd_code = EC_CMD_GET_KEYBD_CONFIG, + .cmd_version = 0, + .cmd_data_in = NULL, + .cmd_size_in = 0, + .cmd_data_out = keybd, + .cmd_size_out = sizeof(*keybd), + .cmd_dev_index = 0, + }; + + if (google_chromeec_command(&cmd)) + return -1; + + return 0; +} |