diff options
author | Alec Berg <alecaberg@chromium.org> | 2015-01-04 14:25:33 -0800 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2015-01-07 02:32:52 +0000 |
commit | 98daf2a9d19624b4a5d315f67644d44a99716e64 (patch) | |
tree | 08482262c6e1139a8a69eefd595df682b7550d68 /include/keyboard_config.h | |
parent | e39f43ed2d79195098c2373389f0495f20e3247c (diff) | |
download | chrome-ec-98daf2a9d19624b4a5d315f67644d44a99716e64.tar.gz |
samus: add hot keys alt+voldown+0|1|2 to set charging portstabilize-6662.B
Add hot key detection for alt + volume down + 0|1|2 to set the
charging port by sending the charge override command to PD MCU.
This should be removed once hot-keys (or some other UI) is added
to higher layers.
BUG=chrome-os-partner:34850
BRANCH=samus
TEST=load onto samus and connect to another samus. use hot keys
and see that charge override command gets set appropriately on
PD MCU.
Change-Id: I7e72d597a02b7aca3326911796d20003f6697077
Signed-off-by: Alec Berg <alecaberg@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/238226
Reviewed-by: Duncan Laurie <dlaurie@chromium.org>
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'include/keyboard_config.h')
-rw-r--r-- | include/keyboard_config.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/keyboard_config.h b/include/keyboard_config.h index ae70bf7352..2c44259929 100644 --- a/include/keyboard_config.h +++ b/include/keyboard_config.h @@ -41,5 +41,17 @@ #define KEYBOARD_COL_VOL_UP 4 #define KEYBOARD_ROW_VOL_UP 0 #define KEYBOARD_MASK_VOL_UP KEYBOARD_ROW_TO_MASK(KEYBOARD_ROW_VOL_UP) +#define KEYBOARD_COL_VOL_DOWN 9 +#define KEYBOARD_ROW_VOL_DOWN 1 +#define KEYBOARD_MASK_VOL_DOWN KEYBOARD_ROW_TO_MASK(KEYBOARD_ROW_VOL_DOWN) +#define KEYBOARD_COL_KEY_0 8 +#define KEYBOARD_ROW_KEY_0 6 +#define KEYBOARD_MASK_KEY_0 KEYBOARD_ROW_TO_MASK(KEYBOARD_ROW_KEY_0) +#define KEYBOARD_COL_KEY_1 1 +#define KEYBOARD_ROW_KEY_1 6 +#define KEYBOARD_MASK_KEY_1 KEYBOARD_ROW_TO_MASK(KEYBOARD_ROW_KEY_1) +#define KEYBOARD_COL_KEY_2 4 +#define KEYBOARD_ROW_KEY_2 6 +#define KEYBOARD_MASK_KEY_2 KEYBOARD_ROW_TO_MASK(KEYBOARD_ROW_KEY_2) #endif /* __CROS_EC_KEYBOARD_CONFIG_H */ |