]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/asm-arm/arch-omap/keypad.h
ARM: OMAP: Update OMAP keypad driver
[linux-2.6-omap-h63xx.git] / include / asm-arm / arch-omap / keypad.h
index 0d90b4f11ab0a73dbd31b28992068284f2c5a391..548515d503e8eaf97ea2f5e368bd006ce871cf85 100644 (file)
@@ -20,6 +20,16 @@ struct omap_kp_platform_data {
        unsigned int *col_gpios;
 };
 
+/* Group (0..3) -- when multiple keys are pressed, only the
+ * keys pressed in the same group are considered as pressed. This is
+ * in order to workaround certain crappy HW designs that produce ghost
+ * keypresses. */
+#define GROUP_0                (0 << 10)
+#define GROUP_1                (1 << 10)
+#define GROUP_2                (2 << 10)
+#define GROUP_3                (3 << 10)
+#define GROUP_MASK     GROUP_3
+
 #define KEY(col, row, val) (((col) << 28) | ((row) << 24) | (val))
 
 #endif