aboutsummaryrefslogtreecommitdiff
path: root/drivers/input
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2012-09-27 15:18:43 +0000
committerTom Rini <trini@ti.com>2012-10-15 11:54:04 -0700
commit14813f19e36ba313fadaa8cf4716c1b8c1564cde (patch)
tree0ba83d199d8f636077929930960e1116272536ea /drivers/input
parent71dc6bca4ef61d10f1327114ac1d53b6865a6030 (diff)
downloadu-boot-14813f19e36ba313fadaa8cf4716c1b8c1564cde.zip
u-boot-14813f19e36ba313fadaa8cf4716c1b8c1564cde.tar.gz
u-boot-14813f19e36ba313fadaa8cf4716c1b8c1564cde.tar.bz2
input: Add debugging for key matrix key codes
These are read from the fdt - add a debug feature to display the mapping on start-up. See that we get debug output listing the keycodes Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/input')
-rw-r--r--drivers/input/key_matrix.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/input/key_matrix.c b/drivers/input/key_matrix.c
index 287bf0d..946a186 100644
--- a/drivers/input/key_matrix.c
+++ b/drivers/input/key_matrix.c
@@ -145,6 +145,8 @@ static uchar *create_keymap(struct key_matrix *config, u32 *data, int len,
key_code = tmp & 0xffff;
entry = row * config->num_cols + col;
map[entry] = key_code;
+ debug(" map %d, %d: pos=%d, keycode=%d\n", row, col,
+ entry, key_code);
if (pos && map_keycode == key_code)
*pos = entry;
}