Commit 31528650 authored by Huang Rui's avatar Huang Rui Committed by Alex Deucher

drm/amd/powerplay: add navi10 smc ucode init and navi10 ppt functions setting

This patch adds navi10 smc ucode init and ppt functions setting.
Signed-off-by: default avatarHuang Rui <ray.huang@amd.com>
Reviewed-by: default avatarHawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 2573e870
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
#include "soc15_common.h" #include "soc15_common.h"
#include "atom.h" #include "atom.h"
#include "vega20_ppt.h" #include "vega20_ppt.h"
#include "navi10_ppt.h"
#include "pp_thermal.h" #include "pp_thermal.h"
#include "asic_reg/thm/thm_11_0_2_offset.h" #include "asic_reg/thm/thm_11_0_2_offset.h"
...@@ -165,6 +166,9 @@ static int smu_v11_0_init_microcode(struct smu_context *smu) ...@@ -165,6 +166,9 @@ static int smu_v11_0_init_microcode(struct smu_context *smu)
case CHIP_VEGA20: case CHIP_VEGA20:
chip_name = "vega20"; chip_name = "vega20";
break; break;
case CHIP_NAVI10:
chip_name = "navi10";
break;
default: default:
BUG(); BUG();
} }
...@@ -2096,6 +2100,9 @@ void smu_v11_0_set_smu_funcs(struct smu_context *smu) ...@@ -2096,6 +2100,9 @@ void smu_v11_0_set_smu_funcs(struct smu_context *smu)
case CHIP_VEGA20: case CHIP_VEGA20:
vega20_set_ppt_funcs(smu); vega20_set_ppt_funcs(smu);
break; break;
case CHIP_NAVI10:
navi10_set_ppt_funcs(smu);
break;
default: default:
pr_warn("Unknown asic for smu11\n"); pr_warn("Unknown asic for smu11\n");
} }
......
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