Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/newsmips/newsmips Reset FDC in news5000_init() to a...



details:   https://anonhg.NetBSD.org/src/rev/dc1a4e954b10
branches:  trunk
changeset: 509142:dc1a4e954b10
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Fri Apr 27 12:55:51 2001 +0000

description:
Reset FDC in news5000_init() to avoid spurious interrupts
after booting from floppy (since we don't have fdc driver yet).

diffstat:

 sys/arch/newsmips/newsmips/news5000.c |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (19 lines):

diff -r 4f5388a74e69 -r dc1a4e954b10 sys/arch/newsmips/newsmips/news5000.c
--- a/sys/arch/newsmips/newsmips/news5000.c     Fri Apr 27 09:13:35 2001 +0000
+++ b/sys/arch/newsmips/newsmips/news5000.c     Fri Apr 27 12:55:51 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: news5000.c,v 1.7 2000/12/03 01:42:30 matt Exp $        */
+/*     $NetBSD: news5000.c,v 1.8 2001/04/27 12:55:51 tsutsui Exp $     */
 
 /*-
  * Copyright (C) 1999 SHIMIZU Ryo.  All rights reserved.
@@ -250,4 +250,9 @@
        readidrom_5000((u_char *)&idrom);
        readmicrotime = readmicrotime_5000;
        hostid = idrom.id_serial;
+
+       /* XXX reset uPD72067 FDC to avoid spurious interrupts */
+#define NEWS5000_FDC_FDOUT 0xbed20000
+#define FDO_FRST 0x04
+       *(volatile u_int8_t *)NEWS5000_FDC_FDOUT = FDO_FRST;
 }



Home | Main Index | Thread Index | Old Index