rendered paste bodystatic int htcartemis_get_pendown_state(void)
{
return !omap_get_gpio_datain(76);
}
static const struct ads7846_platform_data htcartemis_ts_info = {
.model = 7846,
.vref_delay_usecs = 100, /* internal, no capacitor */
.x_plate_ohms = 419,
.y_plate_ohms = 486,
.get_pendown_state = htcartemis_get_pendown_state,
};
static struct spi_board_info __initdata htcartemis_boardinfo[] = { {
/* MicroWire (bus 2) CS0 has an ads7846e */
.modalias = "ads7846",
.platform_data = &htcartemis_ts_info,
.irq = OMAP_GPIO_IRQ(76),
.max_speed_hz = 120000 /* max sample rate at 3V */
* 26 /* command + data + overhead */,
.bus_num = 2,
.chip_select = 0,
} };