summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/board-enterprise-baseband.c
diff options
context:
space:
mode:
authorSteve Lin <stlin@nvidia.com>2011-11-29 14:01:28 -0800
committerVarun Wadekar <vwadekar@nvidia.com>2011-12-21 12:06:22 +0530
commit71653d7720a77add116228c7e5717c5a74553f18 (patch)
treeb390b86a29501aa9be691087279e3850fdecf393 /arch/arm/mach-tegra/board-enterprise-baseband.c
parenta43895ffdda87f651ef75f74b6f0e98524775a8d (diff)
arm: tegra: usb: Support tegra2 null ULPI phy restore function
Adding tegra2 null ULPI phy restore function and clean up code in usb_phy. Bug 907350 Bug 912407 Change-Id: I93aa191cd7f9fdace7f80a66fedbf034728e2fe9 Signed-off-by: Steve Lin <stlin@nvidia.com> Reviewed-on: http://git-master/r/67189 Reviewed-by: Martin Chabot <mchabot@nvidia.com> Tested-by: Martin Chabot <mchabot@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User Tested-by: Jonathan Roux <jroux@nvidia.com> Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/board-enterprise-baseband.c')
-rw-r--r--arch/arm/mach-tegra/board-enterprise-baseband.c17
1 files changed, 14 insertions, 3 deletions
diff --git a/arch/arm/mach-tegra/board-enterprise-baseband.c b/arch/arm/mach-tegra/board-enterprise-baseband.c
index 0084c06f6a8c..1463a066fca5 100644
--- a/arch/arm/mach-tegra/board-enterprise-baseband.c
+++ b/arch/arm/mach-tegra/board-enterprise-baseband.c
@@ -46,6 +46,12 @@
#define AP2MDM_ACK2 TEGRA_GPIO_PE2
#define MDM2AP_ACK2 TEGRA_GPIO_PV0
+/* ULPI GPIO */
+#define ULPI_STP TEGRA_GPIO_PY3
+#define ULPI_DIR TEGRA_GPIO_PY1
+#define ULPI_D0 TEGRA_GPIO_PO1
+#define ULPI_D1 TEGRA_GPIO_PO2
+
static struct wake_lock mdm_wake_lock;
static struct gpio modem_gpios[] = {
@@ -55,9 +61,10 @@ 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"},
+ {ULPI_STP, GPIOF_IN, "ULPI_STP"},
+ {ULPI_DIR, GPIOF_OUT_INIT_LOW, "ULPI_DIR"},
+ {ULPI_D0, GPIOF_OUT_INIT_LOW, "ULPI_D0"},
+ {ULPI_D1, GPIOF_OUT_INIT_LOW, "ULPI_D1"},
};
static int baseband_phy_on(void);
@@ -73,6 +80,10 @@ static struct tegra_ulpi_config ehci2_null_ulpi_phy_config = {
.pre_phy_off = baseband_phy_off,
.phy_restore_start = baseband_phy_restore_start,
.phy_restore_end = baseband_phy_restore_end,
+ .phy_restore_gpio = MDM2AP_ACK,
+ .ulpi_dir_gpio = ULPI_DIR,
+ .ulpi_d0_gpio = ULPI_D0,
+ .ulpi_d1_gpio = ULPI_D1,
};
static struct tegra_ehci_platform_data ehci2_null_ulpi_platform_data = {