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

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

Merge "msm: kgsl: Enable HWCG after a6xx register configurations"

parents bcaa466f c86af5a8
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -423,9 +423,6 @@ void a6xx_start(struct adreno_device *adreno_dev)
	unsigned int rgb565_predicator = 0;
	static bool patch_reglist;

	/* enable hardware clockgating */
	a6xx_hwcg_set(adreno_dev, true);

	/* Enable 64 bit addressing */
	kgsl_regwrite(device, A6XX_CP_ADDR_MODE_CNTL, 0x1);
	kgsl_regwrite(device, A6XX_VSC_ADDR_MODE_CNTL, 0x1);
@@ -657,6 +654,12 @@ void a6xx_start(struct adreno_device *adreno_dev)

	a6xx_set_secvid(device);

	/*
	 * Enable hardware clock gating here to prevent any register access
	 * issue due to internal clock gating.
	 */
	a6xx_hwcg_set(adreno_dev, true);

	/*
	 * All registers must be written before this point so that we don't
	 * miss any register programming when we patch the power up register