target: mdmfermium: correct the reboot reason type

Fastboot reboot should issue pmic HARD reset,hence
changed the reset reason type for it.

Change-Id: I8366deee5cf303f901567c39f14f7e08758e2de6
diff --git a/target/mdmfermium/init.c b/target/mdmfermium/init.c
index 65d1b0a..db7c591 100644
--- a/target/mdmfermium/init.c
+++ b/target/mdmfermium/init.c
@@ -280,6 +280,7 @@
 
 void reboot_device(unsigned reboot_reason)
 {
+	uint8_t reset_type = 0;
 	 /* Write the reboot reason */
 	writel(reboot_reason, RESTART_REASON_ADDR);
 
@@ -288,7 +289,12 @@
 	* 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)
+		reset_type = PON_PSHOLD_WARM_RESET;
+	else
+		reset_type = PON_PSHOLD_HARD_RESET;
+
+	pm8x41_v2_reset_configure(reset_type);
 
 	/* Drop PS_HOLD for MSM */
 	writel(0x00, MPM2_MPM_PS_HOLD);