msm: gdsc: Allow core logic collapse to be disabled via device-tree

Introduce an optional device-tree binding that can be used to
keep the core's logic powered, but still allow its memories
to collapse.

Change-Id: I31a025be4c811c8a133b2e784ea56e65e175bd3a
Signed-off-by: Matt Wagantall <mattw@codeaurora.org>
msm: clock-8974: Add reset support for venus0_vcodec_clk

The video driver needs to be able to reset the video core between
clips, even if power is not collapsed at the GDSC. Add support for
use of clk_reset() to control the VENUS0_BCR  register.

Change-Id: Iccafdd148dccadd2a3770ac4fe999009e0d298bf
Signed-off-by: Matt Wagantall <mattw@codeaurora.org>
msm: clock-local2: Remove warning when clk_reset() is not supported

Some driver (such as GDSC) may want to, for convenience, call
clk_reset() on a list of clocks, some of which may not support
the feature. Continue to return an error, but don't print a
warning in these cases.

Change-Id: I3fe75ea87333b16df528906554ee065076c18673
Signed-off-by: Matt Wagantall <mattw@codeaurora.org>
msm: subsystem_restart: Bypass error ready wait for debugging

While debugging subsystem code, its boot up process needs to be
temporarily halted to setup the debugging environment. Do not
wait for error ready interrupt in this case otherwise the
subsystem will never boot up successfully.

Change-Id: Idbb1238029a271997b914c9a32bdc3b29f28ebf1
Signed-off-by: Seemanta Dutta <seemanta@codeaurora.org>
power: qpnp-charger: register pm ops correctly

Register the suspend and resume callbacks correctly
thus that VREF_BAT_THM can be returned to FSM control
once device is suspended.

Change-Id: Ifa909a72650d430bfdb93927ec49a1dbe47acd0f
Signed-off-by: David Keitel <dkeitel@codeaurora.org>
coresight: enable clocks during hotplug when required

Vote for enabling clocks during hotplug ON in CPU_UP_PREPARE and
correspondingly vote to disable clocks in CPU_ONLINE or
CPU_UP_CANCELED callbacks until OS lock is unlocked. This is
required since memory mapped accesses to unlock the OS lock as
part of CPU_STARTING callback for some ARM based cpus need the
appropriate clocks to be on.

Change-Id: Ia9709692beb02654c225a0771c1eea556d581372
Signed-off-by: Pratik Patel <pratikp@codeaurora.org>
msm: krait-regulator: Add support for PMIC regulator phase scaling factor

Add support to read an eFuse which specifies the appropriate PMIC
regulator phase scaling factor to apply for a given chip.  Using
the phase scaling factor reduces power consumption in certain
cases.

Also specify the phase scaling factor eFuse address for MSM8974
since this property value is made to be required.

Change-Id: I77a480a77e890f044f18fdfd002ec183d75347d0
Signed-off-by: David Collins <collinsd@codeaurora.org>
msm: pm-8x60: Use relative time for events

There is a bug when adjusting for event wakeups. The adjusted time
is being set in absolute mode incorrectly. Instead just use relative
times.

Without this core wakeups may not happen on time.

CRs-fixed: 486466
Change-Id: If625f25bd573b05befb6e0f922c80db646428b86
Signed-off-by: Girish Mahadevan <girishm@codeaurora.org>
msm: msm_bus: Set clock rate before enabling clocks

This will prevent the clocks from being set to max
when the bus driver enables clocks to set the NoC
registers

Change-Id: I9f29e5545fd5519af3e66122492a3c0de5c6df7d
Signed-off-by: Gagan Mac <gmac@codeaurora.org>
arm/dt: msm8974-v2: Updated power numbers

Update the power numbers for the v2 version of the chip
base on target measurements. These power and latency measurements
will be used to put the chip in various low power modes.

Change-Id: I3a07a4e349f490ce70cd32a8132787ce700e09fe
Signed-off-by: Girish Mahadevan <girishm@codeaurora.org>
Merge "msm: gdsc: Allow core logic collapse to be disabled via device-tree"
Merge "msm: clock-8974: Add reset support for venus0_vcodec_clk"
Merge "msm: clock-local2: Remove warning when clk_reset() is not supported"
Merge "msm: subsystem_restart: Bypass error ready wait for debugging"
Merge "power: qpnp-charger: register pm ops correctly"
Merge "coresight: enable clocks during hotplug when required"
Merge "msm: krait-regulator: Add support for PMIC regulator phase scaling factor"
Merge "msm: pm-8x60: Use relative time for events"
Merge "msm: msm_bus: Set clock rate before enabling clocks"
Merge "arm/dt: msm8974-v2: Updated power numbers"