more changes on original files
[linux-2.4.git] / arch / arm / mach-mx1ads / time.c
1 /*
2  *  linux/arch/arm/mach-mx1ads/time.c
3  *
4  *  Copyright (C) 2000-2001 Deep Blue Solutions
5  *  Copyright (C) 2002 Shane Nay (shane@minirl.com)
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License version 2 as
9  * published by the Free Software Foundation.
10  */
11 #include <linux/kernel.h>
12 #include <linux/sched.h>
13 #include <linux/init.h>
14
15 #include <asm/hardware.h>
16 #include <asm/io.h>
17
18
19 extern int (*set_rtc)(void);
20
21 /* FIXME-
22  * When we have an external RTC part,
23  * put the mapping in for that part.
24  *
25  * The internal RTC within the MX1 is not sufficient
26  * for tracking time other than time of day, or
27  * date over very short periods of time.
28  *
29  */
30
31 static int mx1ads_set_rtc(void)
32 {
33         return 0;
34 }
35
36 static int mx1ads_rtc_init(void)
37 {
38         xtime.tv_sec = 0;
39
40         set_rtc = mx1ads_set_rtc;
41
42         return 0;
43 }
44
45 __initcall(mx1ads_rtc_init);