summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Lin <stlin@nvidia.com>2011-08-30 15:05:14 -0700
committerVarun Colbert <vcolbert@nvidia.com>2011-09-02 17:55:48 -0700
commit438922d29d2a1d0a25bc4fe797390f29fc38d186 (patch)
tree614e066a4cba74e9844debd7974b9d0aa3a0cd0f
parentc2d98e286f6e4082d723f7cef45f9c87d12dcb7a (diff)
arm: tegra: baseband: Change modem BB_RST_OUT polarity
This change contains the following changes due to e450 modem FW change: 1) Change modem BB_RST_OUT polarity and move the wake_lock_timeout where BB_RST_OUT is low. 2) Disable the AP pullup on BB_RST_OUT. 3) To increase the wake lock timeout to ensure the modem enumeration is complete before system suspend. Bug 867501 Change-Id: I8e6638fa8dd8c7af0893ad31693959794e8a4afe Reviewed-on: http://git-master/r/49743 Reviewed-by: Steve Lin <stlin@nvidia.com> Reviewed-by: Sheshagiri Shenoy <sshenoy@nvidia.com> Reviewed-by: Frederic Bossy <fbossy@nvidia.com> Tested-by: Frederic Bossy <fbossy@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
-rw-r--r--arch/arm/mach-tegra/board-enterprise-baseband.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/arch/arm/mach-tegra/board-enterprise-baseband.c b/arch/arm/mach-tegra/board-enterprise-baseband.c
index f62d675c3072..fde96d05a524 100644
--- a/arch/arm/mach-tegra/board-enterprise-baseband.c
+++ b/arch/arm/mach-tegra/board-enterprise-baseband.c
@@ -172,10 +172,10 @@ static irqreturn_t mdm_start_thread(int irq, void *data)
if (gpio_get_value(priv->restart_gpio)) {
pr_info("BB_RST_OUT high\n");
- /* hold wait lock to complete the enumeration */
- wake_lock_timeout(&priv->wake_lock, HZ * 2);
} else {
pr_info("BB_RST_OUT low\n");
+ /* hold wait lock to complete the enumeration */
+ wake_lock_timeout(&priv->wake_lock, HZ * 10);
}
return IRQ_HANDLED;
@@ -282,13 +282,10 @@ static int __init ph450_init(void)
tegra_pinmux_set_pullupdown(TEGRA_PINGROUP_ULPI_STP,
TEGRA_PUPD_PULL_UP);
- /* enable pull-up for MDM2AP_ACK2 and BB_RST_OUT */
+ /* enable pull-up for MDM2AP_ACK2 */
tegra_pinmux_set_pullupdown(TEGRA_PINGROUP_GPIO_PV0,
TEGRA_PUPD_PULL_UP);
- tegra_pinmux_set_pullupdown(TEGRA_PINGROUP_GPIO_PV1,
- TEGRA_PUPD_PULL_UP);
-
tegra_gpio_enable(MODEM_PWR_ON);
tegra_gpio_enable(MODEM_RESET);
tegra_gpio_enable(AP2MDM_ACK2);