diff options
author | Hoang Pham <hopham@nvidia.com> | 2014-07-14 13:42:35 -0400 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2015-03-18 15:10:29 -0400 |
commit | ba387d3d7e81072641e0134c1c1d4fcf890f1b70 (patch) | |
tree | 01fade5408469d2fce3572ae8567526722bf1853 /drivers/gpu/nvgpu/gk20a/gk20a.h | |
parent | 3058fb2b960cf1da53fd25c5c8d286d60560615e (diff) |
gpu: Split clk_ops for GK20A and GM20B
Split clk_ops for GK20A and GM20B into different files
Bug 1450787
Change-Id: I34d16c54ac40c70854e80588475434c9e50b51a5
Signed-off-by: Hoang Pham <hopham@nvidia.com>
Reviewed-on: http://git-master/r/437771
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.h | 5 |
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 | ||
235 | struct gk20a { | 238 | struct 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 | ||
501 | void gk20a_init_clk_ops(struct gpu_ops *gops); | ||
502 | |||
498 | /* register accessors */ | 503 | /* register accessors */ |
499 | int gk20a_lockout_registers(struct gk20a *g); | 504 | int gk20a_lockout_registers(struct gk20a *g); |
500 | int gk20a_restore_registers(struct gk20a *g); | 505 | int gk20a_restore_registers(struct gk20a *g); |