Commit 45313e5f authored by Rex Zhu's avatar Rex Zhu Committed by Alex Deucher

drm/amd/pp: Move same macro definitions to hwmgr.h

Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarRex Zhu <Rex.Zhu@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent d6014e77
...@@ -61,10 +61,6 @@ ...@@ -61,10 +61,6 @@
#define SMC_CG_IND_START 0xc0030000 #define SMC_CG_IND_START 0xc0030000
#define SMC_CG_IND_END 0xc0040000 #define SMC_CG_IND_END 0xc0040000
#define VOLTAGE_SCALE 4
#define VOLTAGE_VID_OFFSET_SCALE1 625
#define VOLTAGE_VID_OFFSET_SCALE2 100
#define MEM_FREQ_LOW_LATENCY 25000 #define MEM_FREQ_LOW_LATENCY 25000
#define MEM_FREQ_HIGH_LATENCY 80000 #define MEM_FREQ_HIGH_LATENCY 80000
......
...@@ -51,10 +51,6 @@ ...@@ -51,10 +51,6 @@
#include "smuio/smuio_9_0_offset.h" #include "smuio/smuio_9_0_offset.h"
#include "smuio/smuio_9_0_sh_mask.h" #include "smuio/smuio_9_0_sh_mask.h"
#define VOLTAGE_SCALE 4
#define VOLTAGE_VID_OFFSET_SCALE1 625
#define VOLTAGE_VID_OFFSET_SCALE2 100
#define HBM_MEMORY_CHANNEL_WIDTH 128 #define HBM_MEMORY_CHANNEL_WIDTH 128
static const uint32_t channel_number[] = {1, 2, 0, 4, 0, 8, 0, 16, 2}; static const uint32_t channel_number[] = {1, 2, 0, 4, 0, 8, 0, 16, 2};
......
...@@ -38,6 +38,8 @@ struct phm_fan_speed_info; ...@@ -38,6 +38,8 @@ struct phm_fan_speed_info;
struct pp_atomctrl_voltage_table; struct pp_atomctrl_voltage_table;
#define VOLTAGE_SCALE 4 #define VOLTAGE_SCALE 4
#define VOLTAGE_VID_OFFSET_SCALE1 625
#define VOLTAGE_VID_OFFSET_SCALE2 100
enum DISPLAY_GAP { enum DISPLAY_GAP {
DISPLAY_GAP_VBLANK_OR_WM = 0, /* Wait for vblank or MCHG watermark. */ DISPLAY_GAP_VBLANK_OR_WM = 0, /* Wait for vblank or MCHG watermark. */
......
...@@ -61,9 +61,6 @@ ...@@ -61,9 +61,6 @@
#define SMC_RAM_END 0x40000 #define SMC_RAM_END 0x40000
#define VOLTAGE_SCALE 4
#define VOLTAGE_VID_OFFSET_SCALE1 625
#define VOLTAGE_VID_OFFSET_SCALE2 100
#define CISLAND_MINIMUM_ENGINE_CLOCK 800 #define CISLAND_MINIMUM_ENGINE_CLOCK 800
#define CISLAND_MAX_DEEPSLEEP_DIVIDER_ID 5 #define CISLAND_MAX_DEEPSLEEP_DIVIDER_ID 5
......
...@@ -53,10 +53,7 @@ ...@@ -53,10 +53,7 @@
#define FIJI_SMC_SIZE 0x20000 #define FIJI_SMC_SIZE 0x20000
#define VOLTAGE_SCALE 4
#define POWERTUNE_DEFAULT_SET_MAX 1 #define POWERTUNE_DEFAULT_SET_MAX 1
#define VOLTAGE_VID_OFFSET_SCALE1 625
#define VOLTAGE_VID_OFFSET_SCALE2 100
#define VDDC_VDDCI_DELTA 300 #define VDDC_VDDCI_DELTA 300
#define MC_CG_ARB_FREQ_F1 0x0b #define MC_CG_ARB_FREQ_F1 0x0b
......
...@@ -60,10 +60,7 @@ ...@@ -60,10 +60,7 @@
#define ICELAND_SMC_SIZE 0x20000 #define ICELAND_SMC_SIZE 0x20000
#define VOLTAGE_SCALE 4
#define POWERTUNE_DEFAULT_SET_MAX 1 #define POWERTUNE_DEFAULT_SET_MAX 1
#define VOLTAGE_VID_OFFSET_SCALE1 625
#define VOLTAGE_VID_OFFSET_SCALE2 100
#define MC_CG_ARB_FREQ_F1 0x0b #define MC_CG_ARB_FREQ_F1 0x0b
#define VDDC_VDDCI_DELTA 200 #define VDDC_VDDCI_DELTA 200
......
...@@ -52,8 +52,6 @@ ...@@ -52,8 +52,6 @@
#include "dce/dce_10_0_sh_mask.h" #include "dce/dce_10_0_sh_mask.h"
#define POLARIS10_SMC_SIZE 0x20000 #define POLARIS10_SMC_SIZE 0x20000
#define VOLTAGE_VID_OFFSET_SCALE1 625
#define VOLTAGE_VID_OFFSET_SCALE2 100
#define POWERTUNE_DEFAULT_SET_MAX 1 #define POWERTUNE_DEFAULT_SET_MAX 1
#define VDDC_VDDCI_DELTA 200 #define VDDC_VDDCI_DELTA 200
#define MC_CG_ARB_FREQ_F1 0x0b #define MC_CG_ARB_FREQ_F1 0x0b
......
...@@ -33,8 +33,6 @@ ...@@ -33,8 +33,6 @@
#include "pp_debug.h" #include "pp_debug.h"
#define VOLTAGE_SCALE 4
#define BUFFER_SIZE 80000 #define BUFFER_SIZE 80000
#define MAX_STRING_SIZE 15 #define MAX_STRING_SIZE 15
#define BUFFER_SIZETWO 131072 #define BUFFER_SIZETWO 131072
......
...@@ -55,11 +55,7 @@ ...@@ -55,11 +55,7 @@
#include "dce/dce_10_0_d.h" #include "dce/dce_10_0_d.h"
#include "dce/dce_10_0_sh_mask.h" #include "dce/dce_10_0_sh_mask.h"
#define VOLTAGE_SCALE 4
#define POWERTUNE_DEFAULT_SET_MAX 1 #define POWERTUNE_DEFAULT_SET_MAX 1
#define VOLTAGE_VID_OFFSET_SCALE1 625
#define VOLTAGE_VID_OFFSET_SCALE2 100
#define MC_CG_ARB_FREQ_F1 0x0b #define MC_CG_ARB_FREQ_F1 0x0b
#define VDDC_VDDCI_DELTA 200 #define VDDC_VDDCI_DELTA 200
......
...@@ -35,8 +35,6 @@ ...@@ -35,8 +35,6 @@
#define AVFS_EN_MSB 1568 #define AVFS_EN_MSB 1568
#define AVFS_EN_LSB 1568 #define AVFS_EN_LSB 1568
#define VOLTAGE_SCALE 4
/* Microcode file is stored in this buffer */ /* Microcode file is stored in this buffer */
#define BUFFER_SIZE 80000 #define BUFFER_SIZE 80000
#define MAX_STRING_SIZE 15 #define MAX_STRING_SIZE 15
......
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