diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2014-02-14 10:29:07 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2014-02-17 08:23:41 +0100 |
commit | 2c194e5822e8747940a92766e94b38a4f2c7d38d (patch) | |
tree | 2c8d0da3fa10870f284cc584baf5337c938681c3 /include/input | |
parent | 59d6a0b7f104655afdbe7fd2ec0c4ccecec2a719 (diff) | |
download | barebox-2c194e5822e8747940a92766e94b38a4f2c7d38d.tar.gz barebox-2c194e5822e8747940a92766e94b38a4f2c7d38d.tar.xz |
input: Add keycode to barebox key translation table
Devicetrees specify the keyboard codes for the gpio-keys
driver, so add a table to translate them into something
barebox can use.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/input')
-rw-r--r-- | include/input/keyboard.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/input/keyboard.h b/include/input/keyboard.h new file mode 100644 index 0000000000..dd04690304 --- /dev/null +++ b/include/input/keyboard.h @@ -0,0 +1,10 @@ +#ifndef __INPUT_KEYBOARD_H +#define __INPUT_KEYBOARD_H + +#include <linux/types.h> + +#define NR_KEYS 256 + +extern uint8_t keycode_bb_keys[NR_KEYS]; + +#endif |