Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* |
| 2 | * This file is subject to the terms and conditions of the GNU General Public |
| 3 | * License. See the file "COPYING" in the main directory of this archive |
| 4 | * for more details. |
| 5 | * |
| 6 | * Copyright (C) 2004 by Ralf Baechle |
| 7 | * |
| 8 | * RTC routines for PC style attached Dallas chip with ARC epoch. |
| 9 | */ |
Thomas Bogendoerfer | 49fa3c0 | 2007-02-03 14:06:10 +0100 | [diff] [blame] | 10 | #ifndef __ASM_MACH_RM_MC146818RTC_H |
| 11 | #define __ASM_MACH_RM_MC146818RTC_H |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 12 | |
Ralf Baechle | 07c0d74 | 2007-03-01 15:29:25 +0000 | [diff] [blame] | 13 | #ifdef CONFIG_CPU_BIG_ENDIAN |
Thomas Bogendoerfer | 49fa3c0 | 2007-02-03 14:06:10 +0100 | [diff] [blame] | 14 | #define mc146818_decode_year(year) ((year) < 70 ? (year) + 2000 : (year) + 1900) |
| 15 | #else |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 16 | #define mc146818_decode_year(year) ((year) + 1980) |
Thomas Bogendoerfer | 49fa3c0 | 2007-02-03 14:06:10 +0100 | [diff] [blame] | 17 | #endif |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 18 | |
| 19 | #include_next <mc146818rtc.h> |
| 20 | |
Thomas Bogendoerfer | 49fa3c0 | 2007-02-03 14:06:10 +0100 | [diff] [blame] | 21 | #endif /* __ASM_MACH_RM_MC146818RTC_H */ |