summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/hw_therm_gk20a.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/hw_therm_gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/hw_therm_gk20a.h48
1 files changed, 48 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/hw_therm_gk20a.h b/drivers/gpu/nvgpu/gk20a/hw_therm_gk20a.h
index 67f1bbc2..d4c04116 100644
--- a/drivers/gpu/nvgpu/gk20a/hw_therm_gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/hw_therm_gk20a.h
@@ -54,18 +54,66 @@ static inline u32 therm_use_a_r(void)
54{ 54{
55 return 0x00020798; 55 return 0x00020798;
56} 56}
57static inline u32 therm_use_a_ext_therm_0_enable_f(void)
58{
59 return 0x1;
60}
61static inline u32 therm_use_a_ext_therm_1_enable_f(void)
62{
63 return 0x2;
64}
65static inline u32 therm_use_a_ext_therm_2_enable_f(void)
66{
67 return 0x4;
68}
57static inline u32 therm_evt_ext_therm_0_r(void) 69static inline u32 therm_evt_ext_therm_0_r(void)
58{ 70{
59 return 0x00020700; 71 return 0x00020700;
60} 72}
73static inline u32 therm_evt_ext_therm_0_slow_factor_f(u32 v)
74{
75 return (v & 0x3f) << 8;
76}
77static inline u32 therm_evt_ext_therm_0_slow_factor_init_v(void)
78{
79 return 0x00000000;
80}
81static inline u32 therm_evt_ext_therm_0_priority_f(u32 v)
82{
83 return (v & 0x1f) << 24;
84}
61static inline u32 therm_evt_ext_therm_1_r(void) 85static inline u32 therm_evt_ext_therm_1_r(void)
62{ 86{
63 return 0x00020704; 87 return 0x00020704;
64} 88}
89static inline u32 therm_evt_ext_therm_1_slow_factor_f(u32 v)
90{
91 return (v & 0x3f) << 8;
92}
93static inline u32 therm_evt_ext_therm_1_slow_factor_init_v(void)
94{
95 return 0x00000000;
96}
97static inline u32 therm_evt_ext_therm_1_priority_f(u32 v)
98{
99 return (v & 0x1f) << 24;
100}
65static inline u32 therm_evt_ext_therm_2_r(void) 101static inline u32 therm_evt_ext_therm_2_r(void)
66{ 102{
67 return 0x00020708; 103 return 0x00020708;
68} 104}
105static inline u32 therm_evt_ext_therm_2_slow_factor_f(u32 v)
106{
107 return (v & 0x3f) << 8;
108}
109static inline u32 therm_evt_ext_therm_2_slow_factor_init_v(void)
110{
111 return 0x00000000;
112}
113static inline u32 therm_evt_ext_therm_2_priority_f(u32 v)
114{
115 return (v & 0x1f) << 24;
116}
69static inline u32 therm_weight_1_r(void) 117static inline u32 therm_weight_1_r(void)
70{ 118{
71 return 0x00020024; 119 return 0x00020024;