diff options
author | Vijay Kumar B <vijaykumar@zilogic.com> | 2016-10-04 13:28:07 +0100 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2016-10-04 13:28:07 +0100 |
commit | 8cb2d2db50eed3e708b9504891735e78f00e6e3d (patch) | |
tree | c2712f81bfb1af71dba0100fdb1a3ab6443d2384 /hw/arm | |
parent | a1f8193bb41283923710f23faf436b6b0a7bb3f2 (diff) |
mainstone: Fix incorrect key mapping for Enter key.
According to the manual the (5, 5) corresponds to backspace key, and
not Enter key. Linux kernel maps (5, 4) to the enter key. Fixing it up
to match the mapping in the Linux kernel.
Signed-off-by: Vijay Kumar B. <vijaykumar@zilogic.com>
Reviewed-by: Deepak S. <deepak@zilogic.com>
Message-id: 1475063033-8176-2-git-send-email-vijaykumar@zilogic.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/arm')
-rw-r--r-- | hw/arm/mainstone.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/arm/mainstone.c b/hw/arm/mainstone.c index 454acc5d2b..e81b8783f9 100644 --- a/hw/arm/mainstone.c +++ b/hw/arm/mainstone.c @@ -88,7 +88,7 @@ static const struct keymap map[0xE0] = { * Matrix position {5,4} and other keys are missing here. * TODO: Compare with Linux code and test real hardware. */ - [0x1c] = {5,5}, /* enter (TODO: might be wrong) */ + [0x1c] = {5,4}, /* enter */ [0xc8] = {6,0}, /* up */ [0xd0] = {6,1}, /* down */ [0xcb] = {6,2}, /* left */ |