diff options
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/driver_common.c')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/driver_common.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/driver_common.c b/drivers/gpu/nvgpu/common/linux/driver_common.c index f2373e00..b90574e0 100644 --- a/drivers/gpu/nvgpu/common/linux/driver_common.c +++ b/drivers/gpu/nvgpu/common/linux/driver_common.c | |||
@@ -170,6 +170,13 @@ static void nvgpu_init_vbios_vars(struct gk20a *g) | |||
170 | g->vbios_min_version = platform->vbios_min_version; | 170 | g->vbios_min_version = platform->vbios_min_version; |
171 | } | 171 | } |
172 | 172 | ||
173 | static void nvgpu_init_ltc_vars(struct gk20a *g) | ||
174 | { | ||
175 | struct gk20a_platform *platform = dev_get_drvdata(dev_from_gk20a(g)); | ||
176 | |||
177 | g->ltc_streamid = platform->ltc_streamid; | ||
178 | } | ||
179 | |||
173 | static void nvgpu_init_mm_vars(struct gk20a *g) | 180 | static void nvgpu_init_mm_vars(struct gk20a *g) |
174 | { | 181 | { |
175 | struct gk20a_platform *platform = dev_get_drvdata(dev_from_gk20a(g)); | 182 | struct gk20a_platform *platform = dev_get_drvdata(dev_from_gk20a(g)); |
@@ -202,6 +209,7 @@ int nvgpu_probe(struct gk20a *g, | |||
202 | nvgpu_init_timeslice(g); | 209 | nvgpu_init_timeslice(g); |
203 | nvgpu_init_pm_vars(g); | 210 | nvgpu_init_pm_vars(g); |
204 | nvgpu_init_vbios_vars(g); | 211 | nvgpu_init_vbios_vars(g); |
212 | nvgpu_init_ltc_vars(g); | ||
205 | 213 | ||
206 | /* Initialize the platform interface. */ | 214 | /* Initialize the platform interface. */ |
207 | err = platform->probe(dev); | 215 | err = platform->probe(dev); |