diff options
author | Peter Boonstoppel <pboonstoppel@nvidia.com> | 2016-10-07 18:30:59 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2016-11-15 15:30:06 -0500 |
commit | 01e61860fafbc0ee045c2db931a79f6c0d5300aa (patch) | |
tree | 83c8da282d83fd8d9edc441d561dede6b9a8dece /drivers/gpu/nvgpu/gk20a/clk_gk20a.h | |
parent | 3a6d47db9d00f86d90a1230dd2225bf4ae8944b8 (diff) |
gpu: nvgpu: gm20b expose gpcclk through CCF
Register gpcclk with Common Clock Framework to expose GPCPLL frequency
control
Bug 200233943
Change-Id: Id6f7bbaca15f22157b91b092c2a035af933fa71e
Signed-off-by: Peter Boonstoppel <pboonstoppel@nvidia.com>
Reviewed-on: http://git-master/r/1236979
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/clk_gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/clk_gk20a.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/clk_gk20a.h b/drivers/gpu/nvgpu/gk20a/clk_gk20a.h index aefbc5d5..43583f2e 100644 --- a/drivers/gpu/nvgpu/gk20a/clk_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/clk_gk20a.h | |||
@@ -17,6 +17,7 @@ | |||
17 | #define CLK_GK20A_H | 17 | #define CLK_GK20A_H |
18 | 18 | ||
19 | #include <linux/mutex.h> | 19 | #include <linux/mutex.h> |
20 | #include <linux/clk-provider.h> | ||
20 | 21 | ||
21 | #define GPUFREQ_TABLE_END ~(u32)1 | 22 | #define GPUFREQ_TABLE_END ~(u32)1 |
22 | enum { | 23 | enum { |
@@ -79,6 +80,9 @@ struct namemap_cfg; | |||
79 | struct clk_gk20a { | 80 | struct clk_gk20a { |
80 | struct gk20a *g; | 81 | struct gk20a *g; |
81 | struct clk *tegra_clk; | 82 | struct clk *tegra_clk; |
83 | #if defined(CONFIG_COMMON_CLK) | ||
84 | struct clk_hw hw; | ||
85 | #endif | ||
82 | struct pll gpc_pll; | 86 | struct pll gpc_pll; |
83 | struct pll gpc_pll_last; | 87 | struct pll gpc_pll_last; |
84 | struct mutex clk_mutex; | 88 | struct mutex clk_mutex; |
@@ -89,6 +93,10 @@ struct clk_gk20a { | |||
89 | bool debugfs_set; | 93 | bool debugfs_set; |
90 | }; | 94 | }; |
91 | 95 | ||
96 | #if defined(CONFIG_COMMON_CLK) | ||
97 | #define to_clk_gk20a(_hw) container_of(_hw, struct clk_gk20a, hw) | ||
98 | #endif | ||
99 | |||
92 | struct gpu_ops; | 100 | struct gpu_ops; |
93 | #ifdef CONFIG_TEGRA_CLK_FRAMEWORK | 101 | #ifdef CONFIG_TEGRA_CLK_FRAMEWORK |
94 | void gk20a_init_clk_ops(struct gpu_ops *gops); | 102 | void gk20a_init_clk_ops(struct gpu_ops *gops); |