diff options
author | Deepak Nibade <dnibade@nvidia.com> | 2017-05-16 05:40:22 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-05-24 07:55:47 -0400 |
commit | 8f4a590cf22fa9691953e9be0dca18b399228167 (patch) | |
tree | e3a0e17ebba6116d0d72e0869a06507189bcfadf /drivers/gpu/nvgpu/gk20a | |
parent | 5570194dc4d97a857b354b706949e27663ebeee0 (diff) |
gpu: nvgpu: remove TEGRA_CLK_FRAMEWORK support
CONFIG_TEGRA_CLK_FRAMEWORK is no longer supported
hence remove this config and all the code that is
protected with this config
Jira NVGPU-49
Change-Id: Ica28019e0c99e95743216e005ba2fba20357b2d5
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/1483090
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/clk_gk20a.h | 5 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.h | 2 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a_sysfs.c | 4 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/hal_gk20a.c | 1 |
4 files changed, 0 insertions, 12 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/clk_gk20a.h b/drivers/gpu/nvgpu/gk20a/clk_gk20a.h index f07efa40..76f5de43 100644 --- a/drivers/gpu/nvgpu/gk20a/clk_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/clk_gk20a.h | |||
@@ -104,11 +104,6 @@ struct clk_gk20a { | |||
104 | #endif | 104 | #endif |
105 | 105 | ||
106 | struct gpu_ops; | 106 | struct gpu_ops; |
107 | #ifdef CONFIG_TEGRA_CLK_FRAMEWORK | ||
108 | void gk20a_init_clk_ops(struct gpu_ops *gops); | ||
109 | #else | ||
110 | static inline void gk20a_init_clk_ops(struct gpu_ops *gops) {} | ||
111 | #endif | ||
112 | 107 | ||
113 | /* APIs used for both GK20A and GM20B */ | 108 | /* APIs used for both GK20A and GM20B */ |
114 | unsigned long gk20a_clk_get_rate(struct gk20a *g); | 109 | unsigned long gk20a_clk_get_rate(struct gk20a *g); |
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h index 3d1e0847..217b1186 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gk20a.h | |||
@@ -1275,8 +1275,6 @@ enum gk20a_nonstall_ops { | |||
1275 | gk20a_nonstall_ops_post_events = BIT(1), | 1275 | gk20a_nonstall_ops_post_events = BIT(1), |
1276 | }; | 1276 | }; |
1277 | 1277 | ||
1278 | void gk20a_init_clk_ops(struct gpu_ops *gops); | ||
1279 | |||
1280 | /* register accessors */ | 1278 | /* register accessors */ |
1281 | int gk20a_lockout_registers(struct gk20a *g); | 1279 | int gk20a_lockout_registers(struct gk20a *g); |
1282 | int gk20a_restore_registers(struct gk20a *g); | 1280 | int gk20a_restore_registers(struct gk20a *g); |
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a_sysfs.c b/drivers/gpu/nvgpu/gk20a/gk20a_sysfs.c index ff9e0fc1..d7642182 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a_sysfs.c +++ b/drivers/gpu/nvgpu/gk20a/gk20a_sysfs.c | |||
@@ -23,7 +23,6 @@ | |||
23 | #include <linux/pm_runtime.h> | 23 | #include <linux/pm_runtime.h> |
24 | #include <linux/fb.h> | 24 | #include <linux/fb.h> |
25 | #include <linux/gk20a.h> | 25 | #include <linux/gk20a.h> |
26 | #include <linux/clk/tegra.h> | ||
27 | #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 4, 0)) | 26 | #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 4, 0)) |
28 | #include <soc/tegra/tegra-dvfs.h> | 27 | #include <soc/tegra/tegra-dvfs.h> |
29 | #endif | 28 | #endif |
@@ -717,9 +716,6 @@ static ssize_t fmax_at_vmin_safe_read(struct device *dev, | |||
717 | unsigned long gpu_fmax_at_vmin_hz = 0; | 716 | unsigned long gpu_fmax_at_vmin_hz = 0; |
718 | struct clk *clk = g->clk.tegra_clk; | 717 | struct clk *clk = g->clk.tegra_clk; |
719 | 718 | ||
720 | #ifdef CONFIG_TEGRA_CLK_FRAMEWORK | ||
721 | clk = clk_get_parent(clk); | ||
722 | #endif | ||
723 | gpu_fmax_at_vmin_hz = tegra_dvfs_get_fmax_at_vmin_safe_t(clk); | 719 | gpu_fmax_at_vmin_hz = tegra_dvfs_get_fmax_at_vmin_safe_t(clk); |
724 | 720 | ||
725 | return snprintf(buf, PAGE_SIZE, "%d\n", (int)(gpu_fmax_at_vmin_hz)); | 721 | return snprintf(buf, PAGE_SIZE, "%d\n", (int)(gpu_fmax_at_vmin_hz)); |
diff --git a/drivers/gpu/nvgpu/gk20a/hal_gk20a.c b/drivers/gpu/nvgpu/gk20a/hal_gk20a.c index 729a277f..8a3beb39 100644 --- a/drivers/gpu/nvgpu/gk20a/hal_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/hal_gk20a.c | |||
@@ -167,7 +167,6 @@ int gk20a_init_hal(struct gk20a *g) | |||
167 | gk20a_init_mm(gops); | 167 | gk20a_init_mm(gops); |
168 | gk20a_falcon_init_hal(gops); | 168 | gk20a_falcon_init_hal(gops); |
169 | gk20a_init_pmu_ops(gops); | 169 | gk20a_init_pmu_ops(gops); |
170 | gk20a_init_clk_ops(gops); | ||
171 | gk20a_init_regops(gops); | 170 | gk20a_init_regops(gops); |
172 | gk20a_init_debug_ops(gops); | 171 | gk20a_init_debug_ops(gops); |
173 | gk20a_init_dbg_session_ops(gops); | 172 | gk20a_init_dbg_session_ops(gops); |