summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/msm/adreno/a6xx_gpu.h
diff options
context:
space:
mode:
authorSharat Masetty <smasetty@codeaurora.org>2018-10-04 15:11:43 +0530
committerRob Clark <robdclark@gmail.com>2018-10-04 09:19:37 -0400
commita2c3c0a54d4cccb35e8071a11e203c4ac06f9e4e (patch)
treeabcf2e914aaf00c563b96dc2605c627e12ed528b /drivers/gpu/drm/msm/adreno/a6xx_gpu.h
parentde0a3d094de0858f091cf353c437e912ca41a506 (diff)
downloadlinux-a2c3c0a54d4cccb35e8071a11e203c4ac06f9e4e.tar.gz
linux-a2c3c0a54d4cccb35e8071a11e203c4ac06f9e4e.tar.bz2
linux-a2c3c0a54d4cccb35e8071a11e203c4ac06f9e4e.zip
drm/msm/a6xx: Add devfreq support for a6xx
Implement routines to estimate GPU busy time and fetching the current frequency for the polling interval. This is required by the devfreq framework which recommends a frequency change if needed. The driver code then tries to set this new frequency on the GPU by sending an Out Of Band(OOB) request to the GMU. Signed-off-by: Sharat Masetty <smasetty@codeaurora.org> Signed-off-by: Rob Clark <robdclark@gmail.com>
Diffstat (limited to 'drivers/gpu/drm/msm/adreno/a6xx_gpu.h')
-rw-r--r--drivers/gpu/drm/msm/adreno/a6xx_gpu.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/msm/adreno/a6xx_gpu.h b/drivers/gpu/drm/msm/adreno/a6xx_gpu.h
index dd69e5b0e692..4127dcebc202 100644
--- a/drivers/gpu/drm/msm/adreno/a6xx_gpu.h
+++ b/drivers/gpu/drm/msm/adreno/a6xx_gpu.h
@@ -56,5 +56,6 @@ void a6xx_gmu_clear_oob(struct a6xx_gmu *gmu, enum a6xx_gmu_oob_state state);
int a6xx_gmu_probe(struct a6xx_gpu *a6xx_gpu, struct device_node *node);
void a6xx_gmu_remove(struct a6xx_gpu *a6xx_gpu);
-
+void a6xx_gmu_set_freq(struct msm_gpu *gpu, unsigned long freq);
+unsigned long a6xx_gmu_get_freq(struct msm_gpu *gpu);
#endif /* __A6XX_GPU_H__ */