From: makarand.karvekar Date: Fri, 17 Sep 2010 22:01:42 +0000 (-0500) Subject: [ARM] tegra: stingray: touch P3 HW support X-Git-Tag: firefly_0821_release~9834^2~514 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=f156d3e4833cbc983d6b97fdc297829cea5a1aa0;p=firefly-linux-kernel-4.4.55.git [ARM] tegra: stingray: touch P3 HW support touch interrupt gpio is PV2 for P3 HW. P3 follows P1 and P2 touch configuration settings. Change-Id: I117009ecd2146a28009082d901fc71f236f55353 Signed-off-by: makarand.karvekar --- diff --git a/arch/arm/mach-tegra/board-stingray-touch.c b/arch/arm/mach-tegra/board-stingray-touch.c index e1a0394e4694..e43a66d9902d 100644 --- a/arch/arm/mach-tegra/board-stingray-touch.c +++ b/arch/arm/mach-tegra/board-stingray-touch.c @@ -406,8 +406,8 @@ struct qtouch_ts_platform_data stingray_touch_data_p0 = { }, }; -/* Portable P1 and P2 */ -struct qtouch_ts_platform_data stingray_touch_data_p1p2 = { +/* Portable P1 and later versions */ +struct qtouch_ts_platform_data stingray_touch_data_p1_or_later = { .flags = (QTOUCH_USE_MULTITOUCH | QTOUCH_CFG_BACKUPNV), @@ -618,8 +618,10 @@ int __init stingray_touch_init(void) TEGRA_GPIO_TO_IRQ(touch_int_gpio); if ((stingray_revision() == STINGRAY_REVISION_P1) || - (stingray_revision() == STINGRAY_REVISION_P2)) - stingray_i2c_bus1_touch_info[0].platform_data = &stingray_touch_data_p1p2; + (stingray_revision() == STINGRAY_REVISION_P2) || + (stingray_revision() == STINGRAY_REVISION_P3)) + stingray_i2c_bus1_touch_info[0].platform_data = + &stingray_touch_data_p1_or_later; else if (stingray_revision() == STINGRAY_REVISION_P0) stingray_i2c_bus1_touch_info[0].platform_data = &stingray_touch_data_p0; else