summaryrefslogtreecommitdiffstats
path: root/include/input
Commit message (Collapse)AuthorAgeFilesLines
* input: Add device tree parsing support for matrix keymapSascha Hauer2016-01-131-3/+3
| | | | | | Add support for parsing the "linux,keymap" property. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* input: move matrix_keypad_build_keymap() to C fileSascha Hauer2016-01-131-0/+35
| | | | | | | | Future additions will make the function too big to live as a static inline function. Move to a C file and while at it, move matrix_keypad.h to include/input/ where it belongs to. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* input: Add input coreSascha Hauer2016-01-131-0/+34
| | | | | | | | | | | | | | | | | | | Currently all input driver register themselves as consoles. Consoles are fine for typing text, but they do not allow to ask for the current pressed state of buttons or keypads. They also do not support non printable keys like the function keys. This patch adds a simple input core. On the driver side it supports input_report_key_event() to report events (button presses and releases). On the consumer side it allows getting the current button status via input_key_get_status(). Also an event driven interface is available which calls a callback whenever an input event is received. The input core also registers a console for all registered input devices which handles passing events to the console and stuff like key repetition, so this can be removed from the drivers once they are converted to the input core. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* keymap: Add keymap for keys with shift pressedSascha Hauer2016-01-131-0/+1
| | | | | | | When converting keys to ascii for the console we also need the keymap with shift pressed. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* input: Add keycode to barebox key translation tableSascha Hauer2014-02-171-0/+10
| | | | | | | | 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>
* input: add qt1070 touch keyboard supportJean-Christophe PLAGNIOL-VILLARD2012-11-031-0/+18
use irq pin as the pin is asserted untill we clear it This will allow to do not poll on i2c which slow down barebox If no irq_pin is provided fall back on i2c polling Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>