Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit adcb4288 authored by Prasad Sodagudi's avatar Prasad Sodagudi
Browse files

power: reset: Remove deprecated APIs usage related to SCM



Remove the scm related deprecated APIs getting
used in poweroff driver. As specially is_scm_armv8()
not supported from scm driver interface.

Change-Id: I6ef5690a6263f26dbe33ba5052bdfd171585081e
Signed-off-by: default avatarPrasad Sodagudi <psodagud@codeaurora.org>
parent fb6ac91f
Loading
Loading
Loading
Loading
+3 −15
Original line number Diff line number Diff line
@@ -124,10 +124,6 @@ int scm_set_dload_mode(int arg1, int arg2)
		return 0;
	}

	if (!is_scm_armv8())
		return scm_call_atomic2(SCM_SVC_BOOT, SCM_DLOAD_CMD, arg1,
					arg2);

	return scm_call2_atomic(SCM_SIP_FNID(SCM_SVC_BOOT, SCM_DLOAD_CMD),
				&desc);
}
@@ -231,10 +227,6 @@ static void scm_disable_sdi(void)
	};

	/* Needed to bypass debug image on some chips */
	if (!is_scm_armv8())
		ret = scm_call_atomic2(SCM_SVC_BOOT,
			       SCM_WDOG_DEBUG_BOOT_PART, 1, 0);
	else
	ret = scm_call2_atomic(SCM_SIP_FNID(SCM_SVC_BOOT,
			  SCM_WDOG_DEBUG_BOOT_PART), &desc);
	if (ret)
@@ -262,10 +254,6 @@ static void halt_spmi_pmic_arbiter(void)

	if (scm_pmic_arbiter_disable_supported) {
		pr_crit("Calling SCM to disable SPMI PMIC arbiter\n");
		if (!is_scm_armv8())
			scm_call_atomic1(SCM_SVC_PWR,
					 SCM_IO_DISABLE_PMIC_ARBITER, 0);
		else
		scm_call2_atomic(SCM_SIP_FNID(SCM_SVC_PWR,
				SCM_IO_DISABLE_PMIC_ARBITER), &desc);
	}