1 /* SPDX-License-Identifier: GPL-2.0-only */
4 * Cypress TrueTouch(TM) Standard Product (TTSP) touchscreen drivers.
5 * For use with Cypress Txx3xx parts.
6 * Supported parts include:
10 * Copyright (C) 2009, 2010, 2011 Cypress Semiconductor, Inc.
18 #define CYTTSP4_MT_NAME "cyttsp4_mt"
19 #define CYTTSP4_I2C_NAME "cyttsp4_i2c_adapter"
20 #define CYTTSP4_SPI_NAME "cyttsp4_spi_adapter"
22 #define CY_TOUCH_SETTINGS_MAX 32
24 struct touch_framework {
30 struct cyttsp4_mt_platform_data {
31 struct touch_framework *frmwrk;
33 char const *inp_dev_name;
36 struct touch_settings {
42 struct cyttsp4_core_platform_data {
46 int (*xres)(struct cyttsp4_core_platform_data *pdata,
48 int (*init)(struct cyttsp4_core_platform_data *pdata,
49 int on, struct device *dev);
50 int (*power)(struct cyttsp4_core_platform_data *pdata,
51 int on, struct device *dev, atomic_t *ignore_irq);
52 int (*irq_stat)(struct cyttsp4_core_platform_data *pdata,
54 struct touch_settings *sett[CY_TOUCH_SETTINGS_MAX];
57 struct cyttsp4_platform_data {
58 struct cyttsp4_core_platform_data *core_pdata;
59 struct cyttsp4_mt_platform_data *mt_pdata;
62 #endif /* _CYTTSP4_H_ */