Subject: Re: 860 RTC support

From: Dan Malek <[email-masked]>
Date: Wed, 18 Apr 2001 17:20:01 -0400

Steven Hein wrote:

> Is there a working method (to read the RTC value at boot-time)?

The MPC8xx real-time clock is implicitly managed in the kernel.
At boot time, the register is read and stored in the kernel
time.  Whenever the kernel time is updated, the hardware register
is also updated.  Since the 8xx is simply a 32-bit register
access with an update rate that matches the kernel time, I
chose to do it this way.

If you provide the appropriate crystal and battery to the 8xx,
you get a non-volatile time of day clock.

Most implementations seem to choose an external time of day clock
that is already managed by one of the RTC drivers.

	-- Dan

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/