1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
/* Header file for:
* Cypress CY8CTMA300 Prototype touchscreen driver.
*
* Copyright (C) 2009, 2010 Cypress Semiconductor, Inc.
* Copyright (c) 2010, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* version 2, and only version 2, as published by the
* Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
* Cypress reserves the right to make changes without further notice
* to the materials described herein. Cypress does not assume any
* liability arising out of the application described herein.
*
* Contact Cypress Semiconductor at www.cypress.com
*
* History:
* (C) 2010 Cypress - Update for GPL distribution
* (C) 2009 Cypress - Assume maintenance ownership
* (C) 2009 Enea - Original prototype
*
*/
#ifndef __CY8C8CTS_H__
#define __CY8C8CTS_H__
/* CY8CTMA300-TMG200 platform data
*/
struct cy8c_ts_platform_data {
int (*power_on)(int on);
int (*dev_setup)(bool on);
const char *ts_name;
u32 dis_min_x; /* display resoltion */
u32 dis_max_x;
u32 dis_min_y;
u32 dis_max_y;
u32 min_touch; /* no.of touches supported */
u32 max_touch;
u32 min_tid; /* track id */
u32 max_tid;
u32 min_width;/* size of the finger */
u32 max_width;
u32 res_x; /* TS resolution */
u32 res_y;
u32 swap_xy;
u32 flags;
u16 invert_x;
u16 invert_y;
u8 nfingers;
u32 irq_gpio;
int resout_gpio;
bool wakeup;
};
#endif
|