Skip to content

Commit 6565321

Browse files
committed
drm/amdgpu: Add THM 15.0.0 headers
Add headers for THM 15.0.0. v2: squash in updates (Alex) Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent 29f560a commit 6565321

2 files changed

Lines changed: 724 additions & 0 deletions

File tree

Lines changed: 157 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,157 @@
1+
/*
2+
* Copyright (C) 2025 Advanced Micro Devices, Inc.
3+
*
4+
* Permission is hereby granted, free of charge, to any person obtaining a
5+
* copy of this software and associated documentation files (the "Software"),
6+
* to deal in the Software without restriction, including without limitation
7+
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
8+
* and/or sell copies of the Software, and to permit persons to whom the
9+
* Software is furnished to do so, subject to the following conditions:
10+
*
11+
* The above copyright notice and this permission notice shall be included
12+
* in all copies or substantial portions of the Software.
13+
*
14+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15+
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
17+
* THE COPYRIGHT HOLDER(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
18+
* AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
19+
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20+
*/
21+
#ifndef _thm_15_0_0_OFFSET_HEADER
22+
#define _thm_15_0_0_OFFSET_HEADER
23+
24+
25+
26+
// addressBlock: thm_thm_SmuThmDec
27+
// base address: 0x59800
28+
#define regTHM_TCON_CUR_TMP 0x0000
29+
#define regTHM_TCON_CUR_TMP_BASE_IDX 0
30+
#define regTHM_TCON_HTC 0x0001
31+
#define regTHM_TCON_HTC_BASE_IDX 0
32+
#define regTHM_TCON_THERM_TRIP 0x0002
33+
#define regTHM_TCON_THERM_TRIP_BASE_IDX 0
34+
#define regTHM_CTF_DELAY 0x0004
35+
#define regTHM_CTF_DELAY_BASE_IDX 0
36+
#define regTHM_GPIO_PROCHOT_CTRL 0x0005
37+
#define regTHM_GPIO_PROCHOT_CTRL_BASE_IDX 0
38+
#define regTHM_SW_TEMP 0x0006
39+
#define regTHM_SW_TEMP_BASE_IDX 0
40+
#define regCG_MULT_THERMAL_CTRL 0x0007
41+
#define regCG_MULT_THERMAL_CTRL_BASE_IDX 0
42+
#define regCG_MULT_THERMAL_STATUS 0x0008
43+
#define regCG_MULT_THERMAL_STATUS_BASE_IDX 0
44+
#define regCG_THERMAL_RANGE 0x0009
45+
#define regCG_THERMAL_RANGE_BASE_IDX 0
46+
#define regTHM_TCON_LOCAL2 0x000a
47+
#define regTHM_TCON_LOCAL2_BASE_IDX 0
48+
#define regTHM_TCON_LOCAL3 0x000b
49+
#define regTHM_TCON_LOCAL3_BASE_IDX 0
50+
#define regTHM_TCON_LOCAL4 0x000c
51+
#define regTHM_TCON_LOCAL4_BASE_IDX 0
52+
#define regTHM_TCON_LOCAL5 0x000d
53+
#define regTHM_TCON_LOCAL5_BASE_IDX 0
54+
#define regTHM_TCON_LOCAL6 0x000e
55+
#define regTHM_TCON_LOCAL6_BASE_IDX 0
56+
#define regTHM_TCON_LOCAL7 0x000f
57+
#define regTHM_TCON_LOCAL7_BASE_IDX 0
58+
#define regTHM_TCON_LOCAL8 0x0010
59+
#define regTHM_TCON_LOCAL8_BASE_IDX 0
60+
#define regTHM_TCON_LOCAL9 0x0011
61+
#define regTHM_TCON_LOCAL9_BASE_IDX 0
62+
#define regTHM_TCON_LOCAL10 0x0012
63+
#define regTHM_TCON_LOCAL10_BASE_IDX 0
64+
#define regTHM_TCON_LOCAL11 0x0013
65+
#define regTHM_TCON_LOCAL11_BASE_IDX 0
66+
#define regTHM_TCON_LOCAL12 0x0014
67+
#define regTHM_TCON_LOCAL12_BASE_IDX 0
68+
#define regTHM_TCON_LOCAL13 0x0015
69+
#define regTHM_TCON_LOCAL13_BASE_IDX 0
70+
#define regTHM_TCON_LOCAL14 0x0016
71+
#define regTHM_TCON_LOCAL14_BASE_IDX 0
72+
#define regTHM_TCON_LOCAL15 0x0017
73+
#define regTHM_TCON_LOCAL15_BASE_IDX 0
74+
#define regTHM_PWRMGT 0x001b
75+
#define regTHM_PWRMGT_BASE_IDX 0
76+
#define regTHM_DIE1_TEMP 0x001c
77+
#define regTHM_DIE1_TEMP_BASE_IDX 0
78+
#define regTHM_DIE2_TEMP 0x001d
79+
#define regTHM_DIE2_TEMP_BASE_IDX 0
80+
#define regTHM_DIE3_TEMP 0x001e
81+
#define regTHM_DIE3_TEMP_BASE_IDX 0
82+
#define regSMUSBI_SBIREGADDR 0x0124
83+
#define regSMUSBI_SBIREGADDR_BASE_IDX 0
84+
#define regSMUSBI_SBIREGDATA 0x0125
85+
#define regSMUSBI_SBIREGDATA_BASE_IDX 0
86+
#define regSMUSBI_ERRATA_STAT_REG 0x0129
87+
#define regSMUSBI_ERRATA_STAT_REG_BASE_IDX 0
88+
#define regSMUSBI_SBICTRL 0x012a
89+
#define regSMUSBI_SBICTRL_BASE_IDX 0
90+
#define regSMUSBI_CKNBIRESET 0x012b
91+
#define regSMUSBI_CKNBIRESET_BASE_IDX 0
92+
#define regSMUSBI_TIMING 0x012c
93+
#define regSMUSBI_TIMING_BASE_IDX 0
94+
#define regSMUSBI_HS_TIMING 0x012d
95+
#define regSMUSBI_HS_TIMING_BASE_IDX 0
96+
#define regSBTSI_REMOTE_TEMP 0x012e
97+
#define regSBTSI_REMOTE_TEMP_BASE_IDX 0
98+
#define regSBRMI_CONTROL 0x012f
99+
#define regSBRMI_CONTROL_BASE_IDX 0
100+
#define regSBRMI_COMMAND 0x0130
101+
#define regSBRMI_COMMAND_BASE_IDX 0
102+
#define regSBRMI_WRITE_DATA0 0x0132
103+
#define regSBRMI_WRITE_DATA0_BASE_IDX 0
104+
#define regSBRMI_WRITE_DATA1 0x0133
105+
#define regSBRMI_WRITE_DATA1_BASE_IDX 0
106+
#define regSBRMI_WRITE_DATA2 0x0134
107+
#define regSBRMI_WRITE_DATA2_BASE_IDX 0
108+
#define regSBRMI_READ_DATA0 0x0136
109+
#define regSBRMI_READ_DATA0_BASE_IDX 0
110+
#define regSBRMI_READ_DATA1 0x0137
111+
#define regSBRMI_READ_DATA1_BASE_IDX 0
112+
#define regSBRMI_CORE_EN_NUMBER 0x0138
113+
#define regSBRMI_CORE_EN_NUMBER_BASE_IDX 0
114+
#define regSBRMI_CORE_EN_STATUS0 0x0139
115+
#define regSBRMI_CORE_EN_STATUS0_BASE_IDX 0
116+
#define regSBRMI_CORE_EN_STATUS1 0x013a
117+
#define regSBRMI_CORE_EN_STATUS1_BASE_IDX 0
118+
#define regSBRMI_APIC_STATUS0 0x013b
119+
#define regSBRMI_APIC_STATUS0_BASE_IDX 0
120+
#define regSBRMI_APIC_STATUS1 0x013c
121+
#define regSBRMI_APIC_STATUS1_BASE_IDX 0
122+
#define regSBRMI_MCE_STATUS0 0x013d
123+
#define regSBRMI_MCE_STATUS0_BASE_IDX 0
124+
#define regSBRMI_MCE_STATUS1 0x013e
125+
#define regSBRMI_MCE_STATUS1_BASE_IDX 0
126+
#define regSMBUS_CNTL0 0x013f
127+
#define regSMBUS_CNTL0_BASE_IDX 0
128+
#define regSMBUS_CNTL1 0x0140
129+
#define regSMBUS_CNTL1_BASE_IDX 0
130+
#define regSMBUS_BLKWR_CMD_CTRL0 0x0141
131+
#define regSMBUS_BLKWR_CMD_CTRL0_BASE_IDX 0
132+
#define regSMBUS_BLKWR_CMD_CTRL1 0x0142
133+
#define regSMBUS_BLKWR_CMD_CTRL1_BASE_IDX 0
134+
#define regSMBUS_BLKRD_CMD_CTRL0 0x0143
135+
#define regSMBUS_BLKRD_CMD_CTRL0_BASE_IDX 0
136+
#define regSMBUS_BLKRD_CMD_CTRL1 0x0144
137+
#define regSMBUS_BLKRD_CMD_CTRL1_BASE_IDX 0
138+
#define regSMBUS_TIMING_CNTL0 0x0145
139+
#define regSMBUS_TIMING_CNTL0_BASE_IDX 0
140+
#define regSMBUS_TIMING_CNTL1 0x0146
141+
#define regSMBUS_TIMING_CNTL1_BASE_IDX 0
142+
#define regSMBUS_TIMING_CNTL2 0x0147
143+
#define regSMBUS_TIMING_CNTL2_BASE_IDX 0
144+
#define regSMBUS_TRIGGER_CNTL 0x0148
145+
#define regSMBUS_TRIGGER_CNTL_BASE_IDX 0
146+
#define regSMBUS_UDID_CNTL0 0x0149
147+
#define regSMBUS_UDID_CNTL0_BASE_IDX 0
148+
#define regSMBUS_UDID_CNTL1 0x014a
149+
#define regSMBUS_UDID_CNTL1_BASE_IDX 0
150+
#define regSMBUS_UDID_CNTL2 0x014b
151+
#define regSMBUS_UDID_CNTL2_BASE_IDX 0
152+
#define regSMUSBI_SMBUS 0x014c
153+
#define regSMUSBI_SMBUS_BASE_IDX 0
154+
#define regSMUSBI_ALERT 0x014d
155+
#define regSMUSBI_ALERT_BASE_IDX 0
156+
157+
#endif

0 commit comments

Comments
 (0)