arm: tegra: usb_phy: pad power off
Suresh Mangipudi [Tue, 28 Jun 2011 10:55:17 +0000 (15:55 +0530)]
Turn off the pad power when hotplug support is not supported.

Bug 829628

Original-Change-Id: Iea61ca9ac387f475e177a1c69a97f323ca37659e
Reviewed-on: http://git-master/r/38696
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: Rf30be66234d431139f62480dda128ce6bda88bd9

arch/arm/mach-tegra/Kconfig
arch/arm/mach-tegra/usb_phy.c

index a84758e..5d3b512 100644 (file)
@@ -310,4 +310,7 @@ config TEGRA_LEGACY_AUDIO
          Say Y if you want to add support legacy (non-ALSA) audio APIs on
          Tegra. This will disable ALSA (ASoC) support.
 
+config USB_HOTPLUG
+       bool "Enabling the USB hotplug"
+       default n
 endif
index 3dc23f3..b524149 100644 (file)
@@ -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;
 }