diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b/hw_therm_gm20b.h')
-rw-r--r-- | drivers/gpu/nvgpu/gm20b/hw_therm_gm20b.h | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/hw_therm_gm20b.h b/drivers/gpu/nvgpu/gm20b/hw_therm_gm20b.h index 09bd5830..d928d70e 100644 --- a/drivers/gpu/nvgpu/gm20b/hw_therm_gm20b.h +++ b/drivers/gpu/nvgpu/gm20b/hw_therm_gm20b.h | |||
@@ -66,66 +66,10 @@ static inline u32 therm_evt_ext_therm_2_r(void) | |||
66 | { | 66 | { |
67 | return 0x00020708; | 67 | return 0x00020708; |
68 | } | 68 | } |
69 | static inline u32 therm_evt_ba_w0_t1h_r(void) | ||
70 | { | ||
71 | return 0x00020750; | ||
72 | } | ||
73 | static inline u32 therm_weight_1_r(void) | 69 | static inline u32 therm_weight_1_r(void) |
74 | { | 70 | { |
75 | return 0x00020024; | 71 | return 0x00020024; |
76 | } | 72 | } |
77 | static inline u32 therm_peakpower_config1_r(u32 i) | ||
78 | { | ||
79 | return 0x00020154 + i*4; | ||
80 | } | ||
81 | static inline u32 therm_peakpower_config1_window_period_2m_v(void) | ||
82 | { | ||
83 | return 0x0000000f; | ||
84 | } | ||
85 | static inline u32 therm_peakpower_config1_window_period_2m_f(void) | ||
86 | { | ||
87 | return 0xf; | ||
88 | } | ||
89 | static inline u32 therm_peakpower_config1_window_en_enabled_f(void) | ||
90 | { | ||
91 | return 0x80000000; | ||
92 | } | ||
93 | static inline u32 therm_peakpower_config8_r(u32 i) | ||
94 | { | ||
95 | return 0x000202e8 + i*4; | ||
96 | } | ||
97 | static inline u32 therm_peakpower_config8_ba_sum_shift_s(void) | ||
98 | { | ||
99 | return 5; | ||
100 | } | ||
101 | static inline u32 therm_peakpower_config8_ba_sum_shift_f(u32 v) | ||
102 | { | ||
103 | return (v & 0x1f) << 8; | ||
104 | } | ||
105 | static inline u32 therm_peakpower_config8_ba_sum_shift_m(void) | ||
106 | { | ||
107 | return 0x1f << 8; | ||
108 | } | ||
109 | static inline u32 therm_peakpower_config8_ba_sum_shift_v(u32 r) | ||
110 | { | ||
111 | return (r >> 8) & 0x1f; | ||
112 | } | ||
113 | static inline u32 therm_peakpower_config2_r(u32 i) | ||
114 | { | ||
115 | return 0x00020170 + i*4; | ||
116 | } | ||
117 | static inline u32 therm_peakpower_config4_r(u32 i) | ||
118 | { | ||
119 | return 0x000201c0 + i*4; | ||
120 | } | ||
121 | static inline u32 therm_peakpower_config6_r(u32 i) | ||
122 | { | ||
123 | return 0x00020270 + i*4; | ||
124 | } | ||
125 | static inline u32 therm_peakpower_config9_r(u32 i) | ||
126 | { | ||
127 | return 0x000202f4 + i*4; | ||
128 | } | ||
129 | static inline u32 therm_config1_r(void) | 73 | static inline u32 therm_config1_r(void) |
130 | { | 74 | { |
131 | return 0x00020050; | 75 | return 0x00020050; |