]> git.dujemihanovic.xyz Git - u-boot.git/commit
input: Add support for keyboard matrix decoding from an fdt
authorBernie Thompson <bhthompson@chromium.org>
Tue, 17 Apr 2012 09:01:31 +0000 (09:01 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Tue, 15 May 2012 06:31:39 +0000 (08:31 +0200)
commit92c27c5193154465df03a4713b1a5323bb18506b
treeb9c630b7e37779e9d62624daea8d58104976b26e
parent9bc590e5119f38fd822dedb16e3e0e2363f09756
input: Add support for keyboard matrix decoding from an fdt

Matrix keyboards require a key map to be set up, and must also deal with
key ghosting.

Create a keyboard matrix management implementation which can be leveraged
by various keyboard drivers. This includes code to read the keymap from
the FDT and perform debouncing.

Signed-off-by: Bernie Thompson <bhthompson@chromium.org>
Signed-off-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Tom Warren <twarren@nvidia.com>
drivers/input/Makefile
drivers/input/key_matrix.c [new file with mode: 0644]
include/key_matrix.h [new file with mode: 0644]