diff options
Diffstat (limited to 'drivers/gpu/nvgpu/pstate')
-rw-r--r-- | drivers/gpu/nvgpu/pstate/pstate.c | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/pstate/pstate.c b/drivers/gpu/nvgpu/pstate/pstate.c index f4cc50ab..a4787f35 100644 --- a/drivers/gpu/nvgpu/pstate/pstate.c +++ b/drivers/gpu/nvgpu/pstate/pstate.c | |||
@@ -29,6 +29,18 @@ int gk20a_init_pstate_support(struct gk20a *g) | |||
29 | 29 | ||
30 | gk20a_dbg_fn(""); | 30 | gk20a_dbg_fn(""); |
31 | 31 | ||
32 | err = volt_rail_sw_setup(g); | ||
33 | if (err) | ||
34 | return err; | ||
35 | |||
36 | err = volt_dev_sw_setup(g); | ||
37 | if (err) | ||
38 | return err; | ||
39 | |||
40 | err = volt_policy_sw_setup(g); | ||
41 | if (err) | ||
42 | return err; | ||
43 | |||
32 | err = clk_vin_sw_setup(g); | 44 | err = clk_vin_sw_setup(g); |
33 | if (err) | 45 | if (err) |
34 | return err; | 46 | return err; |
@@ -72,6 +84,26 @@ int gk20a_init_pstate_pmu_support(struct gk20a *g) | |||
72 | 84 | ||
73 | gk20a_dbg_fn(""); | 85 | gk20a_dbg_fn(""); |
74 | 86 | ||
87 | err = volt_rail_pmu_setup(g); | ||
88 | if (err) | ||
89 | return err; | ||
90 | |||
91 | err = volt_dev_pmu_setup(g); | ||
92 | if (err) | ||
93 | return err; | ||
94 | |||
95 | err = volt_policy_pmu_setup(g); | ||
96 | if (err) | ||
97 | return err; | ||
98 | |||
99 | err = volt_pmu_send_load_cmd_to_pmu(g); | ||
100 | if (err) { | ||
101 | gk20a_err(dev_from_gk20a(g), | ||
102 | "Failed to send VOLT LOAD CMD to PMU: status = 0x%08x.", | ||
103 | err); | ||
104 | return err; | ||
105 | } | ||
106 | |||
75 | err = vfe_var_pmu_setup(g); | 107 | err = vfe_var_pmu_setup(g); |
76 | if (err) | 108 | if (err) |
77 | return err; | 109 | return err; |