diff options
author | Jordan Crouse <jordan.crouse@amd.com> | 2008-04-15 14:54:57 -0600 |
---|---|---|
committer | Jordan Crouse <jordan.crouse@amd.com> | 2008-04-24 11:13:32 -0600 |
commit | 61663593475f61567466c105ca19d5009a4e9c41 (patch) | |
tree | 4c9223c5dac482facd88f1e252ff1008033751e1 /src/lx_driver.c | |
parent | 401a7ed390beca4d37121575e64b72969d55fa7c (diff) |
geode: Add "native" DDC parsing to the Geode driver
Teach libDDC to access the DDC pins on the Geode natively, instead
of using the BIOS which has proven to be broken time and time again.
Diffstat (limited to 'src/lx_driver.c')
-rw-r--r-- | src/lx_driver.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/lx_driver.c b/src/lx_driver.c index 973d54d..48aff44 100644 --- a/src/lx_driver.c +++ b/src/lx_driver.c @@ -519,7 +519,6 @@ LXPreInit(ScrnInfoPtr pScrni, int flags) rgb defaultWeight = { 0, 0, 0 }; int modecnt; char *s, *panelgeo = NULL; - Bool useVGA; if (pScrni->numEntities != 1) return FALSE; @@ -529,12 +528,8 @@ LXPreInit(ScrnInfoPtr pScrni, int flags) if (pEnt->resources) return FALSE; - useVGA = LXCheckVGA(pScrni); - if (flags & PROBE_DETECT) { - if (useVGA) - GeodeProbeDDC(pScrni, pEnt->index); - + GeodeProbeDDC(pScrni, pEnt->index); return TRUE; } @@ -543,7 +538,7 @@ LXPreInit(ScrnInfoPtr pScrni, int flags) if (pGeode == NULL) return FALSE; - pGeode->useVGA = useVGA; + pGeode->useVGA = LXCheckVGA(pScrni); pGeode->VGAActive = FALSE; pGeode->pEnt = pEnt; @@ -769,7 +764,7 @@ LXPreInit(ScrnInfoPtr pScrni, int flags) GeodeClockRange->interlaceAllowed = TRUE; GeodeClockRange->doubleScanAllowed = FALSE; - if (pGeode->useVGA && (pGeode->Output & OUTPUT_CRT)) + if (pGeode->Output & OUTPUT_CRT) pScrni->monitor->DDC = GeodeDoDDC(pScrni, pGeode->pEnt->index); else pScrni->monitor->DDC = NULL; |