mirror of https://gitee.com/openkylin/linux.git
drm/amd/powerplay: add definitions related to di/dt feature for fiji and polaris.
Signed-off-by: Rex Zhu <Rex.Zhu@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
9a88d22bb0
commit
5e037834eb
|
@ -36,6 +36,19 @@ enum fiji_pt_config_reg_type {
|
|||
#define POWERCONTAINMENT_FEATURE_TDCLimit 0x00000002
|
||||
#define POWERCONTAINMENT_FEATURE_PkgPwrLimit 0x00000004
|
||||
|
||||
#define DIDT_SQ_CTRL0__UNUSED_0_MASK 0xffffffc0
|
||||
#define DIDT_SQ_CTRL0__UNUSED_0__SHIFT 0x6
|
||||
#define DIDT_TD_CTRL0__UNUSED_0_MASK 0xffffffc0
|
||||
#define DIDT_TD_CTRL0__UNUSED_0__SHIFT 0x6
|
||||
#define DIDT_TCP_CTRL0__UNUSED_0_MASK 0xffffffc0
|
||||
#define DIDT_TCP_CTRL0__UNUSED_0__SHIFT 0x6
|
||||
#define DIDT_SQ_TUNING_CTRL__UNUSED_0_MASK 0xe0000000
|
||||
#define DIDT_SQ_TUNING_CTRL__UNUSED_0__SHIFT 0x0000001d
|
||||
#define DIDT_TD_TUNING_CTRL__UNUSED_0_MASK 0xe0000000
|
||||
#define DIDT_TD_TUNING_CTRL__UNUSED_0__SHIFT 0x0000001d
|
||||
#define DIDT_TCP_TUNING_CTRL__UNUSED_0_MASK 0xe0000000
|
||||
#define DIDT_TCP_TUNING_CTRL__UNUSED_0__SHIFT 0x0000001d
|
||||
|
||||
struct fiji_pt_config_reg {
|
||||
uint32_t offset;
|
||||
uint32_t mask;
|
||||
|
|
|
@ -31,6 +31,19 @@ enum polaris10_pt_config_reg_type {
|
|||
POLARIS10_CONFIGREG_MAX
|
||||
};
|
||||
|
||||
#define DIDT_SQ_CTRL0__UNUSED_0_MASK 0xfffc0000
|
||||
#define DIDT_SQ_CTRL0__UNUSED_0__SHIFT 0x12
|
||||
#define DIDT_TD_CTRL0__UNUSED_0_MASK 0xfffc0000
|
||||
#define DIDT_TD_CTRL0__UNUSED_0__SHIFT 0x12
|
||||
#define DIDT_TCP_CTRL0__UNUSED_0_MASK 0xfffc0000
|
||||
#define DIDT_TCP_CTRL0__UNUSED_0__SHIFT 0x12
|
||||
#define DIDT_SQ_TUNING_CTRL__UNUSED_0_MASK 0xc0000000
|
||||
#define DIDT_SQ_TUNING_CTRL__UNUSED_0__SHIFT 0x0000001e
|
||||
#define DIDT_TD_TUNING_CTRL__UNUSED_0_MASK 0xc0000000
|
||||
#define DIDT_TD_TUNING_CTRL__UNUSED_0__SHIFT 0x0000001e
|
||||
#define DIDT_TCP_TUNING_CTRL__UNUSED_0_MASK 0xc0000000
|
||||
#define DIDT_TCP_TUNING_CTRL__UNUSED_0__SHIFT 0x0000001e
|
||||
|
||||
/* PowerContainment Features */
|
||||
#define POWERCONTAINMENT_FEATURE_DTE 0x00000001
|
||||
#define POWERCONTAINMENT_FEATURE_TDCLimit 0x00000002
|
||||
|
|
Loading…
Reference in New Issue