diff options
| author | Geert Uytterhoeven <geert@linux-m68k.org> | 2003-07-25 19:37:35 -0700 |
|---|---|---|
| committer | Jens Axboe <axboe@suse.de> | 2003-07-25 19:37:35 -0700 |
| commit | e22596b75727dbf6c28f243534d43c854e0f8ad5 (patch) | |
| tree | 74aa402f810766be4f3a4c43cede8eb4a4dee689 /include | |
| parent | bc12135d131aea56830acd07a5188b006e28df0a (diff) | |
[PATCH] M68k RTC updates
M68k: Use genrtc on all m68k platforms
Diffstat (limited to 'include')
| -rw-r--r-- | include/asm-m68k/mc146818rtc.h | 27 |
1 files changed, 1 insertions, 26 deletions
diff --git a/include/asm-m68k/mc146818rtc.h b/include/asm-m68k/mc146818rtc.h index 0fe23b18252d..8948746c2515 100644 --- a/include/asm-m68k/mc146818rtc.h +++ b/include/asm-m68k/mc146818rtc.h @@ -4,37 +4,12 @@ #ifndef _ASM_MC146818RTC_H #define _ASM_MC146818RTC_H -#include <linux/config.h> -#include <asm/atarihw.h> - #ifdef CONFIG_ATARI /* RTC in Atari machines */ #include <asm/atarihw.h> -#include <asm/atariints.h> -#include <asm/io.h> -#define RTC_HAS_IRQ (ATARIHW_PRESENT(TT_MFP)) -#define RTC_IRQ IRQ_TT_MFP_RTC -#define RTC_IRQ_FLAGS IRQ_TYPE_FAST -#define RTC_PORT(x) (TT_RTC_BAS + 2*(x)) -#define RTC_ALWAYS_BCD 0 /* TOS uses binary mode, Linux should be able - * to deal with both modes */ -#define RTC_CHECK_DRIVER_INIT() (MACH_IS_ATARI && ATARIHW_PRESENT(TT_CLK)) -#define RTC_MACH_INIT() \ - do { \ - epoch = atari_rtc_year_offset + 1900; \ - if (RTC_HAS_IRQ) \ - /* select RTC int on H->L edge */ \ - tt_mfp.active_edge &= ~0x40; \ - } while(0) -#define RTC_MACH_EXIT() - -/* On Atari, the year was stored with base 1970 in old TOS versions (before - * 3.06). Later, Atari recognized that this broke leap year recognition, and - * changed the base to 1968. Medusa and Hades always use the new version. */ -#define RTC_CENTURY_SWITCH -1 /* no century switch */ -#define RTC_MINYEAR epoch +#define RTC_PORT(x) (TT_RTC_BAS + 2*(x)) #define CMOS_READ(addr) ({ \ atari_outb_p((addr),RTC_PORT(0)); \ |
