target: mdm9640: Fix reboot api for 9x40
Perform hard reboot for "reboot" and warm reset for "reboot-bootloader"
calls.
Change-Id: I973bf4ea45969edbff420d7051fbeb63934695dc
diff --git a/target/mdm9640/init.c b/target/mdm9640/init.c
index adaccfd..09dedef 100644
--- a/target/mdm9640/init.c
+++ b/target/mdm9640/init.c
@@ -182,7 +182,10 @@
* This call should be based on the pmic version
* when PM8019 v2 is available.
*/
- pm8x41_v2_reset_configure(PON_PSHOLD_WARM_RESET);
+ if (reboot_reason)
+ pm8x41_v2_reset_configure(PON_PSHOLD_WARM_RESET);
+ else
+ pm8x41_v2_reset_configure(PON_PSHOLD_HARD_RESET);
/* Drop PS_HOLD for MSM */
writel(0x00, MPM2_MPM_PS_HOLD);