summaryrefslogtreecommitdiff
path: root/sys/arch/amiga/dev/grf_cv.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/amiga/dev/grf_cv.c')
-rw-r--r--sys/arch/amiga/dev/grf_cv.c19
1 files changed, 15 insertions, 4 deletions
diff --git a/sys/arch/amiga/dev/grf_cv.c b/sys/arch/amiga/dev/grf_cv.c
index ec5a54aca7b..2e8e0a78057 100644
--- a/sys/arch/amiga/dev/grf_cv.c
+++ b/sys/arch/amiga/dev/grf_cv.c
@@ -1,4 +1,4 @@
-/* $NetBSD: grf_cv.c,v 1.3.2.3 1995/11/10 16:27:10 chopps Exp $ */
+/* $NetBSD: grf_cv.c,v 1.5 1995/12/27 07:15:53 chopps Exp $ */
/*
* Copyright (c) 1995 Michael Teske
@@ -395,10 +395,21 @@ cv_boardinit(gp)
clockpar = compute_clock(0x3473BC0);
test = (clockpar & 0xFF00) >> 8;
- WSeq(ba, SEQ_ID_MCLK_HI, test); /* PLL N-Divider Value */
- test = clockpar & 0xFF;
- WSeq(ba, SEQ_ID_MCLK_LO, test); /* PLL M-Divider Value */
+ if (RCrt(ba, CRT_ID_REVISION) == 0x10) {
+ WSeq(ba, SEQ_ID_MCLK_HI, test); /* PLL N-Divider Value */
+
+ test = clockpar & 0xFF;
+ WSeq(ba, SEQ_ID_MCLK_LO, test); /* PLL M-Divider Value */
+
+ test = (clockpar & 0xFF00) >> 8;
+ WSeq(ba, SEQ_ID_MORE_MAGIC, test);
+ } else {
+ WSeq(ba, SEQ_ID_MCLK_HI, test); /* PLL N-Divider Value */
+
+ test = clockpar & 0xFF;
+ WSeq(ba, SEQ_ID_MCLK_LO, test); /* PLL M-Divider Value */
+ }
/* We now load an 25 MHz, 31 kHz, 640x480 standard VGA Mode. */
/* DCLK */