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

Commit c5cb9fd1 authored by Oleg Perelet's avatar Oleg Perelet
Browse files

msm: kgsl: Enable Limits Management at boot time



Enable Limits Management at boot time, set limit to 6A.

Change-Id: I76657f47a9e6d48dd96743c1cd37957e68bb2bcb
Signed-off-by: default avatarOleg Perelet <operelet@codeaurora.org>
parent cdecac51
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -87,7 +87,8 @@ static struct adreno_device device_3d0 = {
	.long_ib_detect = 1,
	.input_work = __WORK_INITIALIZER(device_3d0.input_work,
		adreno_input_work),
	.pwrctrl_flag = BIT(ADRENO_SPTP_PC_CTRL) | BIT(ADRENO_PPD_CTRL),
	.pwrctrl_flag = BIT(ADRENO_SPTP_PC_CTRL) | BIT(ADRENO_PPD_CTRL) |
		BIT(ADRENO_LM_CTRL),
	.profile.enabled = false,
};

+2 −2
Original line number Diff line number Diff line
@@ -1373,8 +1373,8 @@ static void a5xx_lm_init(struct adreno_device *adreno_dev)
	kgsl_regwrite(device, A5XX_GPMU_BASE_LEAKAGE,
		gfx_base_leakage(adreno_dev));

	/* default of 6A */
	kgsl_regwrite(device, A5XX_GPMU_GPMU_PWR_THRESHOLD, 0x80001000);
	/* Enable the power threshold and set it to 6000m */
	kgsl_regwrite(device, A5XX_GPMU_GPMU_PWR_THRESHOLD, 0x80000000 | 6000);

	kgsl_regwrite(device, A5XX_GPMU_BEC_ENABLE, 0x10001FFF);
	kgsl_regwrite(device, A5XX_GDPM_CONFIG1, 0x00201FF1);