From 4492c62ffe9398bd4457f6f1c2773e40afe909fb Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Fri, 17 Mar 2017 11:09:44 -0700 Subject: 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 Reviewed-on: http://git-master/r/1323353 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/gk20a/hal_gk20a.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'drivers/gpu/nvgpu/gk20a/hal_gk20a.c') diff --git a/drivers/gpu/nvgpu/gk20a/hal_gk20a.c b/drivers/gpu/nvgpu/gk20a/hal_gk20a.c index 23725b8b..1e4fffdc 100644 --- a/drivers/gpu/nvgpu/gk20a/hal_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/hal_gk20a.c @@ -16,6 +16,7 @@ */ #include "hal_gk20a.h" +#include "bus_gk20a.h" #include "ltc_gk20a.h" #include "fb_gk20a.h" #include "gk20a.h" @@ -147,6 +148,7 @@ int gk20a_init_hal(struct gk20a *g) gops->privsecurity = 0; gops->securegpccs = 0; gops->pmupstate = false; + gk20a_init_bus(gops); gk20a_init_mc(gops); gk20a_init_ltc(gops); gk20a_init_gr_ops(gops); @@ -169,7 +171,6 @@ int gk20a_init_hal(struct gk20a *g) gops->name = "gk20a"; gops->chip_init_gpu_characteristics = gk20a_init_gpu_characteristics; gops->get_litter_value = gk20a_get_litter_value; - gops->read_ptimer = gk20a_read_ptimer; c->twod_class = FERMI_TWOD_A; c->threed_class = KEPLER_C; -- cgit v1.2.2