···297297 To compile this driver as a module, choose M here: the298298 module will be called max7359_keypad.299299300300+config KEYBOARD_MCS301301+ tristate "MELFAS MCS Touchkey"302302+ depends on I2C303303+ help304304+ Say Y here if you have the MELFAS MCS5000/5080 touchkey controller305305+ chip in your system.306306+307307+ If unsure, say N.308308+309309+ To compile this driver as a module, choose M here: the310310+ module will be called mcs_touchkey.311311+300312config KEYBOARD_IMX301313 tristate "IMX keypad support"302314 depends on ARCH_MXC
···11+/*22+ * Copyright (C) 2009 - 2010 Samsung Electronics Co.Ltd33+ * Author: Joonyoung Shim <jy0922.shim@samsung.com>44+ * Author: HeungJun Kim <riverful.kim@samsung.com>55+ *66+ * This program is free software; you can redistribute it and/or modify it77+ * under the terms of the GNU General Public License as published by the88+ * Free Software Foundation; either version 2 of the License, or (at your99+ * option) any later version.1010+ *1111+ */1212+1313+#ifndef __LINUX_MCS_H1414+#define __LINUX_MCS_H1515+1616+#define MCS_KEY_MAP(v, c) ((((v) & 0xff) << 16) | ((c) & 0xffff))1717+#define MCS_KEY_VAL(v) (((v) >> 16) & 0xff)1818+#define MCS_KEY_CODE(v) ((v) & 0xffff)1919+2020+struct mcs_platform_data {2121+ void (*cfg_pin)(void);2222+2323+ /* touchscreen */2424+ unsigned int x_size;2525+ unsigned int y_size;2626+2727+ /* touchkey */2828+ const u32 *keymap;2929+ unsigned int keymap_size;3030+ unsigned int key_maxval;3131+ bool no_autorepeat;3232+};3333+3434+#endif /* __LINUX_MCS_H */
-24
include/linux/i2c/mcs5000_ts.h
···11-/*22- * mcs5000_ts.h33- *44- * Copyright (C) 2009 Samsung Electronics Co.Ltd55- * Author: Joonyoung Shim <jy0922.shim@samsung.com>66- *77- * This program is free software; you can redistribute it and/or modify it88- * under the terms of the GNU General Public License as published by the99- * Free Software Foundation; either version 2 of the License, or (at your1010- * option) any later version.1111- *1212- */1313-1414-#ifndef __LINUX_MCS5000_TS_H1515-#define __LINUX_MCS5000_TS_H1616-1717-/* platform data for the MELFAS MCS-5000 touchscreen driver */1818-struct mcs5000_ts_platform_data {1919- void (*cfg_pin)(void);2020- int x_size;2121- int y_size;2222-};2323-2424-#endif /* __LINUX_MCS5000_TS_H */