msm: spm-v2: Ignore SPM functionality for APQ8064
This change will be reverted after 8064 bring up.
Change-Id: I6a3a9dad1acbb5984ec79eaf166420bbce95f431
Signed-off-by: Praveen Chidambaram <pchidamb@codeaurora.org>
diff --git a/arch/arm/mach-msm/spm_devices.c b/arch/arm/mach-msm/spm_devices.c
index 01bf9ae..6ea9327 100644
--- a/arch/arm/mach-msm/spm_devices.c
+++ b/arch/arm/mach-msm/spm_devices.c
@@ -18,6 +18,7 @@
#include <linux/io.h>
#include <linux/slab.h>
#include <mach/msm_iomap.h>
+#include <mach/socinfo.h>
#include "spm.h"
#include "spm_driver.h"
@@ -129,6 +130,11 @@
int msm_spm_set_low_power_mode(unsigned int mode, bool notify_rpm)
{
struct msm_spm_device *dev = &__get_cpu_var(msm_cpu_spm_device);
+
+ /* TODO: Remove this after 8064 bring up */
+ if (cpu_is_apq8064())
+ return 0;
+
return msm_spm_dev_set_low_power_mode(dev, mode, notify_rpm);
}
@@ -137,6 +143,10 @@
unsigned int cpu;
int ret = 0;
+ /* TODO: Remove this after 8064 bring up */
+ if (cpu_is_apq8064())
+ return 0;
+
BUG_ON((nr_devs < num_possible_cpus()) || !data);
for_each_possible_cpu(cpu) {
@@ -163,6 +173,10 @@
int __init msm_spm_l2_init(struct msm_spm_platform_data *data)
{
+ /* TODO: Remove this after 8064 bring up */
+ if (cpu_is_apq8064())
+ return 0;
+
return msm_spm_dev_init(&msm_spm_l2_device, data);
}
#endif