diff options
author | Sharat Masetty <smasetty@codeaurora.org> | 2020-07-13 18:11:42 +0530 |
---|---|---|
committer | Rob Clark <robdclark@chromium.org> | 2020-07-31 06:46:15 -0700 |
commit | 1f60d11423db7152508f965fcf2db13a1094f7f3 (patch) | |
tree | 8e95db69e22cdd7cd96135f4ac58f8a170265dfe /drivers/gpu/drm/msm/msm_gpu.h | |
parent | 369c4ef4330f395835f63fe62e4110f4608c9459 (diff) | |
download | linux-1f60d11423db7152508f965fcf2db13a1094f7f3.tar.gz linux-1f60d11423db7152508f965fcf2db13a1094f7f3.tar.bz2 linux-1f60d11423db7152508f965fcf2db13a1094f7f3.zip |
drm: msm: a6xx: send opp instead of a frequency
This patch changes the plumbing to send the devfreq recommended opp rather
than the frequency. Also consolidate and rearrange the code in a6xx to set
the GPU frequency and the icc vote in preparation for the upcoming
changes for GPU->DDR scaling votes.
Signed-off-by: Sharat Masetty <smasetty@codeaurora.org>
Signed-off-by: Akhil P Oommen <akhilpo@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@chromium.org>
Diffstat (limited to 'drivers/gpu/drm/msm/msm_gpu.h')
-rw-r--r-- | drivers/gpu/drm/msm/msm_gpu.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/msm/msm_gpu.h b/drivers/gpu/drm/msm/msm_gpu.h index 429cb40f7931..0db117a7339b 100644 --- a/drivers/gpu/drm/msm/msm_gpu.h +++ b/drivers/gpu/drm/msm/msm_gpu.h @@ -9,6 +9,7 @@ #include <linux/clk.h> #include <linux/interconnect.h> +#include <linux/pm_opp.h> #include <linux/regulator/consumer.h> #include "msm_drv.h" @@ -61,7 +62,7 @@ struct msm_gpu_funcs { struct msm_gpu_state *(*gpu_state_get)(struct msm_gpu *gpu); int (*gpu_state_put)(struct msm_gpu_state *state); unsigned long (*gpu_get_freq)(struct msm_gpu *gpu); - void (*gpu_set_freq)(struct msm_gpu *gpu, unsigned long freq); + void (*gpu_set_freq)(struct msm_gpu *gpu, struct dev_pm_opp *opp); struct msm_gem_address_space *(*create_address_space) (struct msm_gpu *gpu, struct platform_device *pdev); }; |