diff options
author | David Brownell <dbrownell@users.sourceforge.net> | 2006-06-27 01:16:04 +0200 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2006-06-27 01:16:04 +0200 |
commit | e8cdf7bdf3efbb1e285fd82a86a3f8fae5ae2665 (patch) | |
tree | cceb1d88948fa987b3e6f2724ab451b9a1b36324 /arch/arm/mach-omap1 | |
parent | ARM: OMAP: Add core fsample support (diff) | |
download | linux-e8cdf7bdf3efbb1e285fd82a86a3f8fae5ae2665.tar.xz linux-e8cdf7bdf3efbb1e285fd82a86a3f8fae5ae2665.zip |
ARM: OMAP: Mistral ads7846 pendown state
Syncing the ads7846 code with mainstream means that the Mistral support
needs to include a callback to read the pendown state.
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap1')
-rw-r--r-- | arch/arm/mach-omap1/board-osk.c | 7 |
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 = { &osk5912_lcd_device, }; +static int mistral_get_pendown_state(void) +{ + return !omap_get_gpio_datain(4); +} + static const struct ads7846_platform_data mistral_ts_info = { .model = 7846, .vref_delay_usecs = 100, /* internal, no capacitor */ .x_plate_ohms = 419, .y_plate_ohms = 486, - // .{x,y,pressure}_{min,max} + .get_pendown_state = mistral_get_pendown_state, }; static struct spi_board_info __initdata mistral_boardinfo[] = { { |