ARM: tegra: wake table update
Bitan Biswas [Mon, 24 Jun 2013 11:01:32 +0000 (16:01 +0530)]
Wake table for T14x updated to enable tested wake sources

bug 1313181

Change-Id: I0c1679d704c981f9876280166957a863d7f6d960
Signed-off-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-on: http://git-master/r/241440
(cherry picked from commit da08d926eaab177bb8a52968096c71f26b5e87e4)
Reviewed-on: http://git-master/r/247136
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

arch/arm/mach-tegra/wakeups-t14x.c

index f9c772b..a10b00d 100644 (file)
@@ -30,17 +30,17 @@ static int tegra_gpio_wakes[] = {
        TEGRA_GPIO_PL0,                         /* wake0 */
        TEGRA_GPIO_PL2,                         /* wake1 */
        TEGRA_GPIO_PM2,                         /* wake2 */
-       -EINVAL,                                /* wake3 */
+       TEGRA_GPIO_PB4,                         /* wake3 */
        TEGRA_GPIO_PM4,                         /* wake4 */
        TEGRA_GPIO_PM7,                         /* wake5 */
        TEGRA_GPIO_PN1,                         /* wake6 */
        TEGRA_GPIO_PO0,                         /* wake7 */
        TEGRA_GPIO_PO1,                         /* wake8 */
        TEGRA_GPIO_PO2,                         /* wake9 */
-       -EINVAL,                                /* wake10 */
+       TEGRA_GPIO_PC3,                         /* wake10 */
        TEGRA_GPIO_PO3,                         /* wake11 */
        TEGRA_GPIO_PO4,                         /* wake12 */
-       -EINVAL,                                /* wake13 */
+       TEGRA_GPIO_PA4,                         /* wake13 */
        TEGRA_GPIO_PO5,                         /* wake14 */
        TEGRA_GPIO_PO6,                         /* wake15 */
        -EINVAL,                                /* wake16 */
@@ -56,7 +56,7 @@ static int tegra_gpio_wakes[] = {
        TEGRA_GPIO_PJ2,                         /* wake26 */
        TEGRA_GPIO_PJ3,                         /* wake27 */
        TEGRA_GPIO_PJ4,                         /* wake28 */
-       -EINVAL,                                /* wake29 */
+       TEGRA_GPIO_PJ0,                         /* wake29 */
        -EINVAL,                                /* wake30 */
        -EINVAL,                                /* wake31 */
        -EINVAL,                                /* wake32 */
@@ -74,15 +74,15 @@ static int tegra_gpio_wakes[] = {
        -EINVAL,                                /* wake44 */
        TEGRA_GPIO_PBB6,                        /* wake45 */
        -EINVAL,                                /* wake46 */
-       -EINVAL,                                /* wake47 */
+       TEGRA_GPIO_PL6,                         /* wake47 */
        -EINVAL,                                /* wake48 */
        TEGRA_GPIO_PR7,                         /* wake49 */
        TEGRA_GPIO_PR4,                         /* wake50 */
        -EINVAL,                                /* wake51 */
-       -EINVAL,                                /* wake52 */
+       TEGRA_GPIO_PN5,                         /* wake52 */
        -EINVAL,                                /* wake53 */
        TEGRA_GPIO_PQ5,                         /* wake54 */
-       -EINVAL,                                /* wake55 */
+       TEGRA_GPIO_PK3,                         /* wake55 */
        -EINVAL,                                /* wake56 */
        -EINVAL,                                /* wake57 */
        -EINVAL,                                /* wake58 */
@@ -97,21 +97,21 @@ static int tegra_wake_event_irq[] = {
        -EAGAIN, /* SPI3_MOSI */                /* wake0 */
        -EAGAIN, /* SPI3_SCK */                 /* wake1 */
        -EAGAIN, /* BT_WAKE_AP */               /* wake2 */
-       INT_SDMMC3, /* SDMMC3 DAT1 */           /* wake3 */
+       -EAGAIN, /* SDMMC3 DAT1 */              /* wake3 */
        -EAGAIN, /* NFC_INT_L */                /* wake4 */
        -EAGAIN, /* MOTION_INT_L */             /* wake5 */
        -EAGAIN, /* TOUCH_INT_L */              /* wake6 */
        -EAGAIN,                                /* wake7 */
        -EAGAIN,                                /* wake8 */
-       INT_UARTC, /* UART3 RXD */              /* wake9 */
-       INT_SDMMC4, /* SDMMC4 DAT1 */           /* wake10 */
+       -EAGAIN, /* UART3 RXD */                /* wake9 */
+       -EAGAIN, /* SDMMC4 DAT1 */              /* wake10 */
        -EAGAIN,                                /* wake11 */
        -EAGAIN,                                /* wake12 */
-       INT_SDMMC1, /* SDMMC1 DAT1 */           /* wake13 */
+       -EAGAIN, /* SDMMC1 DAT1 */              /* wake13 */
        -EAGAIN,                                /* wake14 */
-       INT_THERMAL,                            /* wake15 */
-       INT_RTC,                                /* wake16 */
-       INT_KBC,                                /* wake17 */
+       -EAGAIN, /* INT_EDP */                  /* wake15 */
+       -EINVAL, /* Tegra RTC */                /* wake16 */
+       -EINVAL, /* Tegra KBC */                /* wake17 */
        INT_EXTERNAL_PMU,                       /* wake18 */
        -EINVAL, /* removed USB1 VBUS wake */   /* wake19 */
        -EINVAL, /* removed USB2 VBUS wake */   /* wake20 */
@@ -123,14 +123,14 @@ static int tegra_wake_event_irq[] = {
        -EAGAIN, /* KB_ROW1 */                  /* wake26 */
        -EAGAIN, /* KB_ROW2 */                  /* wake27 */
        -EAGAIN, /* KB_COL0 */                  /* wake28 */
-       INT_MIPI_BIF, /* BCL */                 /* wake29 */
-       INT_AUDIO_CLUSTER, /* I2S0 SDATA OUT */ /* wake30 */
+       -EINVAL, /* INT_MIPI_BIF - BCL */       /* wake29 */
+       -EINVAL, /* I2S0 SDATA OUT */           /* wake30 */
        -EINVAL,                                /* wake31 */
        -EINVAL, /* ULPI DATA3 */               /* wake32 */
        -EAGAIN,                                /* wake33 */
        -EAGAIN,                                /* wake34 */
        -EAGAIN,                                /* wake35 */
-       -EAGAIN,                                /* wake36 */
+       -EINVAL,                                /* wake36 */
        -EINVAL, /* removed USB3 VBUS wake */   /* wake37 */
        -EINVAL, /* removed USB3 ID wake */     /* wake38 */
        INT_USB, /* USB1 UTMIP */               /* wake39 */
@@ -138,26 +138,26 @@ static int tegra_wake_event_irq[] = {
        -EINVAL, /* removed USB3 UTMIP wake */  /* wake41 */
        INT_USB2, /* USB2 UHSIC PHY */          /* wake42 */
        -EINVAL, /* removed USB3 UHSIC PHY wake */      /* wake43 */
-       INT_I2C, /* I2C1 DAT */                 /* wake44 */
+       -EINVAL, /* I2C1 DAT */                 /* wake44 */
        -EAGAIN,                                /* wake45 */
-       INT_I2C5, /* PWR I2C DAT */             /* wake46 */
-       INT_I2C2, /* I2C2 DAT */                /* wake47 */
-       INT_I2C3, /* I2C3 DAT */                /* wake48 */
+       -EINVAL, /* PWR I2C DAT */              /* wake46 */
+       -EAGAIN, /* I2C2 DAT */                 /* wake47 */
+       -EINVAL, /* I2C3 DAT */                 /* wake48 */
        -EAGAIN,                                /* wake49 */
        -EAGAIN,                                /* wake50 */
-       INT_KBC, /* KBC11 */                    /* wake51 */
-       INT_HDMI, /* HDMI CEC */                /* wake52 */
-       INT_I2C3, /* I2C3 CLK */                /* wake53 */
+       -EINVAL, /* KBC11 */                    /* wake51 */
+       -EAGAIN, /* HDMI CEC */                 /* wake52 */
+       -EINVAL, /* I2C3 CLK */                 /* wake53 */
        -EAGAIN,                                /* wake54 */
-       INT_UARTC, /* UART3 CTS */              /* wake55 */
-       -EAGAIN,                                /* wake56 */
-       -EAGAIN,                                /* wake57 */
-       -EAGAIN,                                /* wake58 */
+       -EAGAIN, /* UART3 CTS */                /* wake55 */
+       -EINVAL,                                /* wake56 */
+       -EINVAL,                                /* wake57 */
+       -EINVAL,                                /* wake58 */
        INT_BB2AP_INT0,                         /* wake59 */
-       -EAGAIN,                                /* wake60 */
-       -EAGAIN,                                /* wake61 */
-       -EAGAIN,                                /* wake62 */
-       -EAGAIN,                                /* wake63 */
+       -EINVAL,                                /* wake60 */
+       -EINVAL,                                /* wake61 */
+       -EINVAL,                                /* wake62 */
+       -EINVAL,                                /* wake63 */
 };
 
 static int last_gpio = -1;