summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorDeepak Nibade <dnibade@nvidia.com>2016-12-01 01:54:51 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2016-12-02 08:39:04 -0500
commit3d99c46dab2327d57647e5000caaa342f80d2104 (patch)
treef180968f04f30d58af8c70e745ef79ddae497690 /drivers
parent030ef82bdd474ef4261a2f40995b8db57857899e (diff)
gpu: nvgpu: enable gm20b clk APIs for CCF
GM20B platform specific clk API should now support both Tegra Clock Framework and Common Clock Framework Hence enable those APIs for both TCF and CCF Bug 200256389 Bug 200233943 Change-Id: If0f0568c7779e4ea16cf5e3b3e2380cf9c4cd697 Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: http://git-master/r/1262892 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Shreshtha Sahu <ssahu@nvidia.com> Tested-by: Shreshtha Sahu <ssahu@nvidia.com> Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-by: Peter Boonstoppel <pboonstoppel@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/nvgpu/gk20a/platform_gk20a_tegra.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/platform_gk20a_tegra.c b/drivers/gpu/nvgpu/gk20a/platform_gk20a_tegra.c
index 01ff5f96..f61b14fa 100644
--- a/drivers/gpu/nvgpu/gk20a/platform_gk20a_tegra.c
+++ b/drivers/gpu/nvgpu/gk20a/platform_gk20a_tegra.c
@@ -26,10 +26,15 @@
26#include <linux/reset.h> 26#include <linux/reset.h>
27#include <linux/tegra_soctherm.h> 27#include <linux/tegra_soctherm.h>
28#include <linux/platform/tegra/clock.h> 28#include <linux/platform/tegra/clock.h>
29#if defined(CONFIG_TEGRA_CLK_FRAMEWORK)
29#include <linux/platform/tegra/dvfs.h> 30#include <linux/platform/tegra/dvfs.h>
31#endif
30#include <linux/platform/tegra/common.h> 32#include <linux/platform/tegra/common.h>
31#include <linux/platform/tegra/mc.h> 33#include <linux/platform/tegra/mc.h>
32#include <linux/clk/tegra.h> 34#include <linux/clk/tegra.h>
35#if defined(CONFIG_COMMON_CLK)
36#include <soc/tegra/tegra-dvfs.h>
37#endif
33#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 4, 0)) 38#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 4, 0))
34#include <soc/tegra/fuse.h> 39#include <soc/tegra/fuse.h>
35#endif 40#endif
@@ -873,7 +878,7 @@ static int gk20a_tegra_suspend(struct device *dev)
873 return 0; 878 return 0;
874} 879}
875 880
876#ifdef CONFIG_TEGRA_CLK_FRAMEWORK 881#if defined(CONFIG_TEGRA_CLK_FRAMEWORK) || defined(CONFIG_COMMON_CLK)
877static unsigned long gk20a_get_clk_rate(struct device *dev) 882static unsigned long gk20a_get_clk_rate(struct device *dev)
878{ 883{
879 struct gk20a_platform *platform = gk20a_get_platform(dev); 884 struct gk20a_platform *platform = gk20a_get_platform(dev);
@@ -1022,7 +1027,7 @@ struct gk20a_platform gm20b_tegra_platform = {
1022 .reset_deassert = gk20a_tegra_reset_deassert, 1027 .reset_deassert = gk20a_tegra_reset_deassert,
1023#endif 1028#endif
1024 1029
1025#ifdef CONFIG_TEGRA_CLK_FRAMEWORK 1030#if defined(CONFIG_TEGRA_CLK_FRAMEWORK) || defined(CONFIG_COMMON_CLK)
1026 .clk_get_rate = gk20a_get_clk_rate, 1031 .clk_get_rate = gk20a_get_clk_rate,
1027 .clk_round_rate = gk20a_round_clk_rate, 1032 .clk_round_rate = gk20a_round_clk_rate,
1028 .clk_set_rate = gk20a_set_clk_rate, 1033 .clk_set_rate = gk20a_set_clk_rate,