mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 21:22:09 -04:00
msm: kgsl: Add GBIF L2 CGC control with A6x CGC
GBIF L2 CGC is not covered in UCHE CGC control. Hence handle GBIF L2 CGC settings separately. Change-Id: I9f33b2a868a81a68c5957990f737a3eeab7cd6fc Signed-off-by: Hareesh Gundu <hareeshg@codeaurora.org>
This commit is contained in:
parent
73db1046f1
commit
587764ea8b
1 changed files with 4 additions and 0 deletions
|
|
@ -49,6 +49,7 @@ static u32 a6xx_pwrup_reglist[] = {
|
|||
A6XX_SP_NC_MODE_CNTL,
|
||||
A6XX_PC_DBG_ECO_CNTL,
|
||||
A6XX_RB_CONTEXT_SWITCH_GMEM_SAVE_RESTORE,
|
||||
A6XX_UCHE_GBIF_GX_CONFIG,
|
||||
};
|
||||
|
||||
/* IFPC only static powerup restore list */
|
||||
|
|
@ -372,6 +373,9 @@ static void a6xx_hwcg_set(struct adreno_device *adreno_dev, bool on)
|
|||
kgsl_regwrite(device, a6xx_core->hwcg[i].offset,
|
||||
on ? a6xx_core->hwcg[i].value : 0);
|
||||
|
||||
/* GBIF L2 CGC control is not part of the UCHE */
|
||||
kgsl_regrmw(device, A6XX_UCHE_GBIF_GX_CONFIG, 0x70000, on ? 2 : 0);
|
||||
|
||||
/*
|
||||
* Enable SP clock after programming HWCG registers.
|
||||
* A612 and A610 GPU is not having the GX power domain.
|
||||
|
|
|
|||
Loading…
Reference in a new issue