Revert "LEDs: Add tunable to set led fade mode while charging.  Cycling cable to take effect is required"

This reverts commit 6d1f1d870d3bb318f95e834a2f7c3c2faad82ede.
Revert "Stop charging from obeying Fade mode"

This reverts commit be0081d0eedf7072eceac8578ed3375e3598a65b.
Revert "LEDs: Add bit shift option to give more control on led slope operation.  Also changed dutymax to 30 and dutymid to 15 to create a more even slope on slope up and slope down."

This reverts commit 8eb3b4b39175f273debbc71f50a30ea54e99c5fb.
Revert "LED control from kernel: started with vladnosferatu and invano implementation + control over on and off length and step1, 2, 3, 4 control"

This reverts commit 26ceb658cba4f01a070fe87a0b7bf78e331a1b42.
jf kernel: brighter, fading LED

Change-Id: Idac135503a37daeb09823c00c1dffb7c4caaea74
board-8064-pmic: enable rtc_alarm_powerup

Change-Id: I7a54ce234cf7b8d208509ea8bb83ad49723553f9
sec-battery: Standardize the output of the "online" property

Return "0" when no power supply is present

Change-Id: Ic873705c20468cb5e7898fa2ddff5828cd5928cf
power: pm8921-charger: vote D0 when running kickstart

There is a small window when the PMIC could lock up while
running the kickstart routine. If PMIC sleeps right while
kickstart is run, it causes a short sleep which is known
to cause PMIC locksup.

To prevent these, specifically vote for D0 clock while
running kickstart which guarantees that the PMIC will not
sleep.

Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>

Conflicts:
	drivers/power/pm8921-charger.c

Change-Id: I830749c19c79fd63238769ecf7472d03d67e7aa2
power: pm8921-bms: fix calibration and UVLO issues

The bms is not running a hkadc calibration before calculating the
first SOC. This causes accuracy issues with the power on SOC.

Also when the battery gets in the low voltage range, don't limit
the corrections. We have seen UVLO where even though the BMS was
calculating SOC quickly it was not lowering the SOC fast enough.
Skip limiting ocv change when battery is near cutoff voltage.

Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>

Conflicts:
	drivers/power/pm8921-bms.c

Change-Id: I746a9b003135d51d51c7d039d411689ca69571dc
power: pm8921-charger: Add delay after turning on D0 (TCXO) clock

On APQ8064, TCXO cannot be turned off before its warm-up period (4ms).
This is not required on the platform which have a CXO. Add a warm-up
delay after turning on D0 (which turns on the TCXO).

Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>

Conflicts:
	arch/arm/mach-msm/board-8064-pmic.c
	drivers/power/pm8921-charger.c
	include/linux/mfd/pm8xxx/pm8921-charger.h

Change-Id: Iaa91b8051d6d6ed7bd6394cc920411792b176224
power: pm8921-charger: Fix delay in USB wall-charger removal

Avoid scheduling time optimization for the vin_min work. This
prevents delay in USB removal detection for USB wall-charger.

CRs-Fixed: 579548
Change-Id: I578a0a70122e4d10ff932a41d6c6ac58e5ef121d
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
Signed-off-by: Saket Saurabh <ssaurabh@codeaurora.org>
Revert "sec-battery: Standardize the output of the "online" property"

* Breaks qi charging. Will need to revisit.

This reverts commit 92a39ea884f338f3c0a8f8175ca741f24413e235.

Change-Id: I16ec79718d5a87a2fde7aca339a92b9c063d6c56