commit | abf826590a738cdcb334b7225c5f88b06de1c1ff | [log] [tgz] |
---|---|---|
author | Corey Tabaka <eieio@google.com> | Fri May 24 17:50:12 2013 -0700 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Tue May 28 22:07:41 2013 +0000 |
tree | 75269e4b7a96f54106d4dc732002e855c2e3c746 | |
parent | bee1dc2239e744ffa2a621ae3b967cd32f45d078 [diff] |
Reboot instead of powering off if VBUS is detected. The normal power off path is taken up until the last step to trigger the PMIC to power off. There the VBUS status is checked and if present the device is rebooted instead. The normal power off sequence ensures that the reboot reason is set to "off" which will be seen by the bootloader and result in booting into charger mode with an extra parameter to disable autoboot. Change-Id: I12f569e88c75fc16fff6cef0e6a7a0a1c015a0ee