Commit f19e49a2 authored by Hawking Zhang's avatar Hawking Zhang Committed by Alex Deucher

drm/amdgpu: add thm v13_0_2 ip headers (v3)

v1: Add thm v13_0_2 register offset and
shift masks in header files (Hawking)
v2: Clean up thm v13_0_2 registers (Alex)
v3: update registers (Alex)
Signed-off-by: default avatarHawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Reviewed-by: default avatarKevin Wang <kevin1.wang@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent ca853314
/*
* Copyright 2020 Advanced Micro Devices, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
* OTHER DEALINGS IN THE SOFTWARE.
*
*
*/
#ifndef _thm_13_0_2_OFFSET_HEADER
#define _thm_13_0_2_OFFSET_HEADER
// addressBlock: thm_thm_SmuThmDec
// base address: 0x59800
#define regTHM_TCON_CUR_TMP 0x0000
#define regTHM_TCON_CUR_TMP_BASE_IDX 0
#define regTHM_TCON_HTC 0x0001
#define regTHM_TCON_HTC_BASE_IDX 0
#define regTHM_TCON_THERM_TRIP 0x0002
#define regTHM_TCON_THERM_TRIP_BASE_IDX 0
#define regTHM_CTF_DELAY 0x0003
#define regTHM_CTF_DELAY_BASE_IDX 0
#define regTHM_GPIO_PROCHOT_CTRL 0x0004
#define regTHM_GPIO_PROCHOT_CTRL_BASE_IDX 0
#define regTHM_GPIO_THERMTRIP_CTRL 0x0005
#define regTHM_GPIO_THERMTRIP_CTRL_BASE_IDX 0
#define regTHM_GPIO_PWM_CTRL 0x0006
#define regTHM_GPIO_PWM_CTRL_BASE_IDX 0
#define regTHM_GPIO_TACHIN_CTRL 0x0007
#define regTHM_GPIO_TACHIN_CTRL_BASE_IDX 0
#define regTHM_GPIO_PUMPOUT_CTRL 0x0008
#define regTHM_GPIO_PUMPOUT_CTRL_BASE_IDX 0
#define regTHM_GPIO_PUMPIN_CTRL 0x0009
#define regTHM_GPIO_PUMPIN_CTRL_BASE_IDX 0
#define regTHM_THERMAL_INT_ENA 0x000a
#define regTHM_THERMAL_INT_ENA_BASE_IDX 0
#define regTHM_THERMAL_INT_CTRL 0x000b
#define regTHM_THERMAL_INT_CTRL_BASE_IDX 0
#define regTHM_THERMAL_INT_STATUS 0x000c
#define regTHM_THERMAL_INT_STATUS_BASE_IDX 0
#define regTHM_TMON0_RDIL0_DATA 0x000d
#define regTHM_TMON0_RDIL0_DATA_BASE_IDX 0
#define regTHM_TMON0_RDIL1_DATA 0x000e
#define regTHM_TMON0_RDIL1_DATA_BASE_IDX 0
#define regTHM_TMON0_RDIL2_DATA 0x000f
#define regTHM_TMON0_RDIL2_DATA_BASE_IDX 0
#define regTHM_TMON0_RDIL3_DATA 0x0010
#define regTHM_TMON0_RDIL3_DATA_BASE_IDX 0
#define regTHM_TMON0_RDIL4_DATA 0x0011
#define regTHM_TMON0_RDIL4_DATA_BASE_IDX 0
#define regTHM_TMON0_RDIL5_DATA 0x0012
#define regTHM_TMON0_RDIL5_DATA_BASE_IDX 0
#define regTHM_TMON0_RDIL6_DATA 0x0013
#define regTHM_TMON0_RDIL6_DATA_BASE_IDX 0
#define regTHM_TMON0_RDIL7_DATA 0x0014
#define regTHM_TMON0_RDIL7_DATA_BASE_IDX 0
#define regTHM_TMON0_RDIL8_DATA 0x0015
#define regTHM_TMON0_RDIL8_DATA_BASE_IDX 0
#define regTHM_TMON0_RDIL9_DATA 0x0016
#define regTHM_TMON0_RDIL9_DATA_BASE_IDX 0
#define regTHM_TMON0_RDIL10_DATA 0x0017
#define regTHM_TMON0_RDIL10_DATA_BASE_IDX 0
#define regTHM_TMON0_RDIL11_DATA 0x0018
#define regTHM_TMON0_RDIL11_DATA_BASE_IDX 0
#define regTHM_TMON0_RDIL12_DATA 0x0019
#define regTHM_TMON0_RDIL12_DATA_BASE_IDX 0
#define regTHM_TMON0_RDIL13_DATA 0x001a
#define regTHM_TMON0_RDIL13_DATA_BASE_IDX 0
#define regTHM_TMON0_RDIL14_DATA 0x001b
#define regTHM_TMON0_RDIL14_DATA_BASE_IDX 0
#define regTHM_TMON0_RDIL15_DATA 0x001c
#define regTHM_TMON0_RDIL15_DATA_BASE_IDX 0
#define regTHM_TMON0_RDIR0_DATA 0x001d
#define regTHM_TMON0_RDIR0_DATA_BASE_IDX 0
#define regTHM_TMON0_RDIR1_DATA 0x001e
#define regTHM_TMON0_RDIR1_DATA_BASE_IDX 0
#define regTHM_TMON0_RDIR2_DATA 0x001f
#define regTHM_TMON0_RDIR2_DATA_BASE_IDX 0
#define regTHM_TMON0_RDIR3_DATA 0x0020
#define regTHM_TMON0_RDIR3_DATA_BASE_IDX 0
#define regTHM_TMON0_RDIR4_DATA 0x0021
#define regTHM_TMON0_RDIR4_DATA_BASE_IDX 0
#define regTHM_TMON0_RDIR5_DATA 0x0022
#define regTHM_TMON0_RDIR5_DATA_BASE_IDX 0
#define regTHM_TMON0_RDIR6_DATA 0x0023
#define regTHM_TMON0_RDIR6_DATA_BASE_IDX 0
#define regTHM_TMON0_RDIR7_DATA 0x0024
#define regTHM_TMON0_RDIR7_DATA_BASE_IDX 0
#define regTHM_TMON0_RDIR8_DATA 0x0025
#define regTHM_TMON0_RDIR8_DATA_BASE_IDX 0
#define regTHM_TMON0_RDIR9_DATA 0x0026
#define regTHM_TMON0_RDIR9_DATA_BASE_IDX 0
#define regTHM_TMON0_RDIR10_DATA 0x0027
#define regTHM_TMON0_RDIR10_DATA_BASE_IDX 0
#define regTHM_TMON0_RDIR11_DATA 0x0028
#define regTHM_TMON0_RDIR11_DATA_BASE_IDX 0
#define regTHM_TMON0_RDIR12_DATA 0x0029
#define regTHM_TMON0_RDIR12_DATA_BASE_IDX 0
#define regTHM_TMON0_RDIR13_DATA 0x002a
#define regTHM_TMON0_RDIR13_DATA_BASE_IDX 0
#define regTHM_TMON0_RDIR14_DATA 0x002b
#define regTHM_TMON0_RDIR14_DATA_BASE_IDX 0
#define regTHM_TMON0_RDIR15_DATA 0x002c
#define regTHM_TMON0_RDIR15_DATA_BASE_IDX 0
#define regTHM_TMON0_INT_DATA 0x002d
#define regTHM_TMON0_INT_DATA_BASE_IDX 0
#define regTHM_TMON0_CTRL 0x002e
#define regTHM_TMON0_CTRL_BASE_IDX 0
#define regTHM_TMON0_CTRL2 0x002f
#define regTHM_TMON0_CTRL2_BASE_IDX 0
#define regTHM_TMON1_RDIL0_DATA 0x0031
#define regTHM_TMON1_RDIL0_DATA_BASE_IDX 0
#define regTHM_TMON1_RDIL1_DATA 0x0032
#define regTHM_TMON1_RDIL1_DATA_BASE_IDX 0
#define regTHM_TMON1_RDIL2_DATA 0x0033
#define regTHM_TMON1_RDIL2_DATA_BASE_IDX 0
#define regTHM_TMON1_RDIL3_DATA 0x0034
#define regTHM_TMON1_RDIL3_DATA_BASE_IDX 0
#define regTHM_TMON1_RDIL4_DATA 0x0035
#define regTHM_TMON1_RDIL4_DATA_BASE_IDX 0
#define regTHM_TMON1_RDIL5_DATA 0x0036
#define regTHM_TMON1_RDIL5_DATA_BASE_IDX 0
#define regTHM_TMON1_RDIL6_DATA 0x0037
#define regTHM_TMON1_RDIL6_DATA_BASE_IDX 0
#define regTHM_TMON1_RDIL7_DATA 0x0038
#define regTHM_TMON1_RDIL7_DATA_BASE_IDX 0
#define regTHM_TMON1_RDIL8_DATA 0x0039
#define regTHM_TMON1_RDIL8_DATA_BASE_IDX 0
#define regTHM_TMON1_RDIL9_DATA 0x003a
#define regTHM_TMON1_RDIL9_DATA_BASE_IDX 0
#define regTHM_TMON1_RDIL10_DATA 0x003b
#define regTHM_TMON1_RDIL10_DATA_BASE_IDX 0
#define regTHM_TMON1_RDIL11_DATA 0x003c
#define regTHM_TMON1_RDIL11_DATA_BASE_IDX 0
#define regTHM_TMON1_RDIL12_DATA 0x003d
#define regTHM_TMON1_RDIL12_DATA_BASE_IDX 0
#define regTHM_TMON1_RDIL13_DATA 0x003e
#define regTHM_TMON1_RDIL13_DATA_BASE_IDX 0
#define regTHM_TMON1_RDIL14_DATA 0x003f
#define regTHM_TMON1_RDIL14_DATA_BASE_IDX 0
#define regTHM_TMON1_RDIL15_DATA 0x0040
#define regTHM_TMON1_RDIL15_DATA_BASE_IDX 0
#define regTHM_TMON1_RDIR0_DATA 0x0041
#define regTHM_TMON1_RDIR0_DATA_BASE_IDX 0
#define regTHM_TMON1_RDIR1_DATA 0x0042
#define regTHM_TMON1_RDIR1_DATA_BASE_IDX 0
#define regTHM_TMON1_RDIR2_DATA 0x0043
#define regTHM_TMON1_RDIR2_DATA_BASE_IDX 0
#define regTHM_TMON1_RDIR3_DATA 0x0044
#define regTHM_TMON1_RDIR3_DATA_BASE_IDX 0
#define regTHM_TMON1_RDIR4_DATA 0x0045
#define regTHM_TMON1_RDIR4_DATA_BASE_IDX 0
#define regTHM_TMON1_RDIR5_DATA 0x0046
#define regTHM_TMON1_RDIR5_DATA_BASE_IDX 0
#define regTHM_TMON1_RDIR6_DATA 0x0047
#define regTHM_TMON1_RDIR6_DATA_BASE_IDX 0
#define regTHM_TMON1_RDIR7_DATA 0x0048
#define regTHM_TMON1_RDIR7_DATA_BASE_IDX 0
#define regTHM_TMON1_RDIR8_DATA 0x0049
#define regTHM_TMON1_RDIR8_DATA_BASE_IDX 0
#define regTHM_TMON1_RDIR9_DATA 0x004a
#define regTHM_TMON1_RDIR9_DATA_BASE_IDX 0
#define regTHM_TMON1_RDIR10_DATA 0x004b
#define regTHM_TMON1_RDIR10_DATA_BASE_IDX 0
#define regTHM_TMON1_RDIR11_DATA 0x004c
#define regTHM_TMON1_RDIR11_DATA_BASE_IDX 0
#define regTHM_TMON1_RDIR12_DATA 0x004d
#define regTHM_TMON1_RDIR12_DATA_BASE_IDX 0
#define regTHM_TMON1_RDIR13_DATA 0x004e
#define regTHM_TMON1_RDIR13_DATA_BASE_IDX 0
#define regTHM_TMON1_RDIR14_DATA 0x004f
#define regTHM_TMON1_RDIR14_DATA_BASE_IDX 0
#define regTHM_TMON1_RDIR15_DATA 0x0050
#define regTHM_TMON1_RDIR15_DATA_BASE_IDX 0
#define regTHM_TMON1_INT_DATA 0x0051
#define regTHM_TMON1_INT_DATA_BASE_IDX 0
#define regTHM_DIE1_TEMP 0x0079
#define regTHM_DIE1_TEMP_BASE_IDX 0
#define regTHM_DIE2_TEMP 0x007a
#define regTHM_DIE2_TEMP_BASE_IDX 0
#define regTHM_DIE3_TEMP 0x007b
#define regTHM_DIE3_TEMP_BASE_IDX 0
#define regTHM_SW_TEMP 0x0081
#define regTHM_SW_TEMP_BASE_IDX 0
#define regCG_MULT_THERMAL_CTRL 0x0082
#define regCG_MULT_THERMAL_CTRL_BASE_IDX 0
#define regCG_MULT_THERMAL_STATUS 0x0083
#define regCG_MULT_THERMAL_STATUS_BASE_IDX 0
#define regCG_THERMAL_RANGE 0x0084
#define regCG_THERMAL_RANGE_BASE_IDX 0
#define regTHM_TMON_CONFIG 0x0085
#define regTHM_TMON_CONFIG_BASE_IDX 0
#define regTHM_TMON_CONFIG2 0x0086
#define regTHM_TMON_CONFIG2_BASE_IDX 0
#define regTHM_TMON0_COEFF 0x0087
#define regTHM_TMON0_COEFF_BASE_IDX 0
#define regTHM_TMON1_COEFF 0x0088
#define regTHM_TMON1_COEFF_BASE_IDX 0
#define regCG_FDO_CTRL0 0x008b
#define regCG_FDO_CTRL0_BASE_IDX 0
#define regCG_FDO_CTRL1 0x008c
#define regCG_FDO_CTRL1_BASE_IDX 0
#define regCG_FDO_CTRL2 0x008d
#define regCG_FDO_CTRL2_BASE_IDX 0
#define regCG_TACH_CTRL 0x008e
#define regCG_TACH_CTRL_BASE_IDX 0
#define regCG_TACH_STATUS 0x008f
#define regCG_TACH_STATUS_BASE_IDX 0
#define regCG_THERMAL_STATUS 0x0090
#define regCG_THERMAL_STATUS_BASE_IDX 0
#define regCG_PUMP_CTRL0 0x0091
#define regCG_PUMP_CTRL0_BASE_IDX 0
#define regCG_PUMP_CTRL1 0x0092
#define regCG_PUMP_CTRL1_BASE_IDX 0
#define regCG_PUMP_CTRL2 0x0093
#define regCG_PUMP_CTRL2_BASE_IDX 0
#define regCG_PUMP_TACH_CTRL 0x0094
#define regCG_PUMP_TACH_CTRL_BASE_IDX 0
#define regCG_PUMP_TACH_STATUS 0x0095
#define regCG_PUMP_TACH_STATUS_BASE_IDX 0
#define regCG_PUMP_STATUS 0x0096
#define regCG_PUMP_STATUS_BASE_IDX 0
#define regTHM_TCON_LOCAL0 0x0097
#define regTHM_TCON_LOCAL0_BASE_IDX 0
#define regTHM_TCON_LOCAL1 0x0098
#define regTHM_TCON_LOCAL1_BASE_IDX 0
#define regTHM_TCON_LOCAL2 0x0099
#define regTHM_TCON_LOCAL2_BASE_IDX 0
#define regTHM_TCON_LOCAL3 0x009a
#define regTHM_TCON_LOCAL3_BASE_IDX 0
#define regTHM_TCON_LOCAL4 0x009b
#define regTHM_TCON_LOCAL4_BASE_IDX 0
#define regTHM_TCON_LOCAL5 0x009c
#define regTHM_TCON_LOCAL5_BASE_IDX 0
#define regTHM_TCON_LOCAL6 0x009d
#define regTHM_TCON_LOCAL6_BASE_IDX 0
#define regTHM_TCON_LOCAL7 0x009e
#define regTHM_TCON_LOCAL7_BASE_IDX 0
#define regTHM_TCON_LOCAL8 0x009f
#define regTHM_TCON_LOCAL8_BASE_IDX 0
#define regTHM_TCON_LOCAL9 0x00a0
#define regTHM_TCON_LOCAL9_BASE_IDX 0
#define regTHM_TCON_LOCAL10 0x00a1
#define regTHM_TCON_LOCAL10_BASE_IDX 0
#define regTHM_TCON_LOCAL11 0x00a2
#define regTHM_TCON_LOCAL11_BASE_IDX 0
#define regTHM_TCON_LOCAL12 0x00a3
#define regTHM_TCON_LOCAL12_BASE_IDX 0
#define regTHM_TCON_LOCAL14 0x00a4
#define regTHM_TCON_LOCAL14_BASE_IDX 0
#define regTHM_TCON_LOCAL15 0x00a5
#define regTHM_TCON_LOCAL15_BASE_IDX 0
#define regTHM_TCON_LOCAL13 0x00a6
#define regTHM_TCON_LOCAL13_BASE_IDX 0
#define regXTAL_CNTL 0x00ac
#define regXTAL_CNTL_BASE_IDX 0
#define regTHM_PWRMGT 0x00ad
#define regTHM_PWRMGT_BASE_IDX 0
#define regTHM_GPIO_MACO_EN_CTRL 0x00ae
#define regTHM_GPIO_MACO_EN_CTRL_BASE_IDX 0
#define regSBTSI_REMOTE_TEMP 0x00ca
#define regSBTSI_REMOTE_TEMP_BASE_IDX 0
#define regSBRMI_CONTROL 0x00cb
#define regSBRMI_CONTROL_BASE_IDX 0
#define regSBRMI_COMMAND 0x00cc
#define regSBRMI_COMMAND_BASE_IDX 0
#define regSBRMI_WRITE_DATA0 0x00cd
#define regSBRMI_WRITE_DATA0_BASE_IDX 0
#define regSBRMI_WRITE_DATA1 0x00ce
#define regSBRMI_WRITE_DATA1_BASE_IDX 0
#define regSBRMI_WRITE_DATA2 0x00cf
#define regSBRMI_WRITE_DATA2_BASE_IDX 0
#define regSBRMI_READ_DATA0 0x00d0
#define regSBRMI_READ_DATA0_BASE_IDX 0
#define regSBRMI_READ_DATA1 0x00d1
#define regSBRMI_READ_DATA1_BASE_IDX 0
#define regSBRMI_CORE_EN_NUMBER 0x00d2
#define regSBRMI_CORE_EN_NUMBER_BASE_IDX 0
#define regSBRMI_CORE_EN_STATUS0 0x00d3
#define regSBRMI_CORE_EN_STATUS0_BASE_IDX 0
#define regSBRMI_CORE_EN_STATUS1 0x00d4
#define regSBRMI_CORE_EN_STATUS1_BASE_IDX 0
#define regSBRMI_APIC_STATUS0 0x00d5
#define regSBRMI_APIC_STATUS0_BASE_IDX 0
#define regSBRMI_APIC_STATUS1 0x00d6
#define regSBRMI_APIC_STATUS1_BASE_IDX 0
#define regSBRMI_MCE_STATUS0 0x00db
#define regSBRMI_MCE_STATUS0_BASE_IDX 0
#define regSBRMI_MCE_STATUS1 0x00dc
#define regSBRMI_MCE_STATUS1_BASE_IDX 0
#define regSMBUS_CNTL0 0x00df
#define regSMBUS_CNTL0_BASE_IDX 0
#define regSMBUS_CNTL1 0x00e0
#define regSMBUS_CNTL1_BASE_IDX 0
#define regSMBUS_BLKWR_CMD_CTRL0 0x00e1
#define regSMBUS_BLKWR_CMD_CTRL0_BASE_IDX 0
#define regSMBUS_BLKWR_CMD_CTRL1 0x00e2
#define regSMBUS_BLKWR_CMD_CTRL1_BASE_IDX 0
#define regSMBUS_BLKRD_CMD_CTRL0 0x00e3
#define regSMBUS_BLKRD_CMD_CTRL0_BASE_IDX 0
#define regSMBUS_BLKRD_CMD_CTRL1 0x00e4
#define regSMBUS_BLKRD_CMD_CTRL1_BASE_IDX 0
#define regSMBUS_TIMING_CNTL0 0x00e5
#define regSMBUS_TIMING_CNTL0_BASE_IDX 0
#define regSMBUS_TIMING_CNTL1 0x00e6
#define regSMBUS_TIMING_CNTL1_BASE_IDX 0
#define regSMBUS_TIMING_CNTL2 0x00e7
#define regSMBUS_TIMING_CNTL2_BASE_IDX 0
#define regSMBUS_TRIGGER_CNTL 0x00e8
#define regSMBUS_TRIGGER_CNTL_BASE_IDX 0
#define regSMBUS_UDID_CNTL0 0x00e9
#define regSMBUS_UDID_CNTL0_BASE_IDX 0
#define regSMBUS_UDID_CNTL1 0x00ea
#define regSMBUS_UDID_CNTL1_BASE_IDX 0
#define regSMBUS_UDID_CNTL2 0x00eb
#define regSMBUS_UDID_CNTL2_BASE_IDX 0
#define regTHM_TMON0_REMOTE_START 0x0100
#define regTHM_TMON0_REMOTE_START_BASE_IDX 0
#define regTHM_TMON0_REMOTE_END 0x013f
#define regTHM_TMON0_REMOTE_END_BASE_IDX 0
#define regTHM_TMON1_REMOTE_START 0x0140
#define regTHM_TMON1_REMOTE_START_BASE_IDX 0
#define regTHM_TMON1_REMOTE_END 0x017f
#define regTHM_TMON1_REMOTE_END_BASE_IDX 0
#define regTHM_TMON2_REMOTE_START 0x0180
#define regTHM_TMON2_REMOTE_START_BASE_IDX 0
#define regTHM_TMON2_REMOTE_END 0x01bf
#define regTHM_TMON2_REMOTE_END_BASE_IDX 0
#endif
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment