target: msm8610: Add support to read power on reason.
Change-Id: I5e48d026a4e44d427a57c3ee2889a3f836222662
diff --git a/target/msm8610/init.c b/target/msm8610/init.c
index c62b547..7e962b3 100644
--- a/target/msm8610/init.c
+++ b/target/msm8610/init.c
@@ -207,6 +207,21 @@
dprintf(CRITICAL, "Rebooting failed\n");
}
+unsigned target_pause_for_battery_charge(void)
+{
+ uint8_t pon_reason = pm8x41_get_pon_reason();
+
+ /* This function will always return 0 to facilitate
+ * automated testing/reboot with usb connected.
+ * uncomment if this feature is needed.
+ */
+ /* if ((pon_reason == USB_CHG) || (pon_reason == DC_CHG))
+ * return 1;
+ */
+
+ return 0;
+}
+
unsigned board_machtype(void)
{
return 0;