Skip to content
Snippets Groups Projects
Commit 31d38ee6 authored by Simon Glass's avatar Simon Glass
Browse files

i8042: Use functions to handle register access


At present the register access in kbd_reset() is quite primitive. This makes
it hard to follow.

Create functions to read and write data, both to a single register, and via
the command/data approach.

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
Reviewed-by: default avatarBin Meng <bmeng.cn@gmail.com>
Tested-on: Intel Crown Bay and QEMU
Tested-by: default avatarBin Meng <bmeng.cn@gmail.com>
parent 7fe0933c
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment