PageRenderTime 11ms CodeModel.GetById 1ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 0ms

/include/linux/input/cy8c_ts.h

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