msm: spm-v2: Support to reinitalize SPM registers

On certain devices SPM hardware block doesn't retain its state through
certain low power modes. This commit allows for reinitialization of
control and sequence entry registers on resume.

Change-Id: Ib70ab1e090dc69fa2901d183b9a25416ad433ba0
Signed-off-by: Maheshkumar Sivasubramanian <msivasub@codeaurora.org>
diff --git a/arch/arm/mach-msm/spm.h b/arch/arm/mach-msm/spm.h
index b155781..21c7dca 100644
--- a/arch/arm/mach-msm/spm.h
+++ b/arch/arm/mach-msm/spm.h
@@ -115,6 +115,7 @@
 #if defined(CONFIG_MSM_L2_SPM)
 int msm_spm_l2_set_low_power_mode(unsigned int mode, bool notify_rpm);
 int msm_spm_l2_init(struct msm_spm_platform_data *data);
+void msm_spm_l2_reinit(void);
 #else
 static inline int msm_spm_l2_set_low_power_mode(unsigned int mode,
 		bool notify_rpm)
@@ -125,6 +126,10 @@
 {
 	return -ENOSYS;
 }
+static inline void msm_spm_l2_reinit(void)
+{
+	/* empty */
+}
 #endif /* defined(CONFIG_MSM_L2_SPM) */
 
 #else /* defined(CONFIG_MSM_SPM_V1) || defined(CONFIG_MSM_SPM_V2) */