msm: 8064: Add sleep status data for 8064 and 8930
Sleep status data provides the information required by the pm-8x60
driver to wait for the cpu to be completely power collpased before
returning that the core is shutdown.
Change-Id: Ia34cfcf1b9394ae41a9a442cdb70e131866b8dcc
Signed-off-by: Praveen Chidambaram <pchidamb@codeaurora.org>
diff --git a/arch/arm/mach-msm/board-8064.c b/arch/arm/mach-msm/board-8064.c
index 59f42e5..0d25c89 100644
--- a/arch/arm/mach-msm/board-8064.c
+++ b/arch/arm/mach-msm/board-8064.c
@@ -1794,6 +1794,12 @@
},
};
+static struct msm_pm_sleep_status_data msm_pm_slp_sts_data = {
+ .base_addr = MSM_ACC0_BASE + 0x08,
+ .cpu_offset = MSM_ACC1_BASE - MSM_ACC0_BASE,
+ .mask = 1UL << 13,
+};
+
static void __init apq8064_init_buses(void)
{
msm_bus_rpm_set_mt_mask();
@@ -2536,6 +2542,7 @@
acpuclk_init(&acpuclk_8064_soc_data);
msm_spm_l2_init(msm_spm_l2_data);
BUG_ON(msm_pm_boot_init(&msm_pm_boot_pdata));
+ msm_pm_init_sleep_status_data(&msm_pm_slp_sts_data);
apq8064_epm_adc_init();
}