diff options
author | Suresh Mangipudi <smangipudi@nvidia.com> | 2011-06-28 16:25:17 +0530 |
---|---|---|
committer | Varun Colbert <vcolbert@nvidia.com> | 2011-07-06 16:21:08 -0700 |
commit | dbf4d3be5a82925d7c556f04bf574a68f9f16ad0 (patch) | |
tree | 6b77b8bd52bb82f84b32490b23a5ac0df11b04f2 /arch/arm | |
parent | bc4ad6bac69e78bfa3c17d17928619e511e3c863 (diff) |
arm: tegra: usb_phy: pad power off
Turn off the pad power when hotplug support is not supported.
Bug 829628
Change-Id: Iea61ca9ac387f475e177a1c69a97f323ca37659e
Reviewed-on: http://git-master/r/38696
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/mach-tegra/Kconfig | 4 | ||||
-rw-r--r-- | arch/arm/mach-tegra/usb_phy.c | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/Kconfig b/arch/arm/mach-tegra/Kconfig index b0773a94d1fb..778344ce174f 100644 --- a/arch/arm/mach-tegra/Kconfig +++ b/arch/arm/mach-tegra/Kconfig @@ -272,3 +272,7 @@ config TEGRA_CONVSERVATIVE_GOV_ON_EARLYSUPSEND default n help Also will restore to original cpu frequency governor when device is resumed + +config USB_HOTPLUG + bool "Enabling the USB hotplug" + default n diff --git a/arch/arm/mach-tegra/usb_phy.c b/arch/arm/mach-tegra/usb_phy.c index 40df4f233c35..837bc3b56fa8 100644 --- a/arch/arm/mach-tegra/usb_phy.c +++ b/arch/arm/mach-tegra/usb_phy.c @@ -948,7 +948,11 @@ static int utmi_phy_power_off(struct tegra_usb_phy *phy, bool is_dpd) val |= UTMIP_RESET; writel(val, base + USB_SUSP_CTRL); } +#ifdef CONFIG_USB_HOTPLUG utmip_pad_power_off(phy, is_dpd); +#else + utmip_pad_power_off(phy, true); +#endif return 0; } |