| Michael Hennerich | b4be468 | 2009-03-09 20:12:52 -0700 | [diff] [blame] | 1 | /* linux/spi/ad7879.h */ | 
|  | 2 |  | 
|  | 3 | /* Touchscreen characteristics vary between boards and models.  The | 
|  | 4 | * platform_data for the device's "struct device" holds this information. | 
|  | 5 | * | 
|  | 6 | * It's OK if the min/max values are zero. | 
|  | 7 | */ | 
|  | 8 | struct ad7879_platform_data { | 
|  | 9 | u16	model;			/* 7879 */ | 
|  | 10 | u16	x_plate_ohms; | 
|  | 11 | u16	x_min, x_max; | 
|  | 12 | u16	y_min, y_max; | 
|  | 13 | u16	pressure_min, pressure_max; | 
|  | 14 |  | 
|  | 15 | /* [0..255] 0=OFF Starts at 1=550us and goes | 
|  | 16 | * all the way to 9.440ms in steps of 35us. | 
|  | 17 | */ | 
|  | 18 | u8	pen_down_acc_interval; | 
|  | 19 | /* [0..15] Starts at 0=128us and goes all the | 
|  | 20 | * way to 4.096ms in steps of 128us. | 
|  | 21 | */ | 
|  | 22 | u8	first_conversion_delay; | 
|  | 23 | /* [0..3] 0 = 2us, 1 = 4us, 2 = 8us, 3 = 16us */ | 
|  | 24 | u8	acquisition_time; | 
|  | 25 | /* [0..3] Average X middle samples 0 = 2, 1 = 4, 2 = 8, 3 = 16 */ | 
|  | 26 | u8	averaging; | 
|  | 27 | /* [0..3] Perform X measurements 0 = OFF, | 
|  | 28 | * 1 = 4, 2 = 8, 3 = 16 (median > averaging) | 
|  | 29 | */ | 
|  | 30 | u8	median; | 
| Michael Hennerich | ec51b7f | 2010-01-19 00:27:58 -0800 | [diff] [blame] | 31 | /* 1 = AUX/VBAT/GPIO export GPIO to gpiolib | 
|  | 32 | * requires CONFIG_GPIOLIB | 
|  | 33 | */ | 
|  | 34 | bool	gpio_export; | 
|  | 35 | /* identifies the first GPIO number handled by this chip; | 
|  | 36 | * or, if negative, requests dynamic ID allocation. | 
|  | 37 | */ | 
|  | 38 | s32	gpio_base; | 
| Michael Hennerich | b4be468 | 2009-03-09 20:12:52 -0700 | [diff] [blame] | 39 | }; |