target: msm8226: Add support to reboot the device.

Change-Id: Ifa7cfa0c614512e3340fdbe5b864a308577fd06c
diff --git a/target/msm8226/init.c b/target/msm8226/init.c
index 442a26f..279d063 100644
--- a/target/msm8226/init.c
+++ b/target/msm8226/init.c
@@ -184,6 +184,21 @@
 	return restart_reason;
 }
 
+void reboot_device(unsigned reboot_reason)
+{
+	writel(reboot_reason, RESTART_REASON_ADDR);
+
+	/* Configure PMIC for warm reset */
+	pm8x41_reset_configure(PON_PSHOLD_WARM_RESET);
+
+	/* Drop PS_HOLD for MSM */
+	writel(0x00, MPM2_MPM_PS_HOLD);
+
+	mdelay(5000);
+
+	dprintf(CRITICAL, "Rebooting failed\n");
+}
+
 unsigned board_machtype(void)
 {
 }