wifi: Enable appropriate clock for qrd8930
The 48 MHz clock is not being enabled for 8930 QRD devices. Set the
has48MHz_xo variable to '0' if the device does not support 48 MHz
clock, so that it would use 19.2 MHz clock. For QRD devices which
support 48MHz clock, set this variable to '1'.
Change-Id: If72d14f8e26944ae33cbad5079ccf07c3fb2787c
CRs-fixed: 477042
Signed-off-by: Jeff Johnson <jjohnson@codeaurora.org>
diff --git a/arch/arm/mach-msm/board-8930.c b/arch/arm/mach-msm/board-8930.c
index c3dafb8..a14050f 100644
--- a/arch/arm/mach-msm/board-8930.c
+++ b/arch/arm/mach-msm/board-8930.c
@@ -3040,8 +3040,17 @@
else
platform_add_devices(pmic_pm8917_devices,
ARRAY_SIZE(pmic_pm8917_devices));
- if(machine_is_msm8930_evt())
- qcom_wcnss_pdata.has_48mhz_xo = 0;
+
+ if (machine_is_msm8930_evt()) {
+ /* It is QRD Device, clock should be set appropraitely */
+ if ((SOCINFO_VERSION_MAJOR(socinfo_get_platform_version()) == 1)
+ && (SOCINFO_VERSION_MINOR(socinfo_get_platform_version()) == 1))
+ /* For evt2a, which supports 48 MHz */
+ qcom_wcnss_pdata.has_48mhz_xo = 1;
+ else
+ /* Assuming all other versions do not support 48MHz */
+ qcom_wcnss_pdata.has_48mhz_xo = 0;
+ }
platform_add_devices(common_devices, ARRAY_SIZE(common_devices));
if (machine_is_msm8930_evt() &&
(socinfo_get_platform_subtype() == PLATFORM_SUBTYPE_SGLTE)) {