gpu: nvgpu: register clkdev for DVFS purposes

Change-Id: I354d4bbddb2aba2a1a668cc0401437f1e2403b79
Signed-off-by: Peter De Schrijver <pdeschrijver@nvidia.com>
Reviewed-on: http://git-master/r/1259495
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
This commit is contained in:
Peter De Schrijver
2016-11-24 12:34:16 +02:00
committed by mobile promotions
parent 1b6fe7346f
commit 0fbd9f9398
2 changed files with 4 additions and 0 deletions

View File

@@ -17,6 +17,7 @@
#define CLK_GK20A_H
#include <linux/mutex.h>
#include <linux/clkdev.h>
#include <linux/clk-provider.h>
#define GPUFREQ_TABLE_END ~(u32)1

View File

@@ -25,6 +25,7 @@
#include <linux/clk/tegra.h>
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 4, 0))
#include <soc/tegra/fuse.h>
#include <soc/tegra/tegra-dvfs.h>
#else
#include <linux/tegra-fuse.h>
#endif
@@ -1310,6 +1311,8 @@ int gm20b_register_gpcclk(struct gk20a *g) {
}
clk->tegra_clk = c;
clk_register_clkdev(c, "gpcclk", "gpcclk");
return 0;
}
#endif /* CONFIG_COMMON_CLK */