From f156d3e4833cbc983d6b97fdc297829cea5a1aa0 Mon Sep 17 00:00:00 2001 From: "makarand.karvekar" Date: Fri, 17 Sep 2010 17:01:42 -0500 Subject: [PATCH] [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 --- arch/arm/mach-tegra/board-stingray-touch.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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 -- 2.34.1