diff options
author | Mark Kuo <mkuo@nvidia.com> | 2013-08-01 16:52:32 +0800 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2013-09-14 13:40:33 -0700 |
commit | d7b8dfe53a4ed194ae20f1d4c0fdee2c62e746ea (patch) | |
tree | e92b74a7d5ed1b62d32322242f7bcef938669e5a /arch/arm/mach-tegra/wakeups-t12x.c | |
parent | 2c1c3998a263f398405ccde701c65d5f41bf480f (diff) |
ARM: tegra: enable Ardbeg USB2 UHSIC PHY wakeup
Icera Bruce modem is using tegra_ehci2_device on t124 Ardbeg with HSIC
phy, so enable USB2 UHSIC PHY wakeup source so that remote wakeup can
work in LP0.
Also add a generic function tegra_set_wake_source() in wakeups-t12x.c,
which can be used to modify tegra_wake_event_irq table from board files.
Bug 1333745
Change-Id: Ia58998fc71c0575d87fc65b00a7bd6e7cd49a3f7
Signed-off-by: Mark Kuo <mkuo@nvidia.com>
Reviewed-on: http://git-master/r/254199
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/wakeups-t12x.c')
-rw-r--r-- | arch/arm/mach-tegra/wakeups-t12x.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/arch/arm/mach-tegra/wakeups-t12x.c b/arch/arm/mach-tegra/wakeups-t12x.c index 6ea83f08e13d..36ace0c3b572 100644 --- a/arch/arm/mach-tegra/wakeups-t12x.c +++ b/arch/arm/mach-tegra/wakeups-t12x.c @@ -224,11 +224,19 @@ int tegra_wake_to_irq(int wake) return ret; } -int tegra_disable_wake_source(int wake) +int tegra_set_wake_source(int wake, int irq) { + if (wake < 0) + return -EINVAL; + if (wake >= ARRAY_SIZE(tegra_wake_event_irq)) return -EINVAL; - tegra_wake_event_irq[wake] = -EINVAL; + tegra_wake_event_irq[wake] = irq; return 0; } + +int tegra_disable_wake_source(int wake) +{ + return tegra_set_wake_source(wake, -EINVAL); +} |