summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gm20b/hal_gm20b.c
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2017-03-17 14:09:44 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-03-23 11:44:07 -0400
commit4492c62ffe9398bd4457f6f1c2773e40afe909fb (patch)
tree5d792f81d97844278f4eca665a8b4778fa93dc35 /drivers/gpu/nvgpu/gm20b/hal_gm20b.c
parent33f637585ecd617a9f4423f56e2aa6df0691ac64 (diff)
gpu: nvgpu: Add bus HAL
Add bus HAL and move all bus related hardware sequencing to that file: BAR1 binding, timer access, and interrupt handling. Change-Id: Ibc5f5797dc338de10749b446a7bdbcae600fecb4 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/1323353 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b/hal_gm20b.c')
-rw-r--r--drivers/gpu/nvgpu/gm20b/hal_gm20b.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/hal_gm20b.c b/drivers/gpu/nvgpu/gm20b/hal_gm20b.c
index ad041f67..684f5731 100644
--- a/drivers/gpu/nvgpu/gm20b/hal_gm20b.c
+++ b/drivers/gpu/nvgpu/gm20b/hal_gm20b.c
@@ -18,6 +18,7 @@
18#include "gk20a/gk20a.h" 18#include "gk20a/gk20a.h"
19#include "gk20a/dbg_gpu_gk20a.h" 19#include "gk20a/dbg_gpu_gk20a.h"
20#include "gk20a/css_gr_gk20a.h" 20#include "gk20a/css_gr_gk20a.h"
21#include "gk20a/bus_gk20a.h"
21 22
22#include "ltc_gm20b.h" 23#include "ltc_gm20b.h"
23#include "ce2_gm20b.h" 24#include "ce2_gm20b.h"
@@ -215,6 +216,7 @@ int gm20b_init_hal(struct gk20a *g)
215 } 216 }
216 } 217 }
217#endif 218#endif
219 gk20a_init_bus(gops);
218 gm20b_init_mc(gops); 220 gm20b_init_mc(gops);
219 gm20b_init_ltc(gops); 221 gm20b_init_ltc(gops);
220 gm20b_init_gr(gops); 222 gm20b_init_gr(gops);
@@ -238,7 +240,6 @@ int gm20b_init_hal(struct gk20a *g)
238 gops->name = "gm20b"; 240 gops->name = "gm20b";
239 gops->chip_init_gpu_characteristics = gk20a_init_gpu_characteristics; 241 gops->chip_init_gpu_characteristics = gk20a_init_gpu_characteristics;
240 gops->get_litter_value = gm20b_get_litter_value; 242 gops->get_litter_value = gm20b_get_litter_value;
241 gops->read_ptimer = gk20a_read_ptimer;
242 243
243 c->twod_class = FERMI_TWOD_A; 244 c->twod_class = FERMI_TWOD_A;
244 c->threed_class = MAXWELL_B; 245 c->threed_class = MAXWELL_B;