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

Commit dd09c9ae authored by Karthik Parsha's avatar Karthik Parsha
Browse files

msm: spm: Disable Qchannel and SPM legacy mode when A57 rail is turned on



When the A57 rail is turned on at the A57 l2, set qchannel to be ignored
and disable spm legacy mode.

Change-Id: I7b9813394273f7bedc323e0d7539bd4b88dba384
Signed-off-by: default avatarKarthik Parsha <kparsha@codeaurora.org>
parent 51c75088
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -283,9 +283,11 @@ int msm_spm_turn_on_cpu_rail(struct device_node *vctl_node,
	if (base) {
		/*
		 * Program Q2S to disable SPM legacy mode and ignore Q2S
		 * channel requests
		 * channel requests.
		 * bit[1] = qchannel_ignore = 1
		 * bit[2] = spm_legacy_mode = 0
		 */
		writel_relaxed(0x1, base);
		writel_relaxed(0x2, base);
		mb();
		iounmap(base);
	}