msm: pm2: Log SPM registers before executing the WFI

Dump SPM(CTL&CFG)and APPS_PWRDOWN  registers before
executing the WFI instruction for every GDFS&PC
(both idle&suspend).

Locations:

     |	SAW2_CFG	SAW2_CTL	APPS_PWRDOWN
----------------------------------------------------
SPM0 |	0xFC00050	0xFC00054	0xFC00058
SPM1 |	0xFC00060	0xFC00064
SPM2 |	0xFC00070	0xFC00074
SPM3 |	0xFC00080	0xFC00084

Change-Id: I44783c1ac011fe8a5c525873c3feadca02640c9f
Signed-off-by: Murali Nalajala <mnalajal@codeaurora.org>
msm: pm2: Write a known pattern before executing the WFI

Write "0xAA" pattern to 'reserved' field in the shared
pm smem data structure variable before executing the
WFI instruction.

Whenever APPS starts a PC sequence, modem keep polls for
a value "0xAA" for every 10ms in a shared memory structure.
Once modem sees the "0xAA" value it again start a 3ms timer
and expect an interrupt from APPS(A2M_INT6). In a corner case
if modem didn't see an interrupt from APPS within a 3ms it
simulate PC sequence like as if it receives and interrupt.

CRs-fixed: 467148
Change-Id: Ie03bd2d4002fb13fec93388c1e9ad1d8233623f9
Signed-off-by: Murali Nalajala <mnalajal@codeaurora.org>
msm7k_fiq: Dump MPA5&SPM registers in fiq handler

Dump MPA5 and SPM registers whenever there is FIQ
received by APPS proc. This helps to know the cores
status(on/gdfs'ed) and last command executed by each
SPMs.

Change-Id: If052e36b3efe490f2617449767bc99edc7bc2621
Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org>
Signed-off-by: Murali Nalajala <mnalajal@codeaurora.org>
Merge "msm: pm2: Log SPM registers before executing the WFI"
Merge "msm: pm2: Write a known pattern before executing the WFI"
Merge "msm7k_fiq: Dump MPA5&SPM registers in fiq handler"