diff options
author | George Sapountzis <gsap7@yahoo.gr> | 2008-02-07 18:02:31 +0200 |
---|---|---|
committer | George Sapountzis <gsap7@yahoo.gr> | 2008-02-07 18:02:31 +0200 |
commit | 956c8c81f3ff434930a0cb17b027b2f8e4eeabb2 (patch) | |
tree | efc887cac3c68dd28c1e0e68252b2178a72364d4 /src/atipreinit.c | |
parent | dce4cc26a8e2bf53805ec63763243f3ff6b4a6d3 (diff) |
mach64: consolidate refclk #2
Diffstat (limited to 'src/atipreinit.c')
-rw-r--r-- | src/atipreinit.c | 35 |
1 files changed, 18 insertions, 17 deletions
diff --git a/src/atipreinit.c b/src/atipreinit.c index f6b0ce4..1c92f5d 100644 --- a/src/atipreinit.c +++ b/src/atipreinit.c @@ -150,23 +150,6 @@ ati_bios_clock pATI->ClockNumberToProgramme = BIOSByte(ClockTable + 0x06U); pATI->refclk = BIOSWord(ClockTable + 0x08U); pATI->refclk *= 10000; - switch (pATI->refclk / 100000) - { - case 143: - pATI->ReferenceNumerator = 157500; - pATI->ReferenceDenominator = 11; - break; - - case 286: - pATI->ReferenceNumerator = 315000; - pATI->ReferenceDenominator = 11; - break; - - default: - pATI->ReferenceNumerator = pATI->refclk / 1000; - pATI->ReferenceDenominator = 1; - break; - } } else { @@ -313,6 +296,24 @@ ati_bios_clock pATI->DAC = ClockDac; /* For now */ } } + + switch (pATI->refclk / 100000) + { + case 143: + pATI->ReferenceNumerator = 157500; + pATI->ReferenceDenominator = 11; + break; + + case 286: + pATI->ReferenceNumerator = 315000; + pATI->ReferenceDenominator = 11; + break; + + default: + pATI->ReferenceNumerator = pATI->refclk / 1000; + pATI->ReferenceDenominator = 1; + break; + } } /* |