Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/iomd At last enable the real time clock again o...
details: https://anonhg.NetBSD.org/src/rev/39e06145cab7
branches: trunk
changeset: 521780:39e06145cab7
user: reinoud <reinoud%NetBSD.org@localhost>
date: Tue Feb 05 14:36:35 2002 +0000
description:
At last enable the real time clock again on acorn32 !! thanks a lot to Mike
Pumford for the patches.
diffstat:
sys/arch/arm/iomd/rtc.c | 9 ++++-----
sys/arch/arm/iomd/todclock.c | 6 +-----
2 files changed, 5 insertions(+), 10 deletions(-)
diffs (53 lines):
diff -r 45f180e66f58 -r 39e06145cab7 sys/arch/arm/iomd/rtc.c
--- a/sys/arch/arm/iomd/rtc.c Tue Feb 05 14:11:34 2002 +0000
+++ b/sys/arch/arm/iomd/rtc.c Tue Feb 05 14:36:35 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rtc.c,v 1.1 2001/10/05 22:27:42 reinoud Exp $ */
+/* $NetBSD: rtc.c,v 1.2 2002/02/05 14:36:35 reinoud Exp $ */
/*
* Copyright (c) 1994-1996 Mark Brinicombe.
@@ -178,11 +178,11 @@
buff[0] = 1;
-/* buff[1] = dectohexdec(rtc->rtc_centi);
+ buff[1] = dectohexdec(rtc->rtc_centi);
buff[2] = dectohexdec(rtc->rtc_sec);
buff[3] = dectohexdec(rtc->rtc_min);
buff[4] = dectohexdec(rtc->rtc_hour) & 0x3f;
- buff[5] = dectohexdec(rtc->rtc_day);
+ buff[5] = dectohexdec(rtc->rtc_day) | ((rtc->rtc_year & 3) << 6);
buff[6] = dectohexdec(rtc->rtc_mon);
if (iic_control(RTC_Write, buff, 7))
@@ -192,8 +192,7 @@
return(0);
if (cmos_write(RTC_ADDR_CENT, rtc->rtc_cen))
return(0);
-*/
- printf("rtc_write: Currently disabled\n");
+
return(1);
}
diff -r 45f180e66f58 -r 39e06145cab7 sys/arch/arm/iomd/todclock.c
--- a/sys/arch/arm/iomd/todclock.c Tue Feb 05 14:11:34 2002 +0000
+++ b/sys/arch/arm/iomd/todclock.c Tue Feb 05 14:36:35 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: todclock.c,v 1.1 2001/10/05 22:27:42 reinoud Exp $ */
+/* $NetBSD: todclock.c,v 1.2 2002/02/05 14:36:35 reinoud Exp $ */
/*
* Copyright (c) 1994-1997 Mark Brinicombe.
@@ -247,10 +247,6 @@
rtc.rtc_centi =
rtc.rtc_micro = 0;
- printf("resettod: %02d/%02d/%02d%02d %02d:%02d:%02d\n", rtc.rtc_day,
- rtc.rtc_mon, rtc.rtc_cen, rtc.rtc_year, rtc.rtc_hour,
- rtc.rtc_min, rtc.rtc_sec);
-
s = splclock();
todclock_sc->sc_rtc_write(todclock_sc->sc_rtc_arg, &rtc);
(void)splx(s);
Home |
Main Index |
Thread Index |
Old Index