radeon_hd: Fix Spread Spectrum clock decimal place

* As 104Mhz is stores as 10400 on atombios,
  and 104000 everywhere else... this conversion
  was going the wrong direction.
* Shrink the stored value to 10Khz units to properly
  compare to the AtomBIOS value
This commit is contained in:
Alexander von Gluck IV
2014-11-10 22:16:49 -06:00
parent 3de924d06c
commit 44b9746039
+3 -3
View File
@@ -241,7 +241,7 @@ pll_asic_ss_probe(pll_info* pll, uint32 ssID)
continue;
}
TRACE("%s: ss match found\n", __func__);
if (pll->pixelClock * 10 > B_LENDIAN_TO_HOST_INT32(
if (pll->pixelClock / 10 > B_LENDIAN_TO_HOST_INT32(
ss_info->info.asSpreadSpectrum[i].ulTargetClockRange)) {
TRACE("%s: pixelClock > targetClockRange!\n", __func__);
continue;
@@ -270,7 +270,7 @@ pll_asic_ss_probe(pll_info* pll, uint32 ssID)
continue;
}
TRACE("%s: ss match found\n", __func__);
if (pll->pixelClock * 10 > B_LENDIAN_TO_HOST_INT32(
if (pll->pixelClock / 10 > B_LENDIAN_TO_HOST_INT32(
ss_info->info_2.asSpreadSpectrum[i].ulTargetClockRange)) {
TRACE("%s: pixelClock > targetClockRange!\n", __func__);
continue;
@@ -300,7 +300,7 @@ pll_asic_ss_probe(pll_info* pll, uint32 ssID)
continue;
}
TRACE("%s: ss match found\n", __func__);
if (pll->pixelClock * 10 > B_LENDIAN_TO_HOST_INT32(
if (pll->pixelClock / 10 > B_LENDIAN_TO_HOST_INT32(
ss_info->info_3.asSpreadSpectrum[i].ulTargetClockRange)) {
TRACE("%s: pixelClock > targetClockRange!\n", __func__);
continue;