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

Commit 9fef5b96 authored by Bojun Pan's avatar Bojun Pan Committed by Gerrit - the friendly Code Review server
Browse files

msm: ipa4: add IPA_PC node vote after uC loaded



To enable the ipa power collapse, we need to enable rpmh and uC
handshaking so that uC can do the register retention. The logic
is missing for APQ target.

Change-Id: I1e0604d3c8ad4ef6307b151e91c993e403df52cc
Signed-off-by: default avatarBojun Pan <bojunp@codeaurora.org>
parent 0975ba84
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -499,6 +499,16 @@ static void ipa3_uc_response_hdlr(enum ipa_irq_type interrupt,
		 */
		ipa3_proxy_clk_unvote();

		/*
		 * To enable ipa power collapse we need to enable rpmh and uc
		 * handshake So that uc can do register retention. To enable
		 * this handshake we need to send the below message to rpmh.
		 * For APQ only target, we do it here once uC loading is
		 * completed.
		 */
		if (ipa3_ctx->platform_type == IPA_PLAT_TYPE_APQ)
			ipa_pc_qmp_enable();

		for (i = 0; i < IPA_HW_NUM_FEATURES; i++) {
			if (ipa3_uc_hdlrs[i].ipa_uc_loaded_hdlr)
				ipa3_uc_hdlrs[i].ipa_uc_loaded_hdlr();