At last enable the real time clock again on acorn32 !! thanks a lot to Mike
Pumford for the patches.
This commit is contained in:
parent
3af1f00423
commit
fe0ecbaede
|
@ -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 @@ rtc_write(arg, rtc)
|
|||
|
||||
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 @@ rtc_write(arg, rtc)
|
|||
return(0);
|
||||
if (cmos_write(RTC_ADDR_CENT, rtc->rtc_cen))
|
||||
return(0);
|
||||
*/
|
||||
printf("rtc_write: Currently disabled\n");
|
||||
|
||||
return(1);
|
||||
}
|
||||
|
||||
|
|
|
@ -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 @@ resettodr()
|
|||
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);
|
||||
|
|
Loading…
Reference in New Issue