arm: tegra: tegratab: set INT_UARTC as st_host_wakup
Harry Hong [Mon, 26 Aug 2013 05:45:17 +0000 (14:45 +0900)]
- add IORESOURCE_IRQ_OPTIONAL in st host wakeup irq resource.
if it's set, don't request irq.
INT_UARTC need to be requested in hsuard driver.
So, don't request it in st host wake drvier. only doing
enable/disable irq in that driver.
- set INT_UARTC as st_host_wakeup irq

bug 1347948

Change-Id: Id6ee39b7307dcbbdc812e531ae743a9e14be03b1
Signed-off-by: Harry Hong <hhong@nvidia.com>
Reviewed-on: http://git-master/r/265923
(cherry picked from commit 2d6b66dda6650ba55ebc6cb8bed55891be41c29e)
Reviewed-on: http://git-master/r/288818
Reviewed-by: Peter Kim <pekim@nvidia.com>

arch/arm/mach-tegra/board-tegratab.c

index b8ba09f..ad457e2 100644 (file)
@@ -117,7 +117,8 @@ static noinline void __init tegratab_bt_st(void)
 static struct resource tegratab_st_host_wake_resources[] = {
        [0] = {
                .name = "host_wake",
-               .flags  = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHEDGE,
+               .flags  = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHEDGE |
+                                       IORESOURCE_IRQ_OPTIONAL,
        },
 };
 
@@ -131,8 +132,7 @@ static struct platform_device tegratab_st_host_wake_device = {
 static noinline void __init tegratab_tegra_setup_st_host_wake(void)
 {
        tegratab_st_host_wake_resources[0].start =
-               tegratab_st_host_wake_resources[0].end =
-               gpio_to_irq(TEGRA_GPIO_PU6);
+               tegratab_st_host_wake_resources[0].end = INT_UARTC;
        platform_device_register(&tegratab_st_host_wake_device);
 }
 #endif