Subject: CVS commit: src/sys/arch/mips/alchemy/dev
To: None <source-changes@NetBSD.org>
From: Garrett D'Amore <gdamore@netbsd.org>
List: source-changes
Date: 03/09/2006 20:42:18
Module Name: src
Committed By: gdamore
Date: Thu Mar 9 20:42:18 UTC 2006
Modified Files:
src/sys/arch/mips/alchemy/dev: aurtc.c
Log Message:
Fix the RTC so that the AU1550 keeps accurate time. The RTC is taken from
the TOY register, which is presumed to be seconds since Jan. 1 2000.
For now I'm assuming the trim divider is 32K, which makes 1 tick per sec.
This is true for the DBAU1550 board at least. Other boards might need to
initialize a reasonable trim counter and establish the 32KHz oscillator.
In any case, this code is *no worse* on older systems than what was there
before.
To generate a diff of this commit:
cvs rdiff -r1.7 -r1.8 src/sys/arch/mips/alchemy/dev/aurtc.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.