target: FP2: Check KPDPWR_N bit during charger mode check.

Adapted from commit a8711dc8 to target FP2 instead of msm8226.

From a cold boot if you plug in usb and press the power key at the same
time we will now boot into normal mode. Earlier this condition would have
put us in the charger mode.

Issue: FP2N-231
Change-Id: I7edd3acd87acdadfc337e5beb3a5e7e575a5165c
(adapted from commit a8711dc8a07cbad7f212d9dabe10263aad224eb6)
diff --git a/target/FP2/init.c b/target/FP2/init.c
index f1842e1..c15bb59 100644
--- a/target/FP2/init.c
+++ b/target/FP2/init.c
@@ -706,12 +706,14 @@
 	uint8_t is_cold_boot = pm8x41_get_is_cold_boot();
 	dprintf(INFO, "%s : pon_reason is %d cold_boot:%d\n", __func__,
 			pon_reason, is_cold_boot);
-	/*In case of fastboot reboot or adb reboot we do not want go into
-	 * charger mode.
+	/* In case of fastboot reboot,adb reboot or if we see the power key
+	 * pressed we do not want go into charger mode.
 	 * fastboot reboot is warm boot with PON hard reset bit not set
 	 * adb reboot is a cold boot with PON hard reset bit set
 	 */
-	if (is_cold_boot && (!(pon_reason & HARD_RST)) &&
+	if (is_cold_boot &&
+			(!(pon_reason & HARD_RST)) &&
+			(!(pon_reason & KPDPWR_N)) &&
 			((pon_reason & USB_CHG) || (pon_reason & DC_CHG)))
 		return 1;
 	else