Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/hpcmips/tx Off LCD power when serial console.
details: https://anonhg.NetBSD.org/src/rev/fdc1e2c48c0c
branches: trunk
changeset: 479861:fdc1e2c48c0c
user: uch <uch%NetBSD.org@localhost>
date: Thu Dec 23 16:56:16 1999 +0000
description:
Off LCD power when serial console.
diffstat:
sys/arch/hpcmips/tx/tx3912video.c | 14 ++++++++++++--
1 files changed, 12 insertions(+), 2 deletions(-)
diffs (35 lines):
diff -r a982093b93bd -r fdc1e2c48c0c sys/arch/hpcmips/tx/tx3912video.c
--- a/sys/arch/hpcmips/tx/tx3912video.c Thu Dec 23 16:39:56 1999 +0000
+++ b/sys/arch/hpcmips/tx/tx3912video.c Thu Dec 23 16:56:16 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tx3912video.c,v 1.3 1999/12/12 17:04:55 uch Exp $ */
+/* $NetBSD: tx3912video.c,v 1.4 1999/12/23 16:56:16 uch Exp $ */
/*
* Copyright (c) 1999, by UCHIYAMA Yasushi
@@ -95,14 +95,24 @@
struct tx3912video_softc *sc = (void*)self;
tx_chipset_tag_t tc = ta->ta_tc;
struct fb_attach_args fba;
+ txreg_t reg;
printf("\n");
sc->sc_fbaddr = framebuffer;
sc->sc_fbsize = framebuffersize;
printf("TMPR3912 video module [");
tx3912video_fbdepth(tc, 1);
- printf("] frame buffer: 0x%08x-0x%08x\n", sc->sc_fbaddr,
+ printf("] frame buffer: 0x%08x-0x%08x", sc->sc_fbaddr,
sc->sc_fbaddr + sc->sc_fbsize);
+
+ if (bootinfo->bi_cnuse & BI_CNUSE_SERIAL) {
+ printf("disabled.");
+ reg = tx_conf_read(tc, TX3912_VIDEOCTRL1_REG);
+ reg &= ~(TX3912_VIDEOCTRL1_DISPON |
+ TX3912_VIDEOCTRL1_ENVID);
+ tx_conf_write(tc, TX3912_VIDEOCTRL1_REG, reg);
+ }
+ printf("\n");
/* Attach frame buffer device */
#if NFB > 0
Home |
Main Index |
Thread Index |
Old Index