summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorY.C. Chen <yc_chen@aspeedtech.com>2015-08-14 10:11:23 +0800
committerY.C. Chen <yc_chen@aspeedtech.com>2015-08-14 10:11:23 +0800
commit9918d6f69ac51d9d27b074e3e490783acda68dca (patch)
treeb2babefe4943db463b5fbd9b95c2403b29f70fe4
parente545ab905ea120014558d6f1733d87ffde5d5d71 (diff)
Fixed Failed to Init when ASPEED Graphics is Secondary
-rw-r--r--src/ast_driver.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/ast_driver.c b/src/ast_driver.c
index be1ac0f..b9631d4 100644
--- a/src/ast_driver.c
+++ b/src/ast_driver.c
@@ -623,15 +623,6 @@ ASTPreInit(ScrnInfoPtr pScrn, int flags)
/* Enable VGA MMIO Access */
vASTEnableVGAMMIO(pScrn);
- /* Init VGA Adapter */
- if (!xf86IsPrimaryPci(pAST->PciInfo))
- {
- ASTInitVGA(pScrn, 0);
- }
-
- vASTOpenKey(pScrn);
- bASTRegInit(pScrn);
-
/* Get Chip Type */
if (PCI_DEV_REVISION(pAST->PciInfo) >= 0x30)
pAST->jChipType = AST2400;
@@ -642,6 +633,15 @@ ASTPreInit(ScrnInfoPtr pScrn, int flags)
else
pAST->jChipType = AST2000;
+ /* Init VGA Adapter */
+ if (!xf86IsPrimaryPci(pAST->PciInfo))
+ {
+ ASTInitVGA(pScrn, 0);
+ }
+
+ vASTOpenKey(pScrn);
+ bASTRegInit(pScrn);
+
/* Get Options from Scratch */
ASTGetScratchOptions(pScrn);