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;