Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/sparc/dev Turn on the video timing which is not alw...



details:   https://anonhg.NetBSD.org/src/rev/8bafb5524a87
branches:  trunk
changeset: 473076:8bafb5524a87
user:      pk <pk%NetBSD.org@localhost>
date:      Wed May 19 08:31:42 1999 +0000

description:
Turn on the video timing which is not always done by the PROM (e.g. if we're
not the console).

diffstat:

 sys/arch/sparc/dev/bwtwo.c |  11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diffs (25 lines):

diff -r 0edc237ab216 -r 8bafb5524a87 sys/arch/sparc/dev/bwtwo.c
--- a/sys/arch/sparc/dev/bwtwo.c        Wed May 19 07:50:06 1999 +0000
+++ b/sys/arch/sparc/dev/bwtwo.c        Wed May 19 08:31:42 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bwtwo.c,v 1.40 1998/09/07 07:15:51 pk Exp $ */
+/*     $NetBSD: bwtwo.c,v 1.41 1999/05/19 08:31:42 pk Exp $ */
 
 /*-
  * Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
@@ -618,7 +618,14 @@
 {
 
        if (enable)
-               sc->sc_reg->fbc_ctrl |= FBC_VENAB;
+               /*
+                * If the we're the console the PROM will have taken care
+                * of the FBC_TIMING bit and video control parameters. We
+                * simply turn on FBC_TIMING; in case other video parameters
+                * are necessary, here is a set read from an ELC:
+                * [0xbb,0x2b,0x4,0x14,0xae,0x3,0xa8,0x24,0x1,0x5,0xff,0x1]
+                */
+               sc->sc_reg->fbc_ctrl |= FBC_VENAB | FBC_TIMING;
        else
                sc->sc_reg->fbc_ctrl &= ~FBC_VENAB;
 }



Home | Main Index | Thread Index | Old Index