summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/baseband-xmm-power.c
diff options
context:
space:
mode:
authorMichael Hsu <mhsu@nvidia.com>2011-08-03 16:20:03 -0700
committerDan Willemsen <dwillemsen@nvidia.com>2011-11-30 21:48:09 -0800
commit390297904e6c783270812a787e1c7b011e6fa995 (patch)
tree8bf69397535f513ddbb63fff5c077d49fee38fd8 /arch/arm/mach-tegra/baseband-xmm-power.c
parent3355e37c2a6ab21beaa20fee8dacd79dfc9bbdcc (diff)
arm: tegra: comms: Intel XMM6260 flashless boot.
Add baseband power drivers to manage gpio for turning on modem, and re-enumerating modem after modem's boot rom has transferred control to downloaded modem software. BUG 828389 Original-Change-Id: Ide96a28b8f0183d8328751d3b3dec92b8068a3c8 Reviewed-on: http://git-master/r/39435 Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com> Rebase-Id: Rb3d170a5460bff29550d664c3f783134d2a3a41f
Diffstat (limited to 'arch/arm/mach-tegra/baseband-xmm-power.c')
-rw-r--r--arch/arm/mach-tegra/baseband-xmm-power.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/arch/arm/mach-tegra/baseband-xmm-power.c b/arch/arm/mach-tegra/baseband-xmm-power.c
index 83959485b281..a8df78bf20b2 100644
--- a/arch/arm/mach-tegra/baseband-xmm-power.c
+++ b/arch/arm/mach-tegra/baseband-xmm-power.c
@@ -46,9 +46,7 @@ static struct gpio tegra_baseband_gpios[] = {
{ -1, GPIOF_OUT_INIT_LOW, "IPC_BB_WAKE" },
{ -1, GPIOF_IN, "IPC_AP_WAKE" },
{ -1, GPIOF_OUT_INIT_HIGH, "IPC_HSIC_ACTIVE" },
-#if BB_INITIATED_L2_SUSPEND
{ -1, GPIOF_IN, "IPC_HSIC_SUS_REQ" },
-#endif
};
#if BB_INITIATED_L2_SUSPEND
@@ -247,9 +245,7 @@ static int baseband_xmm_power_driver_probe(struct platform_device *device)
tegra_baseband_gpios[2].gpio = data->modem.xmm.ipc_bb_wake;
tegra_baseband_gpios[3].gpio = data->modem.xmm.ipc_ap_wake;
tegra_baseband_gpios[4].gpio = data->modem.xmm.ipc_hsic_active;
-#if BB_INITIATED_L2_SUSPEND
tegra_baseband_gpios[5].gpio = data->modem.xmm.ipc_hsic_sus_req;
-#endif
err = gpio_request_array(tegra_baseband_gpios,
ARRAY_SIZE(tegra_baseband_gpios));
if (err < 0) {
@@ -346,7 +342,8 @@ static int baseband_xmm_power_driver_remove(struct platform_device *device)
ARRAY_SIZE(tegra_baseband_gpios));
/* unregister usb host controller */
- platform_device_unregister(&tegra_ehci2_device);
+ platform_device_unregister(baseband_power_driver_data->
+ modem.xmm.hsic_device);
return 0;
}