summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gm20b/hw_therm_gm20b.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b/hw_therm_gm20b.h')
-rw-r--r--drivers/gpu/nvgpu/gm20b/hw_therm_gm20b.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/hw_therm_gm20b.h b/drivers/gpu/nvgpu/gm20b/hw_therm_gm20b.h
index 9943cf31..5a696409 100644
--- a/drivers/gpu/nvgpu/gm20b/hw_therm_gm20b.h
+++ b/drivers/gpu/nvgpu/gm20b/hw_therm_gm20b.h
@@ -54,18 +54,54 @@ 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}
61static inline u32 therm_evt_ext_therm_1_r(void) 81static inline u32 therm_evt_ext_therm_1_r(void)
62{ 82{
63 return 0x00020704; 83 return 0x00020704;
64} 84}
85static inline u32 therm_evt_ext_therm_1_slow_factor_f(u32 v)
86{
87 return (v & 0x3f) << 8;
88}
89static inline u32 therm_evt_ext_therm_1_slow_factor_init_v(void)
90{
91 return 0x00000000;
92}
65static inline u32 therm_evt_ext_therm_2_r(void) 93static inline u32 therm_evt_ext_therm_2_r(void)
66{ 94{
67 return 0x00020708; 95 return 0x00020708;
68} 96}
97static inline u32 therm_evt_ext_therm_2_slow_factor_f(u32 v)
98{
99 return (v & 0x3f) << 8;
100}
101static inline u32 therm_evt_ext_therm_2_slow_factor_init_v(void)
102{
103 return 0x00000000;
104}
69static inline u32 therm_weight_1_r(void) 105static inline u32 therm_weight_1_r(void)
70{ 106{
71 return 0x00020024; 107 return 0x00020024;