diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2016-01-12 13:50:42 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2016-01-13 16:26:05 +0100 |
commit | 224a08df5d9eed4e75d436911ffaca6b0af5a689 (patch) | |
tree | fdee657b62f4a463b6d45d598da1ce788f87053c /drivers/input/Kconfig | |
parent | cfe4e61df18748001aedc201a0a35652f946802e (diff) | |
download | barebox-224a08df5d9eed4e75d436911ffaca6b0af5a689.tar.gz barebox-224a08df5d9eed4e75d436911ffaca6b0af5a689.tar.xz |
input: Add input core
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>
Diffstat (limited to 'drivers/input/Kconfig')
-rw-r--r-- | drivers/input/Kconfig | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/input/Kconfig b/drivers/input/Kconfig index 336b9f5814..e0368b2439 100644 --- a/drivers/input/Kconfig +++ b/drivers/input/Kconfig @@ -5,6 +5,9 @@ menu "Input device support" depends on !CONSOLE_NONE +config INPUT + bool + config KEYBOARD_GPIO bool "GPIO Buttons" depends on GENERIC_GPIO |