• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * include/linux/synaptics_i2c_rmi.h - platform data structure for f75375s sensor
3  *
4  * Copyright (C) 2008 Google, Inc.
5  *
6  * This software is licensed under the terms of the GNU General Public
7  * License version 2, as published by the Free Software Foundation, and
8  * may be copied, distributed, and modified under those terms.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  *
15  */
16 
17 #ifndef _LINUX_SYNAPTICS_I2C_RMI_H
18 #define _LINUX_SYNAPTICS_I2C_RMI_H
19 
20 #define SYNAPTICS_I2C_RMI_NAME "synaptics-rmi-ts"
21 
22 enum {
23 	SYNAPTICS_FLIP_X = 1UL << 0,
24 	SYNAPTICS_FLIP_Y = 1UL << 1,
25 	SYNAPTICS_SWAP_XY = 1UL << 2,
26 	SYNAPTICS_SNAP_TO_INACTIVE_EDGE = 1UL << 3,
27 };
28 
29 struct synaptics_i2c_rmi_platform_data {
30 	uint32_t version;	/* Use this entry for panels with */
31 				/* (major << 8 | minor) version or above. */
32 				/* If non-zero another array entry follows */
33 	int (*power)(int on);	/* Only valid in first array entry */
34 	uint32_t flags;
35 	unsigned long irqflags;
36 	uint32_t inactive_left; /* 0x10000 = screen width */
37 	uint32_t inactive_right; /* 0x10000 = screen width */
38 	uint32_t inactive_top; /* 0x10000 = screen height */
39 	uint32_t inactive_bottom; /* 0x10000 = screen height */
40 	uint32_t snap_left_on; /* 0x10000 = screen width */
41 	uint32_t snap_left_off; /* 0x10000 = screen width */
42 	uint32_t snap_right_on; /* 0x10000 = screen width */
43 	uint32_t snap_right_off; /* 0x10000 = screen width */
44 	uint32_t snap_top_on; /* 0x10000 = screen height */
45 	uint32_t snap_top_off; /* 0x10000 = screen height */
46 	uint32_t snap_bottom_on; /* 0x10000 = screen height */
47 	uint32_t snap_bottom_off; /* 0x10000 = screen height */
48 	uint32_t fuzz_x; /* 0x10000 = screen width */
49 	uint32_t fuzz_y; /* 0x10000 = screen height */
50 	int fuzz_p;
51 	int fuzz_w;
52 	int8_t sensitivity_adjust;
53 };
54 
55 #endif /* _LINUX_SYNAPTICS_I2C_RMI_H */
56