diff options
author | Raul E Rangel <rrangel@chromium.org> | 2020-02-27 15:18:30 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-03-02 06:55:24 +0000 |
commit | 9ef0de4bc37de91e2a9416e81cd30472dbbff40a (patch) | |
tree | 3129d4d4a535fdfe13343adca3ec201e6c9b13a8 /include/keyboard_8042.h | |
parent | 5c04c6c6a45da6ee226249ef8ec6859931d9b26b (diff) | |
download | chrome-ec-9ef0de4bc37de91e2a9416e81cd30472dbbff40a.tar.gz |
common/keyboard_8042: Add ability to send/receive AUX data
* Added CHAN_AUX to CHAN enum.
* Added two new types to kblog for AUX data.
* Moved mouse methods to handle_mouse_data so they can respond on the
AUX channel.
* Call lpc_aux_put_char to put an AUX byte.
* Added send_aux_data_to_host and send_aux_data_to_device to pipe data in
and out of the 8042. CONFIG_8042_AUX must be set if the board
implements these methods.
BUG=b:145575366
BRANCH=none
TEST=Verified I can see AUX data going in and out.
Signed-off-by: Raul E Rangel <rrangel@chromium.org>
Change-Id: Iea1fc315846a9f768a1d82e309ff0725d1d2a9c2
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2079695
Reviewed-by: Edward Hill <ecgh@chromium.org>
Diffstat (limited to 'include/keyboard_8042.h')
-rw-r--r-- | include/keyboard_8042.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/keyboard_8042.h b/include/keyboard_8042.h index a038e877d1..3c9e87897c 100644 --- a/include/keyboard_8042.h +++ b/include/keyboard_8042.h @@ -45,4 +45,18 @@ void keyboard_host_write(int data, int is_cmd); enum ec_error_list keyboard_scancode_callback(uint16_t *make_code, int8_t pressed); +/** + * Send aux response data to host. + * + * @param data Aux response to send to host. + */ +void send_aux_data_to_host(uint8_t data); + +/** + * Send aux data to device. + * + * @param data Aux data to send to device. + */ +void send_aux_data_to_device(uint8_t data); + #endif /* __CROS_EC_KEYBOARD_8042_H */ |