msm: pm-boot: Compile "msm_pm_write_boot_vector" always
Currently "msm_pm_write_boot_vector" is under CONFIG_MSM_SCM
configuration. Which is true for targets having TZ. But this
functionality is required for 8625 traget as well hence moving
this function outside of the configuration.
Change-Id: Ia37f2688525d22e4c463cb10b75badcb1a6ed442
Signed-off-by: Murali Nalajala <mnalajal@codeaurora.org>
diff --git a/arch/arm/mach-msm/pm-boot.c b/arch/arm/mach-msm/pm-boot.c
index 7039e7d..b5f0fdc 100644
--- a/arch/arm/mach-msm/pm-boot.c
+++ b/arch/arm/mach-msm/pm-boot.c
@@ -28,7 +28,6 @@
static void (*msm_pm_boot_before_pc)(unsigned int cpu, unsigned long entry);
static void (*msm_pm_boot_after_pc)(unsigned int cpu);
-#ifdef CONFIG_MSM_SCM
static void msm_pm_write_boot_vector(unsigned int cpu, unsigned long address)
{
msm_pm_boot_vector[cpu] = address;
@@ -37,6 +36,7 @@
virt_to_phys(&msm_pm_boot_vector[cpu]));
}
+#ifdef CONFIG_MSM_SCM
static int __init msm_pm_tz_boot_init(void)
{
int flag = 0;
@@ -191,6 +191,7 @@
__raw_writel(readl_relaxed(pdata->v_addr +
MPA5_CFG_CTL_REG) | BIT(26),
pdata->v_addr + MPA5_CFG_CTL_REG);
+ msm_pm_boot_before_pc = msm_pm_write_boot_vector;
}
break;
default: