summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/board-enterprise-baseband.c
diff options
context:
space:
mode:
authorSteve Lin <stlin@nvidia.com>2011-11-03 15:17:43 -0700
committerDan Willemsen <dwillemsen@nvidia.com>2011-11-30 21:52:41 -0800
commit924df89d1f822fcf05e28b0b81d039d8924cb40c (patch)
tree87959c4d83b4e522b3c65b0811e8bcf24f5092a2 /arch/arm/mach-tegra/board-enterprise-baseband.c
parentc610df9ad66a2c9d10593c4c0fdbaada3a2542be (diff)
arm: tegra: usb: enable ULPI CLK after STP is asserted in LP0 resume
1) Enabling ULPI CLK after MDM2AP_ACK is asserted 2) Driving linestate by GPIO before removing the ULPI data tristate Bug 889484 Reviewed-on: http://git-master/r/60104 (cherry picked from commit 795b9ddcedf3f6465c6a352005c8d8615a36e739) Change-Id: Idde92fec46cdb26bc336ffd2d12a2cfb65b3f2e9 Reviewed-on: http://git-master/r/66995 Reviewed-by: Steve Lin <stlin@nvidia.com> Tested-by: Steve Lin <stlin@nvidia.com> Rebase-Id: Rac02c10771adfb5927b1bc300e2de7f6cff4d34d
Diffstat (limited to 'arch/arm/mach-tegra/board-enterprise-baseband.c')
-rw-r--r--arch/arm/mach-tegra/board-enterprise-baseband.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/board-enterprise-baseband.c b/arch/arm/mach-tegra/board-enterprise-baseband.c
index 7fecc6203b7e..0084c06f6a8c 100644
--- a/arch/arm/mach-tegra/board-enterprise-baseband.c
+++ b/arch/arm/mach-tegra/board-enterprise-baseband.c
@@ -55,6 +55,9 @@ static struct gpio modem_gpios[] = {
{MDM2AP_ACK, GPIOF_IN, "MDM2AP_ACK"},
{AP2MDM_ACK2, GPIOF_OUT_INIT_HIGH, "AP2MDM ACK2"},
{AP2MDM_ACK, GPIOF_OUT_INIT_LOW, "AP2MDM ACK"},
+ {TEGRA_GPIO_PY3, GPIOF_IN, "ULPI_STP"},
+ {TEGRA_GPIO_PO1, GPIOF_OUT_INIT_LOW, "ULPI_D0"},
+ {TEGRA_GPIO_PO2, GPIOF_OUT_INIT_LOW, "ULPI_D1"},
};
static int baseband_phy_on(void);
@@ -171,6 +174,10 @@ static int baseband_init(void)
tegra_gpio_enable(AP2MDM_ACK2);
tegra_gpio_enable(BB_RST_OUT);
tegra_gpio_enable(AP2MDM_ACK);
+ tegra_gpio_enable(MDM2AP_ACK);
+ tegra_gpio_enable(TEGRA_GPIO_PY3);
+ tegra_gpio_enable(TEGRA_GPIO_PO1);
+ tegra_gpio_enable(TEGRA_GPIO_PO2);
/* export GPIO for user space access through sysfs */
gpio_export(MODEM_PWR_ON, false);