commit | 31d38ee66dfad4284866267ff0651fa0614dad3c | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Sun Oct 18 21:17:19 2015 -0600 |
committer | Simon Glass <sjg@chromium.org> | Thu Nov 19 20:13:40 2015 -0700 |
tree | 52e324ca52b1f401bdbf99f6a029684f7415ef44 | |
parent | 7fe0933c5898e5cce70407184fd458cf3ad9ee32 [diff] |
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: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Tested-on: Intel Crown Bay and QEMU Tested-by: Bin Meng <bmeng.cn@gmail.com>