History

Input: matrix_keypad - add support for clustered irq

This one adds support of a combined irq source for the whole matrix keypad. This can be useful if all rows and columns of the keypad are e.g. connected to a GPIO expander, which only has one interrupt line for all events on every single GPIO.

Luotao Fu committed 16 years ago

Commit fb76dd11 parent 1719ec42 files · +86 −28Browse files

Showing the changes to include/linux/input (1 of 2 files). Show all

Unified · Split

include/linux/input/matrix_keypad.h+6−0
@@ -41,6 +41,9 @@ struct matrix_keymap_data { · 40 unmodified lines
4141 * @col_scan_delay_us: delay, measured in microseconds, that is
4242 * needed before we can keypad after activating column gpio
4343 * @debounce_ms: debounce interval in milliseconds
44+ * @clustered_irq: may be specified if interrupts of all row/column GPIOs
45+ * are bundled to one single irq
46+ * @clustered_irq_flags: flags that are needed for the clustered irq
4447 * @active_low: gpio polarity
4548 * @wakeup: controls whether the device should be set up as wakeup
4649 * source
@@ -63,6 +66,9 @@ struct matrix_keypad_platform_data { · 16 unmodified lines
6366 /* key debounce interval in milli-second */
6467 unsigned int debounce_ms;
6568
69+ unsigned int clustered_irq;
70+ unsigned int clustered_irq_flags;
71+
6672 bool active_low;
6773 bool wakeup;
6874 bool no_autorepeat;