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

Commit 78c33f3f authored by Carter Cooper's avatar Carter Cooper
Browse files

msm: kgsl: Hardcode CX OPP power levels for A650



Hardcode OPP CX levels until they are enabled on A650.

Change-Id: I3d2a628b6dfdeec41b92b1591840c56135ca8ad9
Signed-off-by: default avatarRaghu Ananya Arabolu <rarabolu@codeaurora.org>
Signed-off-by: default avatarCarter Cooper <ccooper@codeaurora.org>
parent 9d2c3982
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -705,6 +705,8 @@ static int rpmh_arc_votes_init(struct kgsl_device *device,
	int i, ret;
	struct dev_pm_opp *opp;

	uint16_t cx_vlvl[MAX_GX_LEVELS] = { 64, 128, 192, 256, 384, 416 };

	if (type == GPU_ARC_VOTE) {
		num_freqs = gmu->num_gpupwrlevels;
		votes = gmu->rpmh_votes.gx_votes;
@@ -734,6 +736,13 @@ static int rpmh_arc_votes_init(struct kgsl_device *device,
			continue;
		}

		/* Hardcode GMU ARC Vote levels for A650 */
		if (adreno_is_a650(ADRENO_DEVICE(device)) &&
				type == GMU_ARC_VOTE) {
			vlvl_tbl[i] = cx_vlvl[i];
			continue;
		}

		/* Otherwise get the value from the OPP API */
		opp = dev_pm_opp_find_freq_exact(dev, freq_tbl[i], true);
		if (IS_ERR(opp)) {