diff options
author | Y.C. Chen <yc_chen@aspeedtech.com> | 2015-08-14 10:11:23 +0800 |
---|---|---|
committer | Y.C. Chen <yc_chen@aspeedtech.com> | 2015-08-14 10:11:23 +0800 |
commit | 9918d6f69ac51d9d27b074e3e490783acda68dca (patch) | |
tree | b2babefe4943db463b5fbd9b95c2403b29f70fe4 /src | |
parent | e545ab905ea120014558d6f1733d87ffde5d5d71 (diff) |
Fixed Failed to Init when ASPEED Graphics is Secondary
Diffstat (limited to 'src')
-rw-r--r-- | src/ast_driver.c | 18 |
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); |