Nokia RX-51: Fix double space key press
authorPali Rohár <pali@kernel.org>
Sun, 9 Oct 2022 19:38:25 +0000 (21:38 +0200)
committerTom Rini <trini@konsulko.com>
Wed, 12 Oct 2022 15:11:58 +0000 (11:11 -0400)
commitedb47d612fe9ddca77cd583f14c71517f065405f
treea1f2f84786fed424a19483f3f996e4454963cfd3
parent767ecc5f9ff932c2f8361238d50c1dc6e7d07dce
Nokia RX-51: Fix double space key press

Space key is indicated by two different bits. Some HW models indicate press
of space key only by the first bit. Qemu indicates it by both bits at the
same time, which is currently interpreted by u-boot as double key press.

Fix this issue by setting first bit when only second is set (to support HW
models which indicate press only by second bit) and always clearing second
bit before processing to not report double space key press.

Signed-off-by: Pali Rohár <pali@kernel.org>
board/nokia/rx51/rx51.c