diff options
author | Richard Zhao <rizhao@nvidia.com> | 2015-07-23 18:10:42 -0400 |
---|---|---|
committer | Richard Zhao <rizhao@nvidia.com> | 2015-08-19 08:12:00 -0400 |
commit | a88e58cc9d2c4b9f852716240b3cabc9449d8679 (patch) | |
tree | 5965b2645913695ed36e61aa4c42fdb60045cf42 /drivers/gpu/nvgpu/vgpu/vgpu.h | |
parent | db8bce518bcf2a1b46e5897f55469f348a16c9a2 (diff) |
gpu: nvgpu: vgpu: add t210 gm20b support
- add hal initializaiton
- create folders vgpu/gk20a and vgpu/gm20b for specific code
Bug 1653185
Change-Id: If94d45e22a1d73d2e4916673736cc29751be4e40
Signed-off-by: Richard Zhao <rizhao@nvidia.com>
Reviewed-on: http://git-master/r/774148
GVS: Gerrit_Virtual_Submit
Reviewed-by: Aingara Paramakuru <aparamakuru@nvidia.com>
Reviewed-by: Ken Adams <kadams@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/vgpu/vgpu.h')
-rw-r--r-- | drivers/gpu/nvgpu/vgpu/vgpu.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/vgpu/vgpu.h b/drivers/gpu/nvgpu/vgpu/vgpu.h index d577f32e..f1590593 100644 --- a/drivers/gpu/nvgpu/vgpu/vgpu.h +++ b/drivers/gpu/nvgpu/vgpu/vgpu.h | |||
@@ -46,6 +46,10 @@ int vgpu_init_fifo_support(struct gk20a *g); | |||
46 | int vgpu_get_attribute(u64 handle, u32 attrib, u32 *value); | 46 | int vgpu_get_attribute(u64 handle, u32 attrib, u32 *value); |
47 | int vgpu_comm_sendrecv(struct tegra_vgpu_cmd_msg *msg, size_t size_in, | 47 | int vgpu_comm_sendrecv(struct tegra_vgpu_cmd_msg *msg, size_t size_in, |
48 | size_t size_out); | 48 | size_t size_out); |
49 | |||
50 | void vgpu_init_hal_common(struct gk20a *g); | ||
51 | int vgpu_gk20a_init_hal(struct gk20a *g); | ||
52 | int vgpu_gm20b_init_hal(struct gk20a *g); | ||
49 | #else | 53 | #else |
50 | static inline int vgpu_pm_prepare_poweroff(struct device *dev) | 54 | static inline int vgpu_pm_prepare_poweroff(struct device *dev) |
51 | { | 55 | { |