diff options
author | 2007-12-12 20:37:31 +0000 | |
---|---|---|
committer | 2007-12-12 20:37:31 +0000 | |
commit | 98712f81aaebb651477e48542ef3c36e21efcf17 (patch) | |
tree | e101e5bc15fcfd0bf637311d591e68cbaafaba41 | |
parent | Remove possible trailing \r from the PROM commandline arguments. (diff) | |
download | wireguard-openbsd-98712f81aaebb651477e48542ef3c36e21efcf17.tar.xz wireguard-openbsd-98712f81aaebb651477e48542ef3c36e21efcf17.zip |
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 61dfdeb1347..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.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 |