mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:36:20 +03:00
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:
committed by
mobile promotions
parent
1b6fe7346f
commit
0fbd9f9398
@@ -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
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user