diff options
author | Y.C. Chen <yc_chen@aspeedtech.com> | 2009-01-08 17:03:19 +0800 |
---|---|---|
committer | Y.C. Chen <yc_chen@aspeedtech.com> | 2009-01-08 17:03:19 +0800 |
commit | 1ca09bad07528d32db406998e8b6176989f29216 (patch) | |
tree | 6f2a480605a977fd5d705ad1f2e65658e20cf2f9 /src/ast_2dtool.c | |
parent | 241d411e770c36b725cc72c1cd5e52932a8cf460 (diff) |
Support AST2200/2150
Diffstat (limited to 'src/ast_2dtool.c')
-rw-r--r-- | src/ast_2dtool.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/ast_2dtool.c b/src/ast_2dtool.c index 39fa46c..f9d6b97 100644 --- a/src/ast_2dtool.c +++ b/src/ast_2dtool.c @@ -189,6 +189,22 @@ bEnableCMDQ(ScrnInfoPtr pScrn, ASTRecPtr pAST) Bool bEnable2D(ScrnInfoPtr pScrn, ASTRecPtr pAST) { + ULONG ulData; + + switch (pAST->jChipType) + { + case AST2100: + case AST1100: + case AST2200: + case AST2150: + *(ULONG *) (pAST->MMIOVirtualAddr + 0xF004) = 0x1e6e0000; + *(ULONG *) (pAST->MMIOVirtualAddr + 0xF000) = 0x1; + + ulData = *(ULONG *) (pAST->MMIOVirtualAddr + 0x1200c); + *(ULONG *) (pAST->MMIOVirtualAddr + 0x1200c) = (ulData & 0xFFFFFFFD); + break; + } + SetIndexRegMask(CRTC_PORT, 0xA4, 0xFE, 0x01); /* enable 2D */ if (!bInitCMDQInfo(pScrn, pAST)) |