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

Commit 9b616f5c authored by Vikram Mulukutla's avatar Vikram Mulukutla
Browse files

qcom: clock-cpu-8994: Set cached mux sel when setting up A57 clocks



The A57 clocks are setup before probe can happen - in
an early_initcall. Set the cached mux selection in the
A57 mux structures to match the selection being programmed.

Change-Id: I488b38819a038820b1800ea434a08431daa85965
Signed-off-by: default avatarVikram Mulukutla <markivx@codeaurora.org>
parent 3d7aa609
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -1071,6 +1071,10 @@ int __init cpu_clock_8994_init_a57(void)


	__cpu_mux_set_sel(&a57_lf_mux, safe_sel);
	__cpu_mux_set_sel(&a57_lf_mux, safe_sel);


	/* Set the cached mux selections to match what was programmed above. */
	a57_lf_mux.en_mask = safe_sel;
	a57_hf_mux.en_mask = lfmux_sel;

	iounmap(vbases[ALIAS1_GLB_BASE]);
	iounmap(vbases[ALIAS1_GLB_BASE]);
	iounmap(vbases[C1_PLL_BASE]);
	iounmap(vbases[C1_PLL_BASE]);