target: msm8610: Add shutdown_device support

Configure PMIC and drop PS_HOLD for device shutdown.

Change-Id: Ic5092def184665120d98b05b77c33f1bb2302e7d
diff --git a/target/msm8610/init.c b/target/msm8610/init.c
index 87daf47..772bc25 100644
--- a/target/msm8610/init.c
+++ b/target/msm8610/init.c
@@ -510,6 +510,24 @@
 	return 0;
 }
 
+/* Configure PMIC and Drop PS_HOLD for shutdown */
+void shutdown_device()
+{
+	dprintf(CRITICAL, "Going down for shutdown.\n");
+
+	/* Configure PMIC for shutdown */
+	pm8x41_reset_configure(PON_PSHOLD_SHUTDOWN);
+
+	/* Drop PS_HOLD for MSM */
+	writel(0x00, MPM2_MPM_PS_HOLD);
+
+	mdelay(5000);
+
+	dprintf(CRITICAL, "shutdown failed\n");
+
+	ASSERT(0);
+}
+
 crypto_engine_type board_ce_type(void)
 {
 	return CRYPTO_ENGINE_TYPE_HW;