Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5e037834 authored by Rex Zhu's avatar Rex Zhu Committed by Alex Deucher
Browse files

drm/amd/powerplay: add definitions related to di/dt feature for fiji and polaris.

parent 9a88d22b
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -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;
+13 −0
Original line number Diff line number Diff line
@@ -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