]> git.baikalelectronics.ru Git - kernel.git/commit
drm/msm/dpu: Use OPP API to set clk/perf state
authorRajendra Nayak <rnayak@codeaurora.org>
Thu, 9 Jul 2020 11:04:31 +0000 (16:34 +0530)
committerRob Clark <robdclark@chromium.org>
Fri, 31 Jul 2020 13:46:15 +0000 (06:46 -0700)
commit3747386762e80a19d8c8b3b12afb15431f94075f
treebb44252fa740a46f32123b182f8bce732ddaa42b
parentebf35d8d8fa2234e4ee96ea169763495814fb420
drm/msm/dpu: Use OPP API to set clk/perf state

On some qualcomm platforms DPU needs to express a performance state
requirement on a power domain depending on the clock rates.
Use OPP table from DT to register with OPP framework and use
dev_pm_opp_set_rate() to set the clk/perf state.

Signed-off-by: Rajendra Nayak <rnayak@codeaurora.org>
Reviewed-by: Rob Clark <robdclark@chromium.org>
Reviewed-by: Matthias Kaehlcke <mka@chromium.org>
Signed-off-by: Rob Clark <robdclark@chromium.org>
drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c
drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c
drivers/gpu/drm/msm/disp/dpu1/dpu_kms.h