diff options
Diffstat (limited to 'src/ast_vgatool.c')
-rw-r--r-- | src/ast_vgatool.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/ast_vgatool.c b/src/ast_vgatool.c index a464a01..14e0a75 100644 --- a/src/ast_vgatool.c +++ b/src/ast_vgatool.c @@ -24,6 +24,7 @@ #include <config.h> #endif #include "xf86.h" +#include "xf86_ansic.h" #include "xf86_OSproc.h" #include "xf86Resources.h" #include "xf86RAC.h" @@ -128,7 +129,13 @@ GetMaxDCLK(ScrnInfoPtr pScrn) *(ULONG *) (pAST->MMIOVirtualAddr + 0xF004) = 0x1e6e0000; *(ULONG *) (pAST->MMIOVirtualAddr + 0xF000) = 0x00000001; - + + *(ULONG *) (pAST->MMIOVirtualAddr + 0x10100) = 0x000000A8; + + do { + ; + } while (*(volatile ULONG *) (pAST->MMIOVirtualAddr + 0x10100) != 0x000000A8); + /* Get BusWidth */ ulData = *(ULONG * ) (pAST->MMIOVirtualAddr + 0x10004); if (ulData & 0x40) @@ -137,9 +144,7 @@ GetMaxDCLK(ScrnInfoPtr pScrn) ulDRAMBusWidth = 32; /* Get MCLK */ - { - *(ULONG *) (pAST->MMIOVirtualAddr + 0x10100) = 0x000000A8; - + { ulData = *(ULONG *) (pAST->MMIOVirtualAddr + 0x10120); ulData2 = *(ULONG *) (pAST->MMIOVirtualAddr + 0x10170); if (ulData2 & 0x2000) |