(SHIFT) drivers: power: reset: always allow rebooting to EDL

This allows rebooting to EDL even if CONFIG_QCOM_DLOAD_MODE
is not set.

Change-Id: If3f16fae26743a085e3e5c0b57c2d2ce85c29e4e
Signed-off-by: Alexander Martinz <amartinz@shiftphones.com>
diff --git a/drivers/power/reset/msm-poweroff.c b/drivers/power/reset/msm-poweroff.c
index 28792c2..f20ff84 100644
--- a/drivers/power/reset/msm-poweroff.c
+++ b/drivers/power/reset/msm-poweroff.c
@@ -220,7 +220,14 @@ static void set_dload_mode(int on)
 
 static void enable_emergency_dload_mode(void)
 {
+#ifdef CONFIG_SHIFT_PROJECT
+	if (tcsr_boot_misc_detect)
+		scm_io_write(tcsr_boot_misc_detect, SCM_EDLOAD_MODE);
+	else
+		pr_err("dload mode is not enabled on target\n");
+#else
 	pr_err("dload mode is not enabled on target\n");
+#endif
 }
 
 static bool get_dload_mode(void)