]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commit222fcb8d9f7d70bcd9557910f2cf8133350f261d
treea1f2f84786fed424a19483f3f996e4454963cfd3
parent37d91c543912c815f3d09cdca3c0942a6f4ec7ad
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