diff options
Diffstat (limited to 'include/asm-mips/mach-dec')
-rw-r--r-- | include/asm-mips/mach-dec/mc146818rtc.h | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/include/asm-mips/mach-dec/mc146818rtc.h b/include/asm-mips/mach-dec/mc146818rtc.h index a326f451253b..6d37a5675803 100644 --- a/include/asm-mips/mach-dec/mc146818rtc.h +++ b/include/asm-mips/mach-dec/mc146818rtc.h | |||
@@ -3,7 +3,7 @@ | |||
3 | * | 3 | * |
4 | * Copyright (C) 1998, 2001 by Ralf Baechle | 4 | * Copyright (C) 1998, 2001 by Ralf Baechle |
5 | * Copyright (C) 1998 by Harald Koerfgen | 5 | * Copyright (C) 1998 by Harald Koerfgen |
6 | * Copyright (C) 2002 Maciej W. Rozycki | 6 | * Copyright (C) 2002, 2005 Maciej W. Rozycki |
7 | * | 7 | * |
8 | * This program is free software; you can redistribute it and/or | 8 | * This program is free software; you can redistribute it and/or |
9 | * modify it under the terms of the GNU General Public License | 9 | * modify it under the terms of the GNU General Public License |
@@ -14,23 +14,18 @@ | |||
14 | #define __ASM_MIPS_DEC_RTC_DEC_H | 14 | #define __ASM_MIPS_DEC_RTC_DEC_H |
15 | 15 | ||
16 | #include <linux/types.h> | 16 | #include <linux/types.h> |
17 | |||
18 | #include <asm/addrspace.h> | 17 | #include <asm/addrspace.h> |
18 | #include <asm/dec/system.h> | ||
19 | 19 | ||
20 | extern volatile u8 *dec_rtc_base; | 20 | extern volatile u8 *dec_rtc_base; |
21 | extern unsigned long dec_kn_slot_size; | ||
22 | 21 | ||
23 | #define RTC_PORT(x) CPHYSADDR(dec_rtc_base) | 22 | #define RTC_PORT(x) CPHYSADDR((long)dec_rtc_base) |
24 | #define RTC_IO_EXTENT dec_kn_slot_size | 23 | #define RTC_IO_EXTENT dec_kn_slot_size |
25 | #define RTC_IOMAPPED 0 | 24 | #define RTC_IOMAPPED 0 |
26 | #undef RTC_IRQ | 25 | #undef RTC_IRQ |
27 | 26 | ||
28 | #define RTC_DEC_YEAR 0x3f /* Where we store the real year on DECs. */ | 27 | #define RTC_DEC_YEAR 0x3f /* Where we store the real year on DECs. */ |
29 | 28 | ||
30 | #include <linux/mc146818rtc.h> | ||
31 | #include <linux/module.h> | ||
32 | #include <linux/types.h> | ||
33 | |||
34 | static inline unsigned char CMOS_READ(unsigned long addr) | 29 | static inline unsigned char CMOS_READ(unsigned long addr) |
35 | { | 30 | { |
36 | return dec_rtc_base[addr * 4]; | 31 | return dec_rtc_base[addr * 4]; |