diff options
author | Vaikundanathan S <vaikuns@nvidia.com> | 2018-04-25 03:05:55 -0400 |
---|---|---|
committer | Tejal Kudav <tkudav@nvidia.com> | 2018-06-14 09:44:06 -0400 |
commit | 440cda8a6797a0c8c423a5e3357a458ed4dfad07 (patch) | |
tree | 61eaab047f81e09b6a9ad982e49c0c65e25a3396 /drivers/gpu/nvgpu/clk | |
parent | 1b71581b9e3534661b4552faadf38bbb98851c45 (diff) |
gpu:nvgpu: Add option for split rail support
Add gops to check whether split rail is suported in the chip
Bug 200399373
Change-Id: I5e955127e06d1fbc9b3eca0a895afa0a06f39d91
Signed-off-by: Vaikundanathan S <vaikuns@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1702130
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/clk')
-rw-r--r-- | drivers/gpu/nvgpu/clk/clk_domain.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/clk/clk_domain.c b/drivers/gpu/nvgpu/clk/clk_domain.c index f306cf56..822bba2c 100644 --- a/drivers/gpu/nvgpu/clk/clk_domain.c +++ b/drivers/gpu/nvgpu/clk/clk_domain.c | |||
@@ -131,7 +131,10 @@ static u32 _clk_domains_pmudatainit_3x(struct gk20a *g, | |||
131 | pset->b_debug_mode = false; | 131 | pset->b_debug_mode = false; |
132 | pset->b_enforce_vf_monotonicity = pdomains->b_enforce_vf_monotonicity; | 132 | pset->b_enforce_vf_monotonicity = pdomains->b_enforce_vf_monotonicity; |
133 | pset->b_enforce_vf_smoothening = pdomains->b_enforce_vf_smoothening; | 133 | pset->b_enforce_vf_smoothening = pdomains->b_enforce_vf_smoothening; |
134 | pset->volt_rails_max = 2; | 134 | if (g->ops.clk.split_rail_support) |
135 | pset->volt_rails_max = 2; | ||
136 | else | ||
137 | pset->volt_rails_max = 1; | ||
135 | status = boardobjgrpmask_export( | 138 | status = boardobjgrpmask_export( |
136 | &pdomains->master_domains_mask.super, | 139 | &pdomains->master_domains_mask.super, |
137 | pdomains->master_domains_mask.super.bitcount, | 140 | pdomains->master_domains_mask.super.bitcount, |