diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2007-12-12 20:37:32 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2007-12-12 20:37:32 +0000 |
commit | 6e41bba807f737eee6ca49985501c08e70c61372 (patch) | |
tree | 406f446f23205b7012a2ed813ca4fbf2069401a5 | |
parent | 505a4efdb7e5603e270cb7a7f563cd858af84f7c (diff) |
Disable the built-in speaker when initializing the chip, before my
neighbours start visiting me with large axes.
-rw-r--r-- | sys/arch/aviion/dev/dart.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/arch/aviion/dev/dart.c b/sys/arch/aviion/dev/dart.c index ccbca07b568..c21cb48d54b 100644 --- a/sys/arch/aviion/dev/dart.c +++ b/sys/arch/aviion/dev/dart.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dart.c,v 1.1 2006/05/09 18:13:32 miod Exp $ */ +/* $OpenBSD: dart.c,v 1.2 2007/12/12 20:37:31 miod Exp $ */ /* * Mach Operating System @@ -43,6 +43,7 @@ #include <machine/av400.h> #include <aviion/dev/sysconreg.h> #include <aviion/dev/dartreg.h> +#define SPKRDIS 0x10 /* disable speaker on OP3 */ #include <aviion/dev/dartvar.h> #ifdef DDB @@ -175,9 +176,7 @@ dart_common_attach(struct dartsoftc *sc) dart_write(sc, DART_ACR, BDSET2 | CCLK16 | IPDCDIB | IPDCDIA); #endif dart_write(sc, DART_IMR, sc->sc_sv_reg->sv_imr); -#if 0 - dart_write(sc, DART_OPCR, OPSET); -#endif + dart_write(sc, DART_OPCR, OPSET | SPKRDIS); #if 0 dart_write(sc, DART_IVR, SYSCON_VECT + SYSCV_SCC); #endif |