Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/prep/isa Set mcclock to BCD mode as before. Tested ...
details: https://anonhg.NetBSD.org/src/rev/eaa4fc963cfb
branches: trunk
changeset: 555652:eaa4fc963cfb
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Mon Nov 24 06:23:33 2003 +0000
description:
Set mcclock to BCD mode as before. Tested on 7248-133 43P.
diffstat:
sys/arch/prep/isa/mcclock_isa.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (30 lines):
diff -r 67db5a1f99fb -r eaa4fc963cfb sys/arch/prep/isa/mcclock_isa.c
--- a/sys/arch/prep/isa/mcclock_isa.c Mon Nov 24 06:20:40 2003 +0000
+++ b/sys/arch/prep/isa/mcclock_isa.c Mon Nov 24 06:23:33 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mcclock_isa.c,v 1.10 2003/11/01 22:54:46 tsutsui Exp $ */
+/* $NetBSD: mcclock_isa.c,v 1.11 2003/11/24 06:23:33 tsutsui Exp $ */
/*
* Copyright (c) 1995, 1996 Carnegie-Mellon University.
@@ -28,7 +28,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mcclock_isa.c,v 1.10 2003/11/01 22:54:46 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mcclock_isa.c,v 1.11 2003/11/24 06:23:33 tsutsui Exp $");
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
@@ -148,8 +148,11 @@
sc->sc_year0 = 1900;
sc->sc_mcread = mcclock_isa_read;
sc->sc_mcwrite = mcclock_isa_write;
+ sc->sc_flag = MC146818_BCD;
mc146818_attach(sc);
+ (*sc->sc_mcwrite)(sc, MC_REGB, MC_REGB_24HR);
+
todr_attach(&sc->sc_handle);
}
Home |
Main Index |
Thread Index |
Old Index