~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/linux/platform_data/cyttsp4.h

Version: ~ [ linux-5.10-rc5 ] ~ [ linux-5.9.10 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.79 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.159 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.208 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.245 ] ~ [ linux-4.8.17 ] ~ [ linux-4.7.10 ] ~ [ linux-4.6.7 ] ~ [ linux-4.5.7 ] ~ [ linux-4.4.245 ] ~ [ linux-4.3.6 ] ~ [ linux-4.2.8 ] ~ [ linux-4.1.52 ] ~ [ linux-4.0.9 ] ~ [ linux-3.19.8 ] ~ [ linux-3.18.140 ] ~ [ linux-3.17.8 ] ~ [ linux-3.16.85 ] ~ [ linux-3.15.10 ] ~ [ linux-3.14.79 ] ~ [ linux-3.13.11 ] ~ [ linux-3.12.74 ] ~ [ linux-3.11.10 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.5 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /*
  2  * Header file for:
  3  * Cypress TrueTouch(TM) Standard Product (TTSP) touchscreen drivers.
  4  * For use with Cypress Txx3xx parts.
  5  * Supported parts include:
  6  * CY8CTST341
  7  * CY8CTMA340
  8  *
  9  * Copyright (C) 2009, 2010, 2011 Cypress Semiconductor, Inc.
 10  * Copyright (C) 2012 Javier Martinez Canillas <javier@dowhile0.org>
 11  *
 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.
 16  *
 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.
 21  *
 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.
 25  *
 26  * Contact Cypress Semiconductor at www.cypress.com (kev@cypress.com)
 27  *
 28  */
 29 #ifndef _CYTTSP4_H_
 30 #define _CYTTSP4_H_
 31 
 32 #define CYTTSP4_MT_NAME "cyttsp4_mt"
 33 #define CYTTSP4_I2C_NAME "cyttsp4_i2c_adapter"
 34 #define CYTTSP4_SPI_NAME "cyttsp4_spi_adapter"
 35 
 36 #define CY_TOUCH_SETTINGS_MAX 32
 37 
 38 struct touch_framework {
 39         const uint16_t  *abs;
 40         uint8_t         size;
 41         uint8_t         enable_vkeys;
 42 } __packed;
 43 
 44 struct cyttsp4_mt_platform_data {
 45         struct touch_framework *frmwrk;
 46         unsigned short flags;
 47         char const *inp_dev_name;
 48 };
 49 
 50 struct touch_settings {
 51         const uint8_t *data;
 52         uint32_t size;
 53         uint8_t tag;
 54 } __packed;
 55 
 56 struct cyttsp4_core_platform_data {
 57         int irq_gpio;
 58         int rst_gpio;
 59         int level_irq_udelay;
 60         int (*xres)(struct cyttsp4_core_platform_data *pdata,
 61                 struct device *dev);
 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,
 67                 struct device *dev);
 68         struct touch_settings *sett[CY_TOUCH_SETTINGS_MAX];
 69 };
 70 
 71 struct cyttsp4_platform_data {
 72         struct cyttsp4_core_platform_data *core_pdata;
 73         struct cyttsp4_mt_platform_data *mt_pdata;
 74 };
 75 
 76 #endif /* _CYTTSP4_H_ */
 77 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | Wiki (Japanese) | Wiki (English) | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

osdn.jp