|
@@ -140,10 +140,15 @@ int _name[] = { \
|
|
KEY(5, 5, KEY_ZENKAKUHANKAKU), \
|
|
KEY(5, 5, KEY_ZENKAKUHANKAKU), \
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+#define KEYPAD_9x9 0
|
|
|
|
+#define KEYPAD_6x6 1
|
|
|
|
+#define KEYPAD_2x2 2
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* struct kbd_platform_data - spear keyboard platform data
|
|
* struct kbd_platform_data - spear keyboard platform data
|
|
* keymap: pointer to keymap data (table and size)
|
|
* keymap: pointer to keymap data (table and size)
|
|
* rep: enables key autorepeat
|
|
* rep: enables key autorepeat
|
|
|
|
+ * mode: choose keyboard support(9x9, 6x6, 2x2)
|
|
*
|
|
*
|
|
* This structure is supposed to be used by platform code to supply
|
|
* This structure is supposed to be used by platform code to supply
|
|
* keymaps to drivers that implement keyboards.
|
|
* keymaps to drivers that implement keyboards.
|
|
@@ -151,6 +156,7 @@ int _name[] = { \
|
|
struct kbd_platform_data {
|
|
struct kbd_platform_data {
|
|
const struct matrix_keymap_data *keymap;
|
|
const struct matrix_keymap_data *keymap;
|
|
bool rep;
|
|
bool rep;
|
|
|
|
+ unsigned int mode;
|
|
};
|
|
};
|
|
|
|
|
|
/* This function is used to set platform data field of pdev->dev */
|
|
/* This function is used to set platform data field of pdev->dev */
|