blob: 149133eb90b415c1948d7f9bdd4143c0602deafb [file] [log] [blame]
Mohan Pallakaa2595072012-01-12 22:23:15 +05301/*
2 *
3 * FocalTech ft5x06 TouchScreen driver header file.
4 *
5 * Copyright (c) 2010 Focal tech Ltd.
Mohan Pallaka3a138202013-05-09 16:30:00 +05306 * Copyright (c) 2012-2013, The Linux Foundation. All rights reserved.
Mohan Pallakaa2595072012-01-12 22:23:15 +05307 *
8 * This software is licensed under the terms of the GNU General Public
9 * License version 2, as published by the Free Software Foundation, and
10 * may be copied, distributed, and modified under those terms.
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 */
18#ifndef __LINUX_FT5X06_TS_H__
19#define __LINUX_FT5X06_TS_H__
20
Mohan Pallaka3a138202013-05-09 16:30:00 +053021#define FT5X06_ID 0x55
22#define FT5X16_ID 0x0A
23#define FT5X36_ID 0x14
24#define FT6X06_ID 0x06
25
Mohan Pallaka9eb064d2013-08-13 16:11:47 +053026struct fw_upgrade_info {
27 bool auto_cal;
28 u16 delay_aa;
29 u16 delay_55;
30 u8 upgrade_id_1;
31 u8 upgrade_id_2;
32 u16 delay_readid;
33 u16 delay_erase_flash;
34};
35
Mohan Pallakaa2595072012-01-12 22:23:15 +053036struct ft5x06_ts_platform_data {
Mohan Pallaka9eb064d2013-08-13 16:11:47 +053037 struct fw_upgrade_info info;
38 const char *name;
39 const char *fw_name;
Mohan Pallaka3a138202013-05-09 16:30:00 +053040 u32 irqflags;
41 u32 irq_gpio;
42 u32 irq_gpio_flags;
43 u32 reset_gpio;
44 u32 reset_gpio_flags;
45 u32 family_id;
Mohan Pallakaa2595072012-01-12 22:23:15 +053046 u32 x_max;
47 u32 y_max;
Mohan Pallaka3a138202013-05-09 16:30:00 +053048 u32 x_min;
49 u32 y_min;
50 u32 panel_minx;
51 u32 panel_miny;
52 u32 panel_maxx;
53 u32 panel_maxy;
Mohan Pallaka9eb064d2013-08-13 16:11:47 +053054 u32 group_id;
55 u32 hard_rst_dly;
56 u32 soft_rst_dly;
57 u32 num_max_touches;
Mohan Pallakaa348d752013-08-28 13:44:36 +053058 bool fw_vkey_support;
Mohan Pallaka3a138202013-05-09 16:30:00 +053059 bool no_force_update;
60 bool i2c_pull_up;
Mohan Pallakaa2595072012-01-12 22:23:15 +053061 int (*power_init) (bool);
62 int (*power_on) (bool);
63};
64
65#endif