gpu: nvgpu: implement chip specific fb cbc_init

Add function pointer in fb to add chip specific
cbc init.

GPUT19X-70

Change-Id: I12f73945d99498de965a671fd8e258b5c95bbabe
Signed-off-by: seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-on: http://git-master/r/1484524
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
seshendra Gadagottu
2017-05-17 20:05:28 -07:00
committed by mobile promotions
parent 048c6b062a
commit 8efe596b01
2 changed files with 4 additions and 0 deletions

View File

@@ -382,6 +382,7 @@ struct gpu_ops {
} gr;
struct {
void (*init_hw)(struct gk20a *g);
void (*init_cbc)(struct gk20a *g, struct gr_gk20a *gr);
void (*init_fs_state)(struct gk20a *g);
void (*reset)(struct gk20a *g);
void (*init_uncompressed_kind_map)(struct gk20a *g);

View File

@@ -4828,6 +4828,9 @@ static int gk20a_init_gr_setup_hw(struct gk20a *g)
if (g->ops.ltc.init_cbc)
g->ops.ltc.init_cbc(g, gr);
if (g->ops.fb.init_cbc)
g->ops.fb.init_cbc(g, gr);
/* load ctx init */
for (i = 0; i < sw_ctx_load->count; i++)
gk20a_writel(g, sw_ctx_load->l[i].addr,