aboutsummaryrefslogtreecommitdiff
path: root/drivers/input/misc/Makefile
diff options
context:
space:
mode:
authorPhil Sutter <n0-1@freewrt.org>2009-03-04 23:27:15 -0800
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2009-03-09 20:10:12 -0700
commitd9bdffd2102404e8ea5f71c5b88dad890984164d (patch)
treec8deba7479dc3ba6140dd6c55742dbb16f819db7 /drivers/input/misc/Makefile
parent73969ff0eda233f140bcbed1251431387b43f383 (diff)
Input: add driver for S1 button of rb532
Mikrotik's Routerboard 532 has two builtin buttons, from which one triggers a hardware reset. The other one is accessible through GPIO pin 1. Sadly, this pin is being multiplexed with UART0 input, so enabling it as interrupt source (as implied by the gpio-keys driver) is not possible unless UART0 has been turned off. The later one though is a rather bad idea as the Routerboard is an embedded device with only a single serial port, so it's almost always used as serial console device. This patch adds a driver based on INPUT_POLLDEV, which disables the UART and reconfigures GPIO pin 1 temporarily while reading the button state. This procedure works fine and has been tested as part of another, unpublished driver for this device. Signed-off-by: Phil Sutter <n0-1@freewrt.org> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input/misc/Makefile')
-rw-r--r--drivers/input/misc/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/input/misc/Makefile b/drivers/input/misc/Makefile
index e86cee66c91..e94cfd9be6c 100644
--- a/drivers/input/misc/Makefile
+++ b/drivers/input/misc/Makefile
@@ -23,4 +23,5 @@ obj-$(CONFIG_INPUT_APANEL) += apanel.o
obj-$(CONFIG_INPUT_SGI_BTNS) += sgi_btns.o
obj-$(CONFIG_INPUT_PCF50633_PMU) += pcf50633-input.o
obj-$(CONFIG_INPUT_GPIO_ROTARY_ENCODER) += rotary_encoder.o
+obj-$(CONFIG_INPUT_RB532_BUTTON) += rb532_button.o