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

Commit c4c7426f authored by George Shen's avatar George Shen Committed by Kyle Piefer
Browse files

msm: kgsl: Fix incorrect GMU register programming



The reset value of the SPTPRAC power configuration
register has unneeded bits. Initialize it to the
desired value at boot.

CRs-Fixed: 2017390
Change-Id: I33b2d0a6da72b82e2d95189b43b3a46e415dab1a
Signed-off-by: default avatarGeorge Shen <sqiao@codeaurora.org>
Signed-off-by: default avatarKyle Piefer <kpiefer@codeaurora.org>
parent ff3d7de3
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -828,6 +828,10 @@ static void a6xx_gmu_power_config(struct kgsl_device *device)
	struct gmu_device *gmu = &device->gmu;

	/* Configure registers for idle setting. The setting is cumulative */

	kgsl_gmu_regwrite(device,
		A6XX_GMU_PWR_COL_INTER_FRAME_CTRL,  0x9C40400);

	switch (gmu->idle_level) {
	case GPU_HW_MIN_VOLT:
		kgsl_gmu_regrmw(device, A6XX_GMU_RPMH_CTRL, 0,