diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gp10b/hw_therm_gp10b.h')
-rw-r--r-- | drivers/gpu/nvgpu/gp10b/hw_therm_gp10b.h | 72 |
1 files changed, 20 insertions, 52 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/hw_therm_gp10b.h b/drivers/gpu/nvgpu/gp10b/hw_therm_gp10b.h index 16bbb3ca..25eecb70 100644 --- a/drivers/gpu/nvgpu/gp10b/hw_therm_gp10b.h +++ b/drivers/gpu/nvgpu/gp10b/hw_therm_gp10b.h | |||
@@ -70,58 +70,6 @@ static inline u32 therm_weight_1_r(void) | |||
70 | { | 70 | { |
71 | return 0x00020024; | 71 | return 0x00020024; |
72 | } | 72 | } |
73 | static inline u32 therm_peakpower_config1_r(u32 i) | ||
74 | { | ||
75 | return 0x00020154 + i*4; | ||
76 | } | ||
77 | static inline u32 therm_peakpower_config1_window_period_2m_v(void) | ||
78 | { | ||
79 | return 0x00000015; | ||
80 | } | ||
81 | static inline u32 therm_peakpower_config1_window_period_2m_f(void) | ||
82 | { | ||
83 | return 0x15; | ||
84 | } | ||
85 | static inline u32 therm_peakpower_config1_window_en_enabled_f(void) | ||
86 | { | ||
87 | return 0x80000000; | ||
88 | } | ||
89 | static inline u32 therm_peakpower_config1_r(u32 i) | ||
90 | { | ||
91 | return 0x000202e8 + i*4; | ||
92 | } | ||
93 | static inline u32 therm_peakpower_config1_ba_sum_shift_s(void) | ||
94 | { | ||
95 | return 5; | ||
96 | } | ||
97 | static inline u32 therm_peakpower_config1_ba_sum_shift_f(u32 v) | ||
98 | { | ||
99 | return (v & 0x1f) << 8; | ||
100 | } | ||
101 | static inline u32 therm_peakpower_config1_ba_sum_shift_m(void) | ||
102 | { | ||
103 | return 0x1f << 8; | ||
104 | } | ||
105 | static inline u32 therm_peakpower_config1_ba_sum_shift_v(u32 r) | ||
106 | { | ||
107 | return (r >> 8) & 0x1f; | ||
108 | } | ||
109 | static inline u32 therm_peakpower_config2_r(u32 i) | ||
110 | { | ||
111 | return 0x00020170 + i*4; | ||
112 | } | ||
113 | static inline u32 therm_peakpower_config4_r(u32 i) | ||
114 | { | ||
115 | return 0x000201c0 + i*4; | ||
116 | } | ||
117 | static inline u32 therm_peakpower_config8_r(u32 i) | ||
118 | { | ||
119 | return 0x000202e8 + i*4; | ||
120 | } | ||
121 | static inline u32 therm_peakpower_config9_r(u32 i) | ||
122 | { | ||
123 | return 0x000202f4 + i*4; | ||
124 | } | ||
125 | static inline u32 therm_config1_r(void) | 73 | static inline u32 therm_config1_r(void) |
126 | { | 74 | { |
127 | return 0x00020050; | 75 | return 0x00020050; |
@@ -214,4 +162,24 @@ static inline u32 therm_hubmmu_idle_filter_value_m(void) | |||
214 | { | 162 | { |
215 | return 0xffffffff << 0; | 163 | return 0xffffffff << 0; |
216 | } | 164 | } |
165 | static inline u32 therm_clk_slowdown_r(u32 i) | ||
166 | { | ||
167 | return 0x00020160 + i*4; | ||
168 | } | ||
169 | static inline u32 therm_clk_slowdown_idle_factor_f(u32 v) | ||
170 | { | ||
171 | return (v & 0x3f) << 16; | ||
172 | } | ||
173 | static inline u32 therm_clk_slowdown_idle_factor_m(void) | ||
174 | { | ||
175 | return 0x3f << 16; | ||
176 | } | ||
177 | static inline u32 therm_clk_slowdown_idle_factor_v(u32 r) | ||
178 | { | ||
179 | return (r >> 16) & 0x3f; | ||
180 | } | ||
181 | static inline u32 therm_clk_slowdown_idle_factor_disabled_f(void) | ||
182 | { | ||
183 | return 0x0; | ||
184 | } | ||
217 | #endif | 185 | #endif |