3 * Copyright Richard Zidlicky
4 * implementation details for genrtc/q40rtc driver
6 /* permission is hereby granted to copy, modify and redistribute this code
7 * in terms of the GNU Library General Public License, Version 2 or later,
16 #include <linux/config.h>
17 #include <linux/rtc.h>
18 #include <linux/delay.h>
19 #include <asm/machdep.h>
21 #define RTC_PIE 0x40 /* periodic interrupt enable */
22 #define RTC_AIE 0x20 /* alarm interrupt enable */
23 #define RTC_UIE 0x10 /* update-finished interrupt enable */
25 extern void gen_rtc_interrupt(unsigned long);
27 /* some dummy definitions */
28 #define RTC_SQWE 0x08 /* enable square-wave output */
29 #define RTC_DM_BINARY 0x04 /* all time/date values are BCD if clear */
30 #define RTC_24H 0x02 /* 24 hour mode - else hours bit 7 means pm */
31 #define RTC_DST_EN 0x01 /* auto switch DST - works f. USA only */
34 #endif /* __KERNEL__ */
36 #endif /* _ASM__RTC_H */