diff options
author | Jordan Crouse <jcrouse@codeaurora.org> | 2017-03-07 20:02:56 +0300 |
---|---|---|
committer | Rob Clark <robdclark@gmail.com> | 2017-04-08 13:59:37 +0300 |
commit | 98db803f6413e6d4bf1f590ea57e9e7dfe1eb32b (patch) | |
tree | 28d814bedb2d3dfdd886613de45d5c1697743caf /drivers/gpu/drm/msm/msm_gpu.h | |
parent | e2af8b6b0ca1f55e9b2c8a034c352c56ae054066 (diff) | |
download | linux-98db803f6413e6d4bf1f590ea57e9e7dfe1eb32b.tar.xz |
msm/drm: gpu: Dynamically locate the clocks from the device tree
Instead of using a fixed list of clock names use the clock-names
list in the device tree to discover and get the list of clocks
that we need.
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@gmail.com>
Diffstat (limited to 'drivers/gpu/drm/msm/msm_gpu.h')
-rw-r--r-- | drivers/gpu/drm/msm/msm_gpu.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/msm/msm_gpu.h b/drivers/gpu/drm/msm/msm_gpu.h index 44f0c34ee5e4..aa3241000455 100644 --- a/drivers/gpu/drm/msm/msm_gpu.h +++ b/drivers/gpu/drm/msm/msm_gpu.h @@ -103,7 +103,9 @@ struct msm_gpu { /* Power Control: */ struct regulator *gpu_reg, *gpu_cx; - struct clk *ebi1_clk, *grp_clks[6]; + struct clk **grp_clks; + int nr_clocks; + struct clk *ebi1_clk, *core_clk, *rbbmtimer_clk; uint32_t fast_rate, bus_freq; #ifdef DOWNSTREAM_CONFIG_MSM_BUS_SCALING |