Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e8cdf7bd authored by David Brownell's avatar David Brownell Committed by Tony Lindgren
Browse files

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: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 495f71db
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -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[] = { {