[ARM] tegra: stingray: touch P3 HW support
authormakarand.karvekar <makarand.karvekar@motorola.com>
Fri, 17 Sep 2010 22:01:42 +0000 (17:01 -0500)
committerColin Cross <ccross@android.com>
Thu, 7 Oct 2010 00:03:15 +0000 (17:03 -0700)
touch interrupt gpio is PV2 for P3 HW.
P3 follows P1 and P2 touch configuration settings.

Change-Id: I117009ecd2146a28009082d901fc71f236f55353
Signed-off-by: makarand.karvekar <makarand.karvekar@motorola.com>
arch/arm/mach-tegra/board-stingray-touch.c

index e1a0394e4694aa3afbe3c05bcee8ef313b274e2f..e43a66d9902d68650dc3236e2a88259565cce64f 100644 (file)
@@ -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