3 * Cypress TrueTouch(TM) Standard Product (TTSP) touchscreen drivers.
4 * For use with Cypress Txx3xx parts.
5 * Supported parts include:
9 * Copyright (C) 2009, 2010, 2011 Cypress Semiconductor, Inc.
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * version 2, and only version 2, as published by the
15 * Free Software Foundation.
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
22 * You should have received a copy of the GNU General Public License along
23 * with this program; if not, write to the Free Software Foundation, Inc.,
24 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
32 #define CYTTSP4_MT_NAME "cyttsp4_mt"
33 #define CYTTSP4_I2C_NAME "cyttsp4_i2c_adapter"
34 #define CYTTSP4_SPI_NAME "cyttsp4_spi_adapter"
36 #define CY_TOUCH_SETTINGS_MAX 32
38 struct touch_framework {
44 struct cyttsp4_mt_platform_data {
45 struct touch_framework *frmwrk;
47 char const *inp_dev_name;
50 struct touch_settings {
56 struct cyttsp4_core_platform_data {
60 int (*xres)(struct cyttsp4_core_platform_data *pdata,
62 int (*init)(struct cyttsp4_core_platform_data *pdata,
63 int on, struct device *dev);
64 int (*power)(struct cyttsp4_core_platform_data *pdata,
65 int on, struct device *dev, atomic_t *ignore_irq);
66 int (*irq_stat)(struct cyttsp4_core_platform_data *pdata,
68 struct touch_settings *sett[CY_TOUCH_SETTINGS_MAX];
71 struct cyttsp4_platform_data {
72 struct cyttsp4_core_platform_data *core_pdata;
73 struct cyttsp4_mt_platform_data *mt_pdata;
76 #endif /* _CYTTSP4_H_ */