USB Fast Charge for Nexus 5

Increases input current limit to 900mA when charging via USB.
This patch does not force AC mode because this device is capable
of a charging at a much higher current limit than some USB ports
are able to deliver.

Signed-off-by: flar2 <asegaert@gmail.com>

Removed info to get less spam in log

Signed-off-by: engstk <eng.stk@sapo.pt>

Conflicts:
	drivers/power/bq24192_charger.c

Conflicts:
	drivers/power/bq24192_charger.c

	modified:   arch/arm/mach-msm/Kconfig
	modified:   arch/arm/mach-msm/Makefile
	new file:   arch/arm/mach-msm/fastchg.c
	modified:   drivers/power/bq24192_charger.c
	new file:   include/linux/fastchg.h
Enable proprietary charger detection (e.g. iPhone/iPad charger) and treat it as AC power source.

Signed-off-by: engstk <eng.stk@sapo.pt>
fastcharge: increase battery charging current to use higher input current

Signed-off-by: Paul Reioux <reioux@gmail.com>
Signed-off-by: engstk <eng.stk@sapo.pt>
USB: Set power supply online status to false after cable disconnect

During bootup, power supply online status is set to true in
qpnp_charger_probe() as soon as usb cable insert is detected by
PMIC without waiting for notification from USB driver.
Later when usb cable is disconnected before charger detection
mechanism starts, online status is not set to false by USB.
As part of cable disconnect, USB checks in msm_otg_notify_charger()
whether the cur_power is same as requested mA, if both are same
then USB does not call power_supply_set_online() to set it to false.

Fix the issue by setting power supply online status to false for
the scenario when usb cable is disconected during bootup before
charger detection mechanism is completed.

CRs-fixed: 634183
Change-Id: Ibd57a40c7364e13bb10870e9e6343224e01171d7
Signed-off-by: Saket Saurabh <ssaurabh@codeaurora.org>
Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
Signed-off-by: engstk <eng.stk@sapo.pt>
defconfig: enable fast charge

	modified:   arch/arm/configs/hammerhead_defconfig