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

Commit e85a24d3 authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: kgsl: Hardcode CX OPP power levels for A650"

parents d88c9d36 78c33f3f
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)) {