提交 696b2d73 编写于 作者: R Rex Zhu 提交者: Alex Deucher

drm/amd/powerplay: add mvdd dpm support.

SMC requires master switch bit to be set.
Signed-off-by: NRex Zhu <Rex.Zhu@amd.com>
Reviewed-by: NAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
上级 d826c982
...@@ -1913,9 +1913,8 @@ static int polaris10_populate_vr_config(struct pp_hwmgr *hwmgr, ...@@ -1913,9 +1913,8 @@ static int polaris10_populate_vr_config(struct pp_hwmgr *hwmgr,
if (POLARIS10_VOLTAGE_CONTROL_BY_SVID2 == data->mvdd_control) { if (POLARIS10_VOLTAGE_CONTROL_BY_SVID2 == data->mvdd_control) {
config = VR_SVI2_PLANE_2; config = VR_SVI2_PLANE_2;
table->VRConfig |= (config << VRCONF_MVDD_SHIFT); table->VRConfig |= (config << VRCONF_MVDD_SHIFT);
} else if (POLARIS10_VOLTAGE_CONTROL_BY_GPIO == data->mvdd_control) { cgs_write_ind_register(hwmgr->device, CGS_IND_REG__SMC, data->soft_regs_start +
config = VR_SMIO_PATTERN_2; offsetof(SMU74_SoftRegisters, AllowMvddSwitch), 0x1);
table->VRConfig |= (config << VRCONF_MVDD_SHIFT);
} else { } else {
config = VR_STATIC_VOLTAGE; config = VR_STATIC_VOLTAGE;
table->VRConfig |= (config << VRCONF_MVDD_SHIFT); table->VRConfig |= (config << VRCONF_MVDD_SHIFT);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册