summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/board-enterprise-baseband.c
diff options
context:
space:
mode:
authorFrederic Bossy <fbossy@nvidia.com>2011-09-15 11:55:07 +0200
committerDan Willemsen <dwillemsen@nvidia.com>2011-11-30 21:49:15 -0800
commitf1f0f6b1ac4adb9e63e27dc9b5f3721e81d1f6f6 (patch)
treeec7ede981629eb533c4439088104065514550c31 /arch/arm/mach-tegra/board-enterprise-baseband.c
parent71247849dd7c3c23bf0c6c214995a74aa7ff4ed6 (diff)
ARM:tegra:enterprise: Configure I_MDM_RST as input.
I_MDM_RST (gpio33) is connected to PMIC VMON_OUT. It shouldn't be driven high, only low when reset is performed. Modem reset relies on power cycle (PON low->high) today. Bug 866051 Reviewed-on: http://git-master/r/52593 (cherry picked from commit d1800dacc1d106ef81b3b4ef98d6dbc7c8b723b4) Reviewed-on: http://git-master/r/56575 (cherry picked from commit b76e5af29d838025946e57655603181fbd414c74) Change-Id: Ieab0a8bc6b1818cc39cdd1a5563c5fee4bf5ed65 Reviewed-on: http://git-master/r/56957 Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Tested-by: Bharat Nihalani <bnihalani@nvidia.com> Tested-by: Frederic Bossy <fbossy@nvidia.com> Rebase-Id: R0ee7d598d02448ee1376ad852126cd41598a9d2f
Diffstat (limited to 'arch/arm/mach-tegra/board-enterprise-baseband.c')
-rwxr-xr-x[-rw-r--r--]arch/arm/mach-tegra/board-enterprise-baseband.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/arch/arm/mach-tegra/board-enterprise-baseband.c b/arch/arm/mach-tegra/board-enterprise-baseband.c
index fcf8f38716e6..b3f3d7d9f76b 100644..100755
--- a/arch/arm/mach-tegra/board-enterprise-baseband.c
+++ b/arch/arm/mach-tegra/board-enterprise-baseband.c
@@ -200,10 +200,7 @@ static int ph450_reset(void)
gpio_set_value(AP2MDM_ACK2, 1);
gpio_set_value(MODEM_PWR_ON, 0);
- gpio_set_value(MODEM_RESET, 0);
mdelay(200);
- gpio_set_value(MODEM_RESET, 1);
- mdelay(30);
gpio_set_value(MODEM_PWR_ON, 1);
return 0;
@@ -290,9 +287,7 @@ static int __init ph450_init(void)
gpio_direction_output(MODEM_PWR_ON, 0);
/* export GPIO for user space access through sysfs */
gpio_export(MODEM_PWR_ON, false);
- gpio_direction_output(MODEM_RESET, 0);
- /* export GPIO for user space access through sysfs */
- gpio_export(MODEM_RESET, false);
+ gpio_direction_input(MODEM_RESET);
gpio_direction_output(AP2MDM_ACK2, 1);
gpio_direction_input(MDM2AP_ACK2);
gpio_direction_input(BB_RST_OUT);