power: qpnp-bms: Add qrd 4v2 1300mah battery data

currently there is no battery data for qrd 4v2 1300mah

add qrd 4v2 1300mah battery data

Change-Id: Ie5bf0cafb2f50e85d45976178bb13d8b79017bb5
Signed-off-by: tingting <tingting@codeaurora.org>

Conflicts:
	include/linux/mfd/pm8xxx/batterydata-lib.h
msm: rpm_rbcpr_stats_v2: Support to query RBCPR stats

Support to query stats pertaining to RBCPR (Rapid Bridge Core Power
Reduction) from RPM data memory. The RBCPR module on the RPM modifies
voltage levels for certain chip level voltage rails based on feedback from
different sensors. This change allows querying for the RBCPR stats
maintained on RPM's data memory.

Change-Id: Ia3bdf1ef39c4064b2c3d7406b219e95c18ced21d
Signed-off-by: Girish Mahadevan <girishm@codeaurora.org>

Conflicts:
	arch/arm/mach-msm/rpm_rbcpr_stats_v2.c
msm: clock-krypton: Add clock driver for krypton

Move the existing dummy clock definitions from board-krypton to this new
file. Add additional dummy clock definitions for use by other drivers.

Change-Id: Ife7c5a3858ff66f30b730738158683cbf4d3359d
Signed-off-by: Patrick Daly <pdaly@codeaurora.org>

Conflicts:
	arch/arm/mach-msm/board-krypton.c
msm: pil: Proxy unvote after pil_shutdown() when using IRQs

Subsystems might use an IRQ for removal of proxy votes via the
power/clock ready interrupt. So, if a peripheral shutdown is triggered
before the power/clock ready interrupt is received, remove the proxy
votes and bypass the unvoting in the power/clock ready interrupt handler.
Conversely, if the power/clock interrupt is received before shutdown is
triggered, bypass the unvoting during pil shutdown.

Also, remove the hack to proxy unvote directly from the pil-q6v5-mss
driver.

Change-Id: I254ab5a1595ceb27a2cfcac99c4c1d2f2443b7c7
Signed-off-by: Seemanta Dutta <seemanta@codeaurora.org>
msm: pil-q6v5-mss: Factor out PIL code into a separate library.

pil-q6v5-mss.c contains code for both the PIL and subsystem
implementations. Factor out the PIL specific code into a
pil-msa.c library so it can be reused by other subsystems
which use the same/similar self-authentication mechanisms.

Change-Id: I7e27eafbd2c89c2747482f1162e7b28d9e5f7bca
Acked-by: Jennifer Zenner <jzenner@qti.qualcomm.com>
Signed-off-by: Seemanta Dutta <seemanta@codeaurora.org>

Conflicts:
	arch/arm/mach-msm/pil-q6v5-mss.c
coresight: add jtag fuse driver

Add support for JTag Fuse driver which can be used by other
JTag save-restore driver(s) to query the state of the jtag fuses to
determine if the Hardware they manage is functionally disabled or
not.

Drivers can then take necessary actions like failing the probe if
the Hardware they manage is functionally disabled.

Change-Id: Ie8c0dc159e52cf869d3ed63b45e5332d3e380e6d
Signed-off-by: Pratik Patel <pratikp@codeaurora.org>

Conflicts:
	arch/arm/mach-msm/jtag-fuse.c
msm: Makefile: Compile gdsc driver on apq8084

Compile gdsc driver on 8084.

Change-Id: I2fc9d222fcc6beb487c3b73ba29edfba3964688e
Signed-off-by: Tianyi Gou <tgou@codeaurora.org>
msm: clock-8610: Add acpuclock driver for msm8610

Explicitly add acpuclock driver for 8610 prior to split
of MSM8226 definition from 8610 defconfig.

Change-Id: I56e1ef4b2b17361312b65c4adf1e9918b9073e48
Signed-off-by: Xiaocheng Li <lix@codeaurora.org>
msm: pm-8x60: Register sleep status driver before regulator

During hotplug, drivers wait for core to be power collapsed to turn off
the resources used by a core in CPU_DEAD notification. The kernel
thermal module which hotplugs the core in certain conditions is
registered in the arch_initcall(). To ensure that the CPU_DEAD waits for
sleep status to be set during hotplug, register the cpu sleep status
driver before the regulator driver.

To this effect, the sleep status driver is no longer made a child device
for pm-8x60 device.

Change-Id: I772521f4b3cd18e367aa44a41d60ef9735c99ef9
Signed-off-by: Mahesh Sivasubramanian <msivasub@codeaurora.org>

Conflicts:
	arch/arm/boot/dts/msm8974-v1-pm.dtsi
	arch/arm/boot/dts/msm8974-v2-pm.dtsi