Make sure we have at least 1 rtc device configured otherwise
inittodr() and resettodr() will not work.
This commit is contained in:
parent
88331f5ddc
commit
caddfcc9e1
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: clock.c,v 1.6 1996/06/12 20:00:21 mark Exp $ */
|
||||
/* $NetBSD: clock.c,v 1.7 1996/08/21 19:07:19 mark Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994-1996 Mark Brinicombe.
|
||||
|
@ -57,6 +57,12 @@
|
|||
#include <machine/cpu.h>
|
||||
#include <machine/rtc.h>
|
||||
|
||||
#include "rtc.h"
|
||||
|
||||
#if NRTC == 0
|
||||
#error "Need at least one RTC device for timeofday management"
|
||||
#endif
|
||||
|
||||
#define TIMER0_COUNT 20000 /* 100Hz */
|
||||
#define TIMER_FREQUENCY 20000000 /* 2MHz clock */
|
||||
#define TICKS_PER_MICROSECOND (TIMER_FREQUENCY / 10000000)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: iomd_clock.c,v 1.6 1996/06/12 20:00:21 mark Exp $ */
|
||||
/* $NetBSD: iomd_clock.c,v 1.7 1996/08/21 19:07:19 mark Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994-1996 Mark Brinicombe.
|
||||
|
@ -57,6 +57,12 @@
|
|||
#include <machine/cpu.h>
|
||||
#include <machine/rtc.h>
|
||||
|
||||
#include "rtc.h"
|
||||
|
||||
#if NRTC == 0
|
||||
#error "Need at least one RTC device for timeofday management"
|
||||
#endif
|
||||
|
||||
#define TIMER0_COUNT 20000 /* 100Hz */
|
||||
#define TIMER_FREQUENCY 20000000 /* 2MHz clock */
|
||||
#define TICKS_PER_MICROSECOND (TIMER_FREQUENCY / 10000000)
|
||||
|
|
Loading…
Reference in New Issue