msm: spm: Do not set the core voltage during driver initilization
The initial voltage value for the cores are setup by bootloaders for
Core 0. The voltages for the secondary cores are set by Core 0 before
bringing them out of reset. When the cores are out of reset, the SAW
regulator takes care of setting core voltage. Thereby we need not set
the voltage for the cores during SPM driver initialization.
Additionally the commit also reorders the SPM register enums to prevent
initiliazation of status registers.
CRs-fixed: 336256
Change-Id: I3d3d82c867a79f0002c1ea7ef61b017a447a7783
Signed-off-by: Mahesh Sivasubramanian <msivasub@codeaurora.org>
diff --git a/arch/arm/mach-msm/spm.h b/arch/arm/mach-msm/spm.h
index 78fd922..b155781 100644
--- a/arch/arm/mach-msm/spm.h
+++ b/arch/arm/mach-msm/spm.h
@@ -65,12 +65,7 @@
#elif defined(CONFIG_MSM_SPM_V2)
enum {
- MSM_SPM_REG_SAW2_SECURE,
- MSM_SPM_REG_SAW2_ID,
MSM_SPM_REG_SAW2_CFG,
- MSM_SPM_REG_SAW2_STS0,
- MSM_SPM_REG_SAW2_STS1,
- MSM_SPM_REG_SAW2_VCTL,
MSM_SPM_REG_SAW2_AVS_CTL,
MSM_SPM_REG_SAW2_AVS_HYSTERESIS,
MSM_SPM_REG_SAW2_SPM_CTL,
@@ -79,8 +74,13 @@
MSM_SPM_REG_SAW2_PMIC_DATA_1,
MSM_SPM_REG_SAW2_RST,
- MSM_SPM_REG_NR_INITIALIZE,
- MSM_SPM_REG_SAW2_SEQ_ENTRY = MSM_SPM_REG_NR_INITIALIZE,
+ MSM_SPM_REG_NR_INITIALIZE = MSM_SPM_REG_SAW2_RST,
+ MSM_SPM_REG_SAW2_ID,
+ MSM_SPM_REG_SAW2_SECURE,
+ MSM_SPM_REG_SAW2_STS0,
+ MSM_SPM_REG_SAW2_STS1,
+ MSM_SPM_REG_SAW2_VCTL,
+ MSM_SPM_REG_SAW2_SEQ_ENTRY ,
MSM_SPM_REG_NR
};