diff options
author | Seshendra Gadagottu <sgadagottu@nvidia.com> | 2016-03-14 15:00:05 -0400 |
---|---|---|
committer | Deepak Nibade <dnibade@nvidia.com> | 2016-12-27 04:52:11 -0500 |
commit | 57a75c3ba632a0300b932ce574ea3caab8275f4c (patch) | |
tree | fc281a3f7fa3e41b01741634ac997fa9350802ae /drivers/gpu/nvgpu/gp10b/gp10b_gating_reglist.c | |
parent | eada66b2a90d08e3323ec76dfd4ad78f3c9f0ee5 (diff) |
gpu: nvgpu: gp10b: update prod setiings
Add/update following prod settings:
blcg ce
slcg ce2
Change-Id: I10a62d980479ad23efd7033d29e269c4aac08834
Signed-off-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-on: http://git-master/r/1030986
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gp10b/gp10b_gating_reglist.c')
-rw-r--r-- | drivers/gpu/nvgpu/gp10b/gp10b_gating_reglist.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/gp10b_gating_reglist.c b/drivers/gpu/nvgpu/gp10b/gp10b_gating_reglist.c index 6bcd9f35..4719b13e 100644 --- a/drivers/gpu/nvgpu/gp10b/gp10b_gating_reglist.c +++ b/drivers/gpu/nvgpu/gp10b/gp10b_gating_reglist.c | |||
@@ -163,6 +163,11 @@ static const struct gating_desc gp10b_blcg_bus[] = { | |||
163 | {.addr = 0x00001c00, .prod = 0x00000042, .disable = 0x00000000}, | 163 | {.addr = 0x00001c00, .prod = 0x00000042, .disable = 0x00000000}, |
164 | }; | 164 | }; |
165 | 165 | ||
166 | /* blcg ce */ | ||
167 | static const struct gating_desc gp10b_blcg_ce[] = { | ||
168 | {.addr = 0x00104200, .prod = 0x00008242, .disable = 0x00000000}, | ||
169 | }; | ||
170 | |||
166 | /* blcg ctxsw prog */ | 171 | /* blcg ctxsw prog */ |
167 | static const struct gating_desc gp10b_blcg_ctxsw_prog[] = { | 172 | static const struct gating_desc gp10b_blcg_ctxsw_prog[] = { |
168 | }; | 173 | }; |
@@ -483,6 +488,21 @@ void gp10b_blcg_bus_load_gating_prod(struct gk20a *g, | |||
483 | } | 488 | } |
484 | } | 489 | } |
485 | 490 | ||
491 | void gp10b_blcg_ce_load_gating_prod(struct gk20a *g, | ||
492 | bool prod) | ||
493 | { | ||
494 | u32 i; | ||
495 | u32 size = sizeof(gp10b_blcg_ce) / sizeof(struct gating_desc); | ||
496 | for (i = 0; i < size; i++) { | ||
497 | if (prod) | ||
498 | gk20a_writel(g, gp10b_blcg_ce[i].addr, | ||
499 | gp10b_blcg_ce[i].prod); | ||
500 | else | ||
501 | gk20a_writel(g, gp10b_blcg_ce[i].addr, | ||
502 | gp10b_blcg_ce[i].disable); | ||
503 | } | ||
504 | } | ||
505 | |||
486 | void gp10b_blcg_ctxsw_firmware_load_gating_prod(struct gk20a *g, | 506 | void gp10b_blcg_ctxsw_firmware_load_gating_prod(struct gk20a *g, |
487 | bool prod) | 507 | bool prod) |
488 | { | 508 | { |