diff options
author | Zhuohao Lee <zhuohao@chromium.org> | 2020-02-04 12:55:33 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-03-10 20:07:06 +0000 |
commit | 4d4fb482f45f592c35a5920a8a97a1fed70b0477 (patch) | |
tree | 00075194236d14c61c63f8d9dfb6695170cf93a8 /include/keyboard_raw.h | |
parent | 8799bde592c944cb51c9861011d8e57bb58bc50d (diff) | |
download | chrome-ec-4d4fb482f45f592c35a5920a8a97a1fed70b0477.tar.gz |
keyboard: Add a new config for the keyboard customization
In order to support a non-chromeos keyboard matrix, we can
add a new config CONFIG_KEYBOARD_CUSTOMIZATION to customize
the keyboard matrix in the board setting.
BUG=b:148034320
BRANCH=firmware-hatch-12672.B
TEST=build pass
Change-Id: I6a32a1f79aeb09805c5f47f8540ea25f67a34f7f
Signed-off-by: Zhuohao Lee <zhuohao@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2035444
Reviewed-by: Jett Rink <jettrink@chromium.org>
Diffstat (limited to 'include/keyboard_raw.h')
-rw-r--r-- | include/keyboard_raw.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/keyboard_raw.h b/include/keyboard_raw.h index 584af6534d..6c8ecc3b2a 100644 --- a/include/keyboard_raw.h +++ b/include/keyboard_raw.h @@ -106,4 +106,16 @@ static inline void keyboard_raw_set_cols(int cols) { keyboard_cols = cols; } +#ifdef CONFIG_KEYBOARD_CUSTOMIZATION +/* The board implements this function to control the of the keyboard column. + * For example, use the gpio to drive 0 or 1 for the refresh key column. + * @param col: If the value is greater than or equal to 0, the function drive + * the specific column. + * If the value is KEYBOARD_COLUMN_NONE, drive nothing. + * If the value is KEYBOARD_COLUMN_ALL, drive all columns. + * Otherwise, do nothing. + */ +void board_keyboard_drive_col(int col); +#endif + #endif /* __CROS_EC_KEYBOARD_RAW_H */ |