drm/amd/pp: Move DPMTABLE_* definitions to common header file
authorRex Zhu <Rex.Zhu@amd.com>
Tue, 16 Jan 2018 08:00:02 +0000 (16:00 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 19 Feb 2018 19:17:54 +0000 (14:17 -0500)
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.h
drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.h
drivers/gpu/drm/amd/powerplay/inc/hardwaremanager.h

index beba25cb2b071775a0276c0a6a4a338dfd233c19..8d4e9c193b8bee03f604098c3e0b5092e9a15756 100644 (file)
 #define SMU7_VOLTAGE_CONTROL_BY_SVID2               0x2
 #define SMU7_VOLTAGE_CONTROL_MERGED                 0x3
 
-#define DPMTABLE_OD_UPDATE_SCLK     0x00000001
-#define DPMTABLE_OD_UPDATE_MCLK     0x00000002
-#define DPMTABLE_UPDATE_SCLK        0x00000004
-#define DPMTABLE_UPDATE_MCLK        0x00000008
-
 enum gpu_pt_config_reg_type {
        GPU_CONFIGREG_MMR = 0,
        GPU_CONFIGREG_SMC_IND,
index 689fe9f5e0b83629296d3caaca107123b79cdc94..ab3e8798bee8ac1f529a1922b474748bf9f140c2 100644 (file)
@@ -189,12 +189,6 @@ struct vega10_vbios_boot_state {
        uint32_t    dcef_clock;
 };
 
-#define DPMTABLE_OD_UPDATE_SCLK     0x00000001
-#define DPMTABLE_OD_UPDATE_MCLK     0x00000002
-#define DPMTABLE_UPDATE_SCLK        0x00000004
-#define DPMTABLE_UPDATE_MCLK        0x00000008
-#define DPMTABLE_OD_UPDATE_VDDC     0x00000010
-
 struct vega10_smc_state_table {
        uint32_t        soc_boot_level;
        uint32_t        gfx_boot_level;
index d6772a8f242dfe3c161c835a097995c3fa94d927..6f528e662a6f92a3a99431cff55a4065e653b59d 100644 (file)
@@ -358,6 +358,17 @@ struct phm_clocks {
        uint32_t clock[MAX_NUM_CLOCKS];
 };
 
+#define DPMTABLE_OD_UPDATE_SCLK     0x00000001
+#define DPMTABLE_OD_UPDATE_MCLK     0x00000002
+#define DPMTABLE_UPDATE_SCLK        0x00000004
+#define DPMTABLE_UPDATE_MCLK        0x00000008
+#define DPMTABLE_OD_UPDATE_VDDC     0x00000010
+
+/* To determine if sclk and mclk are in overdrive state */
+#define SCLK_OVERDRIVE_ENABLED           0x00000001
+#define MCLK_OVERDRIVE_ENABLED           0x00000002
+#define VDDC_OVERDRIVE_ENABLED           0x00000010
+
 struct phm_odn_performance_level {
        uint32_t clock;
        uint32_t vddc;