summaryrefslogtreecommitdiff
path: root/src/atipreinit.c
diff options
context:
space:
mode:
authorGeorge Sapountzis <gsap7@yahoo.gr>2008-02-07 18:02:17 +0200
committerGeorge Sapountzis <gsap7@yahoo.gr>2008-02-07 18:02:17 +0200
commitdce4cc26a8e2bf53805ec63763243f3ff6b4a6d3 (patch)
treedf5e6c8d389572e1dff9939e9ce0234988540a69 /src/atipreinit.c
parentf7ed807f0d82a7446ebc4acdd4e94df44a675f19 (diff)
mach64: consolidate refclk #1
Diffstat (limited to 'src/atipreinit.c')
-rw-r--r--src/atipreinit.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/atipreinit.c b/src/atipreinit.c
index 65c84eb..f6b0ce4 100644
--- a/src/atipreinit.c
+++ b/src/atipreinit.c
@@ -148,7 +148,9 @@ ati_bios_clock
{
pATI->ProgrammableClock = BIOSByte(ClockTable);
pATI->ClockNumberToProgramme = BIOSByte(ClockTable + 0x06U);
- switch (BIOSWord(ClockTable + 0x08U) / 10)
+ pATI->refclk = BIOSWord(ClockTable + 0x08U);
+ pATI->refclk *= 10000;
+ switch (pATI->refclk / 100000)
{
case 143:
pATI->ReferenceNumerator = 157500;
@@ -161,8 +163,7 @@ ati_bios_clock
break;
default:
- pATI->ReferenceNumerator =
- BIOSWord(ClockTable + 0x08U) * 10;
+ pATI->ReferenceNumerator = pATI->refclk / 1000;
pATI->ReferenceDenominator = 1;
break;
}