msm: footswitch-pcom: Enable Footswitch for 8625
Footswitch was disabled for 8625 bringup, now re-enabling it.
Also add footswitch support for EVB/QRD.
Change-Id: I74b8057279706a725ab64502e7506545eee025b8
Signed-off-by: Taniya Das <tdas@codeaurora.org>
diff --git a/arch/arm/mach-msm/board-qrd7627a.c b/arch/arm/mach-msm/board-qrd7627a.c
index ac590d3..02916c2 100644
--- a/arch/arm/mach-msm/board-qrd7627a.c
+++ b/arch/arm/mach-msm/board-qrd7627a.c
@@ -1070,6 +1070,12 @@
return platform_device_register(&msm_wlan_ar6000_pm_device);
}
+static void __init msm_add_footswitch_devices(void)
+{
+ platform_add_devices(msm_footswitch_devices,
+ msm_num_footswitch_devices);
+}
+
static void add_platform_devices(void)
{
if (machine_is_msm8625_evb())
@@ -1130,6 +1136,7 @@
/*OTG gadget*/
qrd7627a_otg_gadget();
+ msm_add_footswitch_devices();
add_platform_devices();
/* Ensure ar6000pm device is registered before MMC/SDC */
diff --git a/arch/arm/mach-msm/footswitch-pcom.c b/arch/arm/mach-msm/footswitch-pcom.c
index f8e84fc..673253b 100644
--- a/arch/arm/mach-msm/footswitch-pcom.c
+++ b/arch/arm/mach-msm/footswitch-pcom.c
@@ -306,8 +306,6 @@
struct footswitch *fs;
int ret;
- if (cpu_is_msm8625())
- return 0;
/*
* Enable all footswitches in manual mode (ie. not controlled along
* with pcom clocks).