msm: ocmem: Call restore_sec_config() after every power collapse

As the QRIB is enabled, after every power collapse of ocmem, the
QRIB is reset to the maximum security state. Due to this the apps
processor cannot access the ocmem register space.

The restore_sec_config() scm call needs to be called before any
register is accessed after a power collapse to ensure that the
security configuration is restored. The clocks need to be turned
on before every call that is made into TZ to ensure that there
is no power collapse.

CRs-Fixed: 651324, 660089
Change-Id: Ieb6b635142057e219de29e811c93749f6500cec5
Signed-off-by: Neeti Desai <neetid@codeaurora.org>
Merge "msm: ocmem: Call restore_sec_config() after every power collapse"
msm: thermal: Disable hotplug monitor only if cpu-sensors < NR_CPUS

Some target variants have different core configuration but share
same dtsi bindings, hence it is not possible to configure differently
for these variants. Instead of checking number of cpus and number of
configured cpu-sensors are equal, check for atleast one cpu-sensor for
each cpu, ie cpu-sensors >= NR_CPUS at probe_cc.

Change-Id: Ie11107f780e24cc1e7879495ce0a1c0c5be412ab
Signed-off-by: Anji Jonnala <anjir@codeaurora.org>
msm: thermal: Handle zone ID and tsens ID to fetch temperature

Add a function, which can handle zone and tsens ID and get
current temperature.

Change-Id: I685852e8571c0609a32b0ce982ae70d0b59443fd
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
Merge "msm: thermal: Disable hotplug monitor only if cpu-sensors < NR_CPUS"
Merge "msm: thermal: Handle zone ID and tsens ID to fetch temperature"