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

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

drm/amd/powerplay: fix issue that get wrong reference clock value.



use wrong parameter to compute the reference clock.

Signed-off-by: default avatarRex Zhu <Rex.Zhu@amd.com>
Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent e16ff21d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -5893,7 +5893,7 @@ uint32_t tonga_get_xclk(struct pp_hwmgr *hwmgr)
	if (!fw_info)
		return 0;

	reference_clock = le16_to_cpu(fw_info->usMinPixelClockPLL_Output);
	reference_clock = le16_to_cpu(fw_info->usReferenceClock);

	divide = PHM_READ_VFPF_INDIRECT_FIELD(hwmgr->device, CGS_IND_REG__SMC, CG_CLKPIN_CNTL, XTALIN_DIVIDE);