linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* ATTN: todc_time.c users
@ 2001-07-20 17:36 Mark A. Greer
  0 siblings, 0 replies; only message in thread
From: Mark A. Greer @ 2001-07-20 17:36 UTC (permalink / raw)
  To: linuxppc-dev


Shortly, I will be pushing some changes to the todc files.  Basically,
I've macro-ized the tables that are currently in todc_time.c.  What this

means to you is:

1) In your xxx_setup.c file, use the new TODC_DECL() macro to
define and initialize a todc_info_t structure.  For example, if you're
using a mc146818 rtc, put TODC_DECL(TODC_TYPE_MC146818); somewhere in
your xxx_setup.c file.

2) In your xxx_setup.c file, get rid of the "todc_info = yyy;" line.

3) If you happen to use a mc146818, you need to add the following lines
to your xxx_init() routine in your xxx_setup.c file (unless you are
alread overriding the default values):

     todc_info->nvram_as0  = (u_char *)0x70;
     todc_info->nvram_data = (u_char *)0x71;

4) To add support for a new clock, you add macros in todc.h instead of a

structure in todc_time.c

These changes get rid of all the structures in todc_time.c that are
mostly wasting space.

I have made the appropriate changes to the xxx_setup.c files that are in
2_4_devel,
and tested the sandpoint and mcpn765.  If you use the todc facility you
should make the appropriate changes and test.

Mark


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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-07-20 17:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-07-20 17:36 ATTN: todc_time.c users Mark A. Greer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).