/* * Copyright (C) 2010 ST Microelectronics * Rajeev Kumar <[email protected]> * * This file is licensed under the terms of the GNU General Public * License version 2. This program is licensed "as is" without any * warranty of any kind, whether express or implied. */ #ifndef __PLAT_KEYBOARD_H #define __PLAT_KEYBOARD_H #include <linux/bitops.h> #include <linux/input.h> #include <linux/input/matrix_keypad.h> #include <linux/types.h> #define DECLARE_9x9_KEYMAP(_name) … #define DECLARE_6x6_KEYMAP(_name) … #define KEYPAD_9x9 … #define KEYPAD_6x6 … #define KEYPAD_2x2 … /** * struct kbd_platform_data - spear keyboard platform data * keymap: pointer to keymap data (table and size) * rep: enables key autorepeat * mode: choose keyboard support(9x9, 6x6, 2x2) * suspended_rate: rate at which keyboard would operate in suspended mode * * This structure is supposed to be used by platform code to supply * keymaps to drivers that implement keyboards. */ struct kbd_platform_data { … }; #endif /* __PLAT_KEYBOARD_H */