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_8042_sharedlib.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_8042_sharedlib.h')
-rw-r--r-- | include/keyboard_8042_sharedlib.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/keyboard_8042_sharedlib.h b/include/keyboard_8042_sharedlib.h index a82e1f85eb..d3f0bdf9db 100644 --- a/include/keyboard_8042_sharedlib.h +++ b/include/keyboard_8042_sharedlib.h @@ -18,7 +18,8 @@ struct button_8042_t { }; /* The standard Chrome OS keyboard matrix table. */ -#ifdef CONFIG_KEYBOARD_SCANCODE_MUTABLE +#if defined(CONFIG_KEYBOARD_SCANCODE_MUTABLE) || \ + defined(CONFIG_KEYBOARD_CUSTOMIZATION) extern uint16_t scancode_set2[KEYBOARD_COLS_MAX][KEYBOARD_ROWS]; #else extern const uint16_t scancode_set2[KEYBOARD_COLS_MAX][KEYBOARD_ROWS]; @@ -69,7 +70,8 @@ enum keycap_long_label_idx { }; extern const char * const keycap_long_label[]; -#ifdef CONFIG_KEYBOARD_SCANCODE_MUTABLE +#if defined(CONFIG_KEYBOARD_SCANCODE_MUTABLE) || \ + defined(CONFIG_KEYBOARD_CUSTOMIZATION) extern char keycap_label[KEYBOARD_COLS_MAX][KEYBOARD_ROWS]; #else extern const char keycap_label[KEYBOARD_COLS_MAX][KEYBOARD_ROWS]; |