summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorSuresh Mangipudi <smangipudi@nvidia.com>2013-10-24 12:13:37 +0530
committerSuresh Mangipudi <smangipudi@nvidia.com>2013-10-24 23:14:38 -0700
commitb107bb5f0e41f92990eafb627d802d88eca4675c (patch)
tree7e54858d5d1fef05e13d9de79f321cd49541afe2 /drivers
parent249f7ad8070d2882cfe701baca0f9b7fc1e94623 (diff)
USB: Phy: tegra: Enable POSTAMBLE_OUTPUT for HSIC
As part of Phy power_on the POSTAMBLE_OUTPUT_ENABLE should be set for HSIC. Bug 1352148 Change-Id: I96b92ba3a190af3b79708bbb75ac80881473be8d Signed-off-by: Suresh Mangipudi <smangipudi@nvidia.com> Reviewed-on: http://git-master/r/303190 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/usb/phy/tegra11x_usb_phy.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/usb/phy/tegra11x_usb_phy.c b/drivers/usb/phy/tegra11x_usb_phy.c
index d78fe397e30e..3778323fee82 100644
--- a/drivers/usb/phy/tegra11x_usb_phy.c
+++ b/drivers/usb/phy/tegra11x_usb_phy.c
@@ -222,6 +222,8 @@
#define UHSIC_TX_CFG0 0xc10
#define UHSIC_HS_READY_WAIT_FOR_VALID (1 << 9)
+#define UHSIC_HS_POSTAMBLE_OUTPUT_ENABLE (1 << 6)
+
#define UHSIC_MISC_CFG0 0xc14
#define UHSIC_SUSPEND_EXIT_ON_EDGE (1 << 7)
@@ -1906,6 +1908,10 @@ static int uhsic_phy_power_on(struct tegra_usb_phy *phy)
val &= ~(USB_PORTSC_WKOC | USB_PORTSC_WKDS);
writel(val, base + USB_PORTSC);
+ val = readl(base + UHSIC_TX_CFG0);
+ val |= UHSIC_HS_POSTAMBLE_OUTPUT_ENABLE;
+ writel(val, base + UHSIC_TX_CFG0);
+
val = readl(base + UHSIC_PADS_CFG0);
/* Clear RTUNEP, SLEWP & SLEWN bit fields */
val &= ~(UHSIC_TX_RTUNEP | UHSIC_TX_SLEWP | UHSIC_TX_SLEWN);