aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap1/board-osk.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-omap1/board-osk.c')
-rw-r--r--arch/arm/mach-omap1/board-osk.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/arch/arm/mach-omap1/board-osk.c b/arch/arm/mach-omap1/board-osk.c
index 8f8f50b70588..e0711d23a6b0 100644
--- a/arch/arm/mach-omap1/board-osk.c
+++ b/arch/arm/mach-omap1/board-osk.c
@@ -299,12 +299,17 @@ static struct platform_device *mistral_devices[] __initdata = {
299 &osk5912_lcd_device, 299 &osk5912_lcd_device,
300}; 300};
301 301
302static int mistral_get_pendown_state(void)
303{
304 return !omap_get_gpio_datain(4);
305}
306
302static const struct ads7846_platform_data mistral_ts_info = { 307static const struct ads7846_platform_data mistral_ts_info = {
303 .model = 7846, 308 .model = 7846,
304 .vref_delay_usecs = 100, /* internal, no capacitor */ 309 .vref_delay_usecs = 100, /* internal, no capacitor */
305 .x_plate_ohms = 419, 310 .x_plate_ohms = 419,
306 .y_plate_ohms = 486, 311 .y_plate_ohms = 486,
307 // .{x,y,pressure}_{min,max} 312 .get_pendown_state = mistral_get_pendown_state,
308}; 313};
309 314
310static struct spi_board_info __initdata mistral_boardinfo[] = { { 315static struct spi_board_info __initdata mistral_boardinfo[] = { {