diff options
author | Kim Phillips <kim.phillips@freescale.com> | 2006-09-26 17:46:37 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-10-02 17:48:47 +1000 |
commit | 7a69af63e788a324d162201a0b23df41bcf158dd (patch) | |
tree | b25e776a04eedd122594d75841dd30b4419657b0 /include/asm-powerpc | |
parent | 2bf118197cb4d9a5e7a9e45b5b007235fdc9f402 (diff) | |
download | lwn-7a69af63e788a324d162201a0b23df41bcf158dd.tar.gz lwn-7a69af63e788a324d162201a0b23df41bcf158dd.zip |
[POWERPC] Add powerpc get/set_rtc_time interface to new generic rtc class
Add powerpc get/set_rtc_time interface to new generic rtc class. This
abstracts rtc chip specific code from the platform code for rtc-over-i2c
platforms. Specific RTC chip support is now configured under
Device Drivers -> Real Time Clock. Setting time of day from the RTC
on startup is also configurable.
this time without the potentially platform breaking initcall.
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include/asm-powerpc')
-rw-r--r-- | include/asm-powerpc/time.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/asm-powerpc/time.h b/include/asm-powerpc/time.h index 5785ac4737b5..b051d4c88c3b 100644 --- a/include/asm-powerpc/time.h +++ b/include/asm-powerpc/time.h @@ -39,6 +39,10 @@ extern void generic_calibrate_decr(void); extern void wakeup_decrementer(void); extern void snapshot_timebase(void); +#ifdef CONFIG_RTC_CLASS +extern int __init rtc_class_hookup(void); +#endif + /* Some sane defaults: 125 MHz timebase, 1GHz processor */ extern unsigned long ppc_proc_freq; #define DEFAULT_PROC_FREQ (DEFAULT_TB_FREQ * 8) @@ -234,4 +238,4 @@ extern void snapshot_timebases(void); #endif #endif /* __KERNEL__ */ -#endif /* __PPC64_TIME_H */ +#endif /* __POWERPC_TIME_H */ |