blob: 1d5066ebfd135a6a30eaeb6a1a587ae478649a13 [file] [log] [blame]
Flemmardaa9453b2014-01-28 16:03:19 +01001/* include/linux/cy8c_tmg_ts.c
2 *
3 * Copyright (C) 2007-2008 HTC Corporation.
4 *
5 * This software is licensed under the terms of the GNU General Public
6 * License version 2, as published by the Free Software Foundation, and
7 * may be copied, distributed, and modified under those terms.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 */
15
16#ifndef CY8C_I2C_H
17#define CY8C_I2C_H
18
19#include <linux/types.h>
20
21#define CYPRESS_TMA_NAME "CY8CTMA340"
22
23struct cy8c_i2c_platform_data {
24 uint16_t version;
25 uint16_t gpio_irq;
26 uint8_t orient;
27 uint8_t timeout;
28 uint8_t interval;
29 uint8_t unlock_attr;
30 uint8_t auto_reset;
31 int abs_x_min;
32 int abs_x_max;
33 int abs_y_min;
34 int abs_y_max;
35 int abs_pressure_min;
36 int abs_pressure_max;
37 int abs_width_min;
38 int abs_width_max;
39 int (*power)(int on);
40 int (*wake)(void);
41 int (*reset)(void);
42 uint16_t filter_level[4];
43};
44
45#endif
46