summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gk20a.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gk20a.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h
index 774e4e85..0b91420b 100644
--- a/drivers/gpu/nvgpu/gk20a/gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/gk20a.h
@@ -230,6 +230,9 @@ struct gpu_ops {
230 int (*prepare_ucode)(struct gk20a *g); 230 int (*prepare_ucode)(struct gk20a *g);
231 int (*pmu_setup_hw_and_bootstrap)(struct gk20a *g); 231 int (*pmu_setup_hw_and_bootstrap)(struct gk20a *g);
232 } pmu; 232 } pmu;
233 struct {
234 int (*init_clk_support)(struct gk20a *g);
235 } clk;
233}; 236};
234 237
235struct gk20a { 238struct gk20a {
@@ -495,6 +498,8 @@ static inline void gk20a_mem_wr32(void *ptr, int w, u32 data)
495 ((u32 *)ptr)[w] = data; 498 ((u32 *)ptr)[w] = data;
496} 499}
497 500
501void gk20a_init_clk_ops(struct gpu_ops *gops);
502
498/* register accessors */ 503/* register accessors */
499int gk20a_lockout_registers(struct gk20a *g); 504int gk20a_lockout_registers(struct gk20a *g);
500int gk20a_restore_registers(struct gk20a *g); 505int gk20a_restore_registers(struct gk20a *g);