diff options
author | David Nieto <dmartineznie@nvidia.com> | 2016-08-08 06:17:28 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2016-09-29 16:17:52 -0400 |
commit | 965c2cbbecbb569a5d3062558047eedcdf9bb7e5 (patch) | |
tree | 81f7547a4a898129644d8ed0344b32aa093a5e2e /drivers/gpu/nvgpu/gk20a/clk_gk20a.h | |
parent | 098fb0d4dd5aa322446f3d64e76b737db0b1692c (diff) |
gpu: nvgpu: add debugfs to dump clocks
It attaches the neccesary namemap structures to the clock struct so we can enumerate the clock domains in the debugfs code in nvgpu-t18x.
the other is to add an accessor for the fields.
JIRA DNVGPU-98
Change-Id: I6e5c6e763b2b88daa1995f4136a9a7b33ea25b17
Signed-off-by: David Nieto <dmartineznie@nvidia.com>
Reviewed-on: http://git-master/r/1199083
Reviewed-on: http://git-master/r/1204016
(cherry picked from commit b9d95a45791b93ddc010d1aeddbe798d2a9705d4)
Reviewed-on: http://git-master/r/1227910
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/clk_gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/clk_gk20a.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/clk_gk20a.h b/drivers/gpu/nvgpu/gk20a/clk_gk20a.h index 8408f460..aefbc5d5 100644 --- a/drivers/gpu/nvgpu/gk20a/clk_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/clk_gk20a.h | |||
@@ -74,12 +74,16 @@ struct pll_parms { | |||
74 | u32 iddq_exit_delay; | 74 | u32 iddq_exit_delay; |
75 | }; | 75 | }; |
76 | 76 | ||
77 | struct namemap_cfg; | ||
78 | |||
77 | struct clk_gk20a { | 79 | struct clk_gk20a { |
78 | struct gk20a *g; | 80 | struct gk20a *g; |
79 | struct clk *tegra_clk; | 81 | struct clk *tegra_clk; |
80 | struct pll gpc_pll; | 82 | struct pll gpc_pll; |
81 | struct pll gpc_pll_last; | 83 | struct pll gpc_pll_last; |
82 | struct mutex clk_mutex; | 84 | struct mutex clk_mutex; |
85 | struct namemap_cfg *clk_namemap; | ||
86 | u32 namemap_num; | ||
83 | bool sw_ready; | 87 | bool sw_ready; |
84 | bool clk_hw_on; | 88 | bool clk_hw_on; |
85 | bool debugfs_set; | 89 | bool debugfs_set; |