commit | 4b48eaff93cbaf0b9c5a197c0f81b4e8f0cf16b2 | [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 | f406a1b9824d599ab6f8dbd10a69b227d9bce073 [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>