summaryrefslogtreecommitdiff
path: root/src/atipreinit.c
diff options
context:
space:
mode:
authorGeorge Sapountzis <gsap7@yahoo.gr>2008-02-08 19:06:41 +0200
committerGeorge Sapountzis <gsap7@yahoo.gr>2008-02-08 19:06:41 +0200
commit9f33218c80f5a6d6d9464aa3db8ae25a4759f351 (patch)
tree82b777fae9d06a881536d53ba52e10118b9ce8a7 /src/atipreinit.c
parent8cd5a465a03834b4b2f3a19f8d36fc9d2e18c6d4 (diff)
mach64: minor cosmetic, LCD panel id
Diffstat (limited to 'src/atipreinit.c')
-rw-r--r--src/atipreinit.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/atipreinit.c b/src/atipreinit.c
index 0b0e8ad9..d980b958 100644
--- a/src/atipreinit.c
+++ b/src/atipreinit.c
@@ -654,7 +654,6 @@ ATIPreInit
#endif /* AVOID_CPIO */
/* Finish private area initialisation */
- pATI->LCDPanelID = -1;
pATI->nFIFOEntries = 16; /* For now */
/* Finish probing the adapter */
@@ -739,7 +738,16 @@ ATIPreInit
if (pATI->Chip >= ATI_CHIP_264CT)
{
pATI->MemoryType = GetBits(IOValue, CFG_MEM_TYPE_T);
+ }
+ else
+ {
+ pATI->MemoryType = GetBits(IOValue, CFG_MEM_TYPE);
+ }
+
+ pATI->LCDPanelID = -1;
+ if (pATI->Chip >= ATI_CHIP_264CT)
+ {
/* Get LCD panel id */
if (pATI->Chip == ATI_CHIP_264LT)
{
@@ -807,10 +815,6 @@ ATIPreInit
pATI->OptionPanelDisplay = FALSE;
}
}
- else
- {
- pATI->MemoryType = GetBits(IOValue, CFG_MEM_TYPE);
- }
/* Get DAC type */
pATI->DAC = GetBits(inr(DAC_CNTL), DAC_TYPE);