platform: msm_shared: Add check to do a WARM reboot for RECOVERY mode
Add check to do a warm reboot into recovery mode.
Change-Id: I14c2bed42055d43060f5b8e1fdfad0beead53ef4
diff --git a/platform/msm_shared/reboot.c b/platform/msm_shared/reboot.c
index abe2ce9..fb29ab5 100644
--- a/platform/msm_shared/reboot.c
+++ b/platform/msm_shared/reboot.c
@@ -122,7 +122,7 @@
/* For Reboot-bootloader and Dload cases do a warm reset
* For Reboot cases do a hard reset
*/
- if((reboot_reason == FASTBOOT_MODE) || (reboot_reason == DLOAD))
+ if((reboot_reason == FASTBOOT_MODE) || (reboot_reason == DLOAD) || (reboot_reason == RECOVERY_MODE))
reset_type = PON_PSHOLD_WARM_RESET;
else
reset_type = PON_PSHOLD_HARD_RESET;
diff --git a/platform/msm_shared/reboot.h b/platform/msm_shared/reboot.h
index cf03b27..7156c01 100644
--- a/platform/msm_shared/reboot.h
+++ b/platform/msm_shared/reboot.h
@@ -27,6 +27,7 @@
* IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#define FASTBOOT_MODE 0x77665500
+#define RECOVERY_MODE 0x77665502
#define ALARM_BOOT 0x77665503
#define RTC_TRG 4
#define PON_SOFT_RB_SPARE 0x88F