Skip to content
Snippets Groups Projects
Commit 14813f19 authored by Simon Glass's avatar Simon Glass Committed by Tom Rini
Browse files

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: default avatarSimon Glass <sjg@chromium.org>
parent 71dc6bca
No related branches found
No related tags found
No related merge requests found
...@@ -145,6 +145,8 @@ static uchar *create_keymap(struct key_matrix *config, u32 *data, int len, ...@@ -145,6 +145,8 @@ static uchar *create_keymap(struct key_matrix *config, u32 *data, int len,
key_code = tmp & 0xffff; key_code = tmp & 0xffff;
entry = row * config->num_cols + col; entry = row * config->num_cols + col;
map[entry] = key_code; map[entry] = key_code;
debug(" map %d, %d: pos=%d, keycode=%d\n", row, col,
entry, key_code);
if (pos && map_keycode == key_code) if (pos && map_keycode == key_code)
*pos = entry; *pos = entry;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment