diff options
author | paris_yeh <pyeh@google.com> | 2018-06-01 16:15:24 +0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-06-20 14:23:49 -0700 |
commit | 5d825c5c9b9b805b2677b13a891a7edce0802e69 (patch) | |
tree | b2d65413008ec901575e8c291ae338600cf2f87d /include/keyboard_scan.h | |
parent | 7fdaa393dfd0b4da381f62ee50e4b1c056d6eda4 (diff) | |
download | chrome-ec-5d825c5c9b9b805b2677b13a891a7edce0802e69.tar.gz |
ec/google: Add command to fetch keyboard ID from EC
Sort k-prefix host commands and descriptions in alphabetical order
BRANCH=master
BUG=b:80168723
TEST=Check 'ectool kbid' on a reworked DUT using keyboard samples
Change-Id: If2ad654e5ef269d03365db7c3286c2281aa9d9ef
Signed-off-by: paris_yeh <pyeh@google.com>
Reviewed-on: https://chromium-review.googlesource.com/1097997
Commit-Ready: Paris Yeh <pyeh@chromium.org>
Tested-by: Paris Yeh <pyeh@chromium.org>
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Reviewed-by: Paris Yeh <pyeh@chromium.org>
Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
Diffstat (limited to 'include/keyboard_scan.h')
-rw-r--r-- | include/keyboard_scan.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/keyboard_scan.h b/include/keyboard_scan.h index 65492c59bd..7e16fe732f 100644 --- a/include/keyboard_scan.h +++ b/include/keyboard_scan.h @@ -118,4 +118,14 @@ static inline void keyboard_scan_enable(int enable, void keyboard_suppress_noise(void); #endif +#ifdef CONFIG_KEYBOARD_LANGUAGE_ID +/** + * Get the KEYBOARD ID for a keyboard + * + * @return A value that identifies keyboard variants. Its meaning and + * the number of bits actually used is the supported keyboard layout. + */ +int keyboard_get_keyboard_id(void); +#endif + #endif /* __CROS_EC_KEYBOARD_SCAN_H */ |