summaryrefslogtreecommitdiff
path: root/src/savage_driver.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/savage_driver.c')
-rw-r--r--src/savage_driver.c29
1 files changed, 6 insertions, 23 deletions
diff --git a/src/savage_driver.c b/src/savage_driver.c
index 3ff6aae..019e879 100644
--- a/src/savage_driver.c
+++ b/src/savage_driver.c
@@ -1841,26 +1841,11 @@ static Bool SavagePreInit(ScrnInfoPtr pScrn, int flags)
/* Do the DDC dance. */
SavageDoDDC(pScrn);
- /* Savage ramdac speeds */
- pScrn->numClocks = 4;
- pScrn->clock[0] = 250000;
- pScrn->clock[1] = 250000;
- pScrn->clock[2] = 220000;
- pScrn->clock[3] = 220000;
-
- if (psav->dacSpeedBpp <= 0) {
- if (pScrn->bitsPerPixel > 24)
- psav->dacSpeedBpp = pScrn->clock[3];
- else if (pScrn->bitsPerPixel >= 24)
- psav->dacSpeedBpp = pScrn->clock[2];
- else if ((pScrn->bitsPerPixel > 8) && (pScrn->bitsPerPixel < 24))
- psav->dacSpeedBpp = pScrn->clock[1];
- else if (pScrn->bitsPerPixel <= 8)
- psav->dacSpeedBpp = pScrn->clock[0];
- }
-
- /* Set ramdac limits */
- psav->maxClock = psav->dacSpeedBpp;
+ /* set up ramdac max clock - might be altered by SavageGetPanelInfo */
+ if (pScrn->bitsPerPixel >= 24)
+ psav->maxClock = 220000;
+ else
+ psav->maxClock = 250000;
/* detect current mclk */
VGAOUT8(0x3c4, 0x08);
@@ -1879,8 +1864,6 @@ static Bool SavagePreInit(ScrnInfoPtr pScrn, int flags)
xf86DrvMsg(pScrn->scrnIndex, X_PROBED, "Detected current MCLK value of %1.3f MHz\n",
mclk / 1000.0);
- psav->minClock = 10000;
-
pScrn->maxHValue = 2048 << 3; /* 11 bits of h_total 8-pixel units */
pScrn->maxVValue = 2048; /* 11 bits of v_total */
pScrn->virtualX = pScrn->display->virtualX;
@@ -1949,7 +1932,7 @@ static Bool SavagePreInit(ScrnInfoPtr pScrn, int flags)
clockRanges = xnfalloc(sizeof(ClockRange));
clockRanges->next = NULL;
- clockRanges->minClock = psav->minClock;
+ clockRanges->minClock = 10000;
clockRanges->maxClock = psav->maxClock;
clockRanges->clockIndex = -1;
clockRanges->interlaceAllowed = TRUE;