1 /* linux/spi/ad7879.h */
3 /* Touchscreen characteristics vary between boards and models. The
4 * platform_data for the device's "struct device" holds this information.
6 * It's OK if the min/max values are zero.
8 struct ad7879_platform_data
{
13 u16 pressure_min
, pressure_max
;
15 /* [0..255] 0=OFF Starts at 1=550us and goes
16 * all the way to 9.440ms in steps of 35us.
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.
22 u8 first_conversion_delay
;
23 /* [0..3] 0 = 2us, 1 = 4us, 2 = 8us, 3 = 16us */
25 /* [0..3] Average X middle samples 0 = 2, 1 = 4, 2 = 8, 3 = 16 */
27 /* [0..3] Perform X measurements 0 = OFF,
28 * 1 = 4, 2 = 8, 3 = 16 (median > averaging)
31 /* 1 = AUX/VBAT/GPIO set to GPIO Output */
33 /* Initial GPIO pin state (valid if gpio_output = 1) */