diff options
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/platform_gp10b_tegra.c')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/platform_gp10b_tegra.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/platform_gp10b_tegra.c b/drivers/gpu/nvgpu/common/linux/platform_gp10b_tegra.c index 782a3d88..96acf24b 100644 --- a/drivers/gpu/nvgpu/common/linux/platform_gp10b_tegra.c +++ b/drivers/gpu/nvgpu/common/linux/platform_gp10b_tegra.c | |||
@@ -57,11 +57,13 @@ gp10b_freq_table[GP10B_MAX_SUPPORTED_FREQS / GP10B_FREQ_SELECT_STEP]; | |||
57 | 57 | ||
58 | #define EMC_BW_RATIO (TEGRA_GP10B_BW_PER_FREQ / TEGRA_DDR4_BW_PER_FREQ) | 58 | #define EMC_BW_RATIO (TEGRA_GP10B_BW_PER_FREQ / TEGRA_DDR4_BW_PER_FREQ) |
59 | 59 | ||
60 | #define GPCCLK_INIT_RATE 1000000000 | ||
61 | |||
60 | static struct { | 62 | static struct { |
61 | char *name; | 63 | char *name; |
62 | unsigned long default_rate; | 64 | unsigned long default_rate; |
63 | } tegra_gp10b_clocks[] = { | 65 | } tegra_gp10b_clocks[] = { |
64 | {"gpu", 1000000000}, | 66 | {"gpu", GPCCLK_INIT_RATE}, |
65 | {"gpu_sys", 204000000} }; | 67 | {"gpu_sys", 204000000} }; |
66 | 68 | ||
67 | static void gr_gp10b_remove_sysfs(struct device *dev); | 69 | static void gr_gp10b_remove_sysfs(struct device *dev); |
@@ -90,6 +92,8 @@ int gp10b_tegra_get_clocks(struct device *dev) | |||
90 | } else { | 92 | } else { |
91 | clk_set_rate(c, rate); | 93 | clk_set_rate(c, rate); |
92 | platform->clk[i] = c; | 94 | platform->clk[i] = c; |
95 | if (i == 0) | ||
96 | platform->cached_rate = rate; | ||
93 | } | 97 | } |
94 | } | 98 | } |
95 | platform->num_clks = i; | 99 | platform->num_clks = i; |