diff options
| author | ad <ad@NetBSD.org> | 2007-07-14 17:23:21 +0000 |
|---|---|---|
| committer | ad <ad@NetBSD.org> | 2007-07-14 17:23:21 +0000 |
| commit | fc047e36ed4466ed64727187cf16581fdb3803bb (patch) | |
| tree | 649f506e89b9a88c9b0f2f54f2442b34e34bdd93 /sys/dev/dec | |
| parent | 3fc1741f680cf7d2b9c782007050ab279ad7b882 (diff) | |
Delay after bashing the chip at boot, otherwise output gets screwed up
and the console doesn't work properly.
Diffstat (limited to 'sys/dev/dec')
| -rw-r--r-- | sys/dev/dec/dz.c | 5 | ||||
| -rw-r--r-- | sys/dev/dec/dzkbd.c | 8 |
2 files changed, 8 insertions, 5 deletions
diff --git a/sys/dev/dec/dz.c b/sys/dev/dec/dz.c index 32f32cb0135..f077388c911 100644 --- a/sys/dev/dec/dz.c +++ b/sys/dev/dec/dz.c @@ -1,4 +1,4 @@ -/* $NetBSD: dz.c,v 1.26 2007/07/09 21:00:31 ad Exp $ */ +/* $NetBSD: dz.c,v 1.27 2007/07/14 17:23:21 ad Exp $ */ /* * Copyright (c) 1992, 1993 * The Regents of the University of California. All rights reserved. @@ -67,7 +67,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: dz.c,v 1.26 2007/07/09 21:00:31 ad Exp $"); +__KERNEL_RCSID(0, "$NetBSD: dz.c,v 1.27 2007/07/14 17:23:21 ad Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -175,6 +175,7 @@ dzattach(struct dz_softc *sc, struct evcnt *parent_evcnt, int consline) DZ_WRITE_BYTE(dr_dtr, 0); DZ_WRITE_BYTE(dr_break, 0); DZ_BARRIER(); + DELAY(50000); /* Initialize our softc structure. Should be done in open? */ diff --git a/sys/dev/dec/dzkbd.c b/sys/dev/dec/dzkbd.c index aa546bd936c..36f315738cc 100644 --- a/sys/dev/dec/dzkbd.c +++ b/sys/dev/dec/dzkbd.c @@ -1,4 +1,4 @@ -/* $NetBSD: dzkbd.c,v 1.17 2007/03/04 06:01:45 christos Exp $ */ +/* $NetBSD: dzkbd.c,v 1.18 2007/07/14 17:23:21 ad Exp $ */ /* * Copyright (c) 1992, 1993 @@ -45,7 +45,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: dzkbd.c,v 1.17 2007/03/04 06:01:45 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: dzkbd.c,v 1.18 2007/07/14 17:23:21 ad Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -174,8 +174,10 @@ dzkbd_attach(struct device *parent, struct device *self, void *aux) printf("\n"); - if (!isconsole) + if (!isconsole) { + DELAY(100000); lk201_init(&dzi->dzi_ks); + } /* XXX should identify keyboard ID here XXX */ /* XXX layout and the number of LED is varying XXX */ |
