aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input/misc/Kconfig
diff options
context:
space:
mode:
authorHeiko Stübner <heiko@sntech.de>2011-11-29 14:04:09 -0500
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2011-12-01 02:41:16 -0500
commit3bfd5c5baf66e975b0f365a0cda8d75bf2953ebe (patch)
tree49517da40dd6071ed9d3acde9fa1ef97d39ede13 /drivers/input/misc/Kconfig
parenta6c61789c8499381a5fe612f11dc95d0b55e590a (diff)
Input: add generic GPIO-tilt driver
There exist tilt switches that simply report their tilt-state via some gpios. The number and orientation of their axes can vary depending on the switch used and the build of the device. Also two or more one-axis switches could be combined to provide multi-dimensional orientation. One example of a device using such a switch is the family of Qisda ebook readers, where the switch provides information about the landscape / portrait orientation of the device. The example in Documentation/input/gpio-tilt.txt documents exactly this one-axis device. Signed-off-by: Heiko Stuebner <heiko@sntech.de> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input/misc/Kconfig')
-rw-r--r--drivers/input/misc/Kconfig14
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/input/misc/Kconfig b/drivers/input/misc/Kconfig
index 22d875fde53a..e53b443d1e33 100644
--- a/drivers/input/misc/Kconfig
+++ b/drivers/input/misc/Kconfig
@@ -179,6 +179,20 @@ config INPUT_APANEL
179 To compile this driver as a module, choose M here: the module will 179 To compile this driver as a module, choose M here: the module will
180 be called apanel. 180 be called apanel.
181 181
182config INPUT_GPIO_TILT_POLLED
183 tristate "Polled GPIO tilt switch"
184 depends on GENERIC_GPIO
185 select INPUT_POLLDEV
186 help
187 This driver implements support for tilt switches connected
188 to GPIO pins that are not capable of generating interrupts.
189
190 The list of gpios to use and the mapping of their states
191 to specific angles is done via platform data.
192
193 To compile this driver as a module, choose M here: the
194 module will be called gpio_tilt_polled.
195
182config INPUT_IXP4XX_BEEPER 196config INPUT_IXP4XX_BEEPER
183 tristate "IXP4XX Beeper support" 197 tristate "IXP4XX Beeper support"
184 depends on ARCH_IXP4XX 198 depends on ARCH_IXP4XX