mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 07:03:09 -04:00
msm: kgsl: Enable HWCG after a6xx register configurations
For A6xx GPU enable hardware clock gating after register configuration to avoid register access issue due to hardware internal clock gating. Change-Id: If55632ccf9171a7093bb1e925e4fcdb88066417c Signed-off-by: Hareesh Gundu <hareeshg@codeaurora.org>
This commit is contained in:
parent
7b54b39b21
commit
c86af5a851
1 changed files with 6 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue