diff options
author | Suresh Mangipudi <smangipudi@nvidia.com> | 2012-08-01 16:57:51 +0530 |
---|---|---|
committer | Simone Willett <swillett@nvidia.com> | 2012-08-10 22:56:30 -0700 |
commit | 6e789ddf027ae942bfb7e442cc66e218f919bb28 (patch) | |
tree | 752e78997214d7be9ef6bf6ade0ac79ef3141ca4 /arch/arm/mach-tegra/tegra3_usb_phy.c | |
parent | 675dfd18c952e6cf5748aaa305086d86b0358582 (diff) |
arm: tegra: usbphy: disable PLLU clock
Disable the MASTER_BLASTER clock for the null phy interface
when usb_bus is suspended.
Bug 992861
Change-Id: I86ff559148f9a128ee48bbea2564493f4286b420
Signed-off-by: Suresh Mangipudi <smangipudi@nvidia.com>
Reviewed-on: http://git-master/r/120006
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/tegra3_usb_phy.c')
-rw-r--r-- | arch/arm/mach-tegra/tegra3_usb_phy.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/tegra3_usb_phy.c b/arch/arm/mach-tegra/tegra3_usb_phy.c index 460bea14b3e1..b27c3083d36b 100644 --- a/arch/arm/mach-tegra/tegra3_usb_phy.c +++ b/arch/arm/mach-tegra/tegra3_usb_phy.c @@ -2650,6 +2650,9 @@ static void ulpi_null_phy_close(struct tegra_usb_phy *phy) static int ulpi_null_phy_power_off(struct tegra_usb_phy *phy) { + unsigned int val; + void __iomem *base = phy->regs; + DBG("%s(%d) inst:[%d]\n", __func__, __LINE__, phy->inst); if (!phy->phy_clk_on) { @@ -2661,6 +2664,9 @@ static int ulpi_null_phy_power_off(struct tegra_usb_phy *phy) phy->phy_clk_on = false; phy->hw_accessible = false; ulpi_null_phy_set_tristate(true); + val = readl(base + ULPIS2S_CTRL); + val &= ~ULPIS2S_PLLU_MASTER_BLASTER60; + writel(val, base + ULPIS2S_CTRL); return 0; } |