msm: pm2: Configure MPA5_GDFS_CNT_VAL register for 8x25Q

Set the "DBGPWRUPEREQ_OVERRIDE" bits for C2 & C3. This allows
the cores to go into LPM when the debugger is connected.

Signed-off-by: Murali Nalajala <mnalajal@codeaurora.org>
(cherry picked from commit aa7310ba21fb6e7e64b95d6e955ea2c7104d6fe5)

Signed-off-by: Gopal Goberu <ggober@codeaurora.org>
(cherry picked from commit b17fd2d5df6c553c777977db3ad409726ec65609)

Change-Id: I5944095e93cbc386738b09e3227b11058c430d7d
Signed-off-by: Gopal Goberu <ggober@codeaurora.org>
msm: platsmp-8625: modify pen_release variable to volatile

Since pen_release is a shared variable between cpus. By marking it
as volatile, compiler won't cache that variable into registers and
won't optimize the code which access pen_release variable.

Signed-off-by: Tirupathi Reddy <tirupath@codeaurora.org>
(cherry picked from commit 23f9d1cba9136ad89dc6a26d0d88a4c28bd66153)

Change-Id: Ic816ea0c1767c0373df34cf0934ae415e2e1b29b
Signed-off-by: Gopal Goberu <ggober@codeaurora.org>
msm: platsmp-8625: Use real cpu number

Don't use 2nd core as hardcoded CPU number in raise_clear_spi() and
msm8625_release_secondary() APIs. It will not work in the scenarios
where we have more than two cores in the system. Pass the real
CPU number as parameter to make the code generic.

Signed-off-by: Tirupathi Reddy <tirupath@codeaurora.org>
(cherry picked from commit f937d69d89b2dfc69250b28d493562a50ee1d57e)

Change-Id: I96063ab3fd8a2ef74d9685dbe3b229be37fc0804
Signed-off-by: Gopal Goberu <ggober@codeaurora.org>
msm: platsmp-8625: Add cold_boot_done as per_cpu variable

cold_boot_done is declared as an ordinary variable, and useful for
single secondary cpu, right now. It will not work in the scenarios
where we have more than two cores in the system. Usage of per-cpu
variable will make the code more generic for multi-core environment.

Signed-off-by: Tirupathi Reddy <tirupath@codeaurora.org>
(cherry picked from commit b4733882c76ff94b65e6c5cbc13c76a2ef03a329)

Change-Id: I1412b08ce02e55621ac55281d539d7bd574b563e
Signed-off-by: Gopal Goberu <ggober@codeaurora.org>