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-v2.c b/arch/arm/mach-msm/spm-v2.c
index 4a7cf91..021a216 100644
--- a/arch/arm/mach-msm/spm-v2.c
+++ b/arch/arm/mach-msm/spm-v2.c
@@ -18,6 +18,7 @@
 #include <linux/io.h>
 #include <linux/slab.h>
 #include <mach/msm_iomap.h>
+#include <mach/socinfo.h>
 
 #include "spm_driver.h"
 
@@ -127,6 +128,10 @@
 {
 	uint32_t value = enable ? 0x01 : 0x00;
 
+	/* TODO: Remove this after 8064 bring up */
+	if (cpu_is_apq8064())
+		return 0;
+
 	if (!dev)
 		return -EINVAL;
 
@@ -145,6 +150,10 @@
 	int i;
 	int num_spm_entry = msm_spm_drv_get_num_spm_entry(dev);
 
+	/* TODO: Remove this after 8064 bring up */
+	if (cpu_is_apq8064())
+		return;
+
 	if (!dev) {
 		__WARN();
 		return;
@@ -165,6 +174,10 @@
 	uint32_t offset_w = offset / 4;
 	int ret = 0;
 
+	/* TODO: Remove this after 8064 bring up */
+	if (cpu_is_apq8064())
+		return 0;
+
 	if (!cmd || !dev) {
 		__WARN();
 		goto failed_write_seq_data;
@@ -201,6 +214,10 @@
 		uint32_t addr)
 {
 
+	/* TODO: Remove this after 8064 bring up */
+	if (cpu_is_apq8064())
+		return 0;
+
 	/* SPM is configured to reset start address to zero after end of Program
 	 */
 	if (!dev)
@@ -225,6 +242,10 @@
 {
 	uint32_t timeout_us;
 
+	/* TODO: Remove this after 8064 bring up */
+	if (cpu_is_apq8064())
+		return 0;
+
 	if (!dev)
 		return -EINVAL;
 
@@ -278,6 +299,10 @@
 	int i;
 	int num_spm_entry;
 
+	/* TODO: Remove this after 8064 bring up */
+	if (cpu_is_apq8064())
+		return 0;
+
 	BUG_ON(!dev || !data);
 
 	dev->reg_base_addr = data->reg_base_addr;
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