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
6 * Copyright (C) 2004 by Ralf Baechle
8 * RTC routines for PC style attached Dallas chip with ARC epoch.
10 #ifndef __ASM_MACH_RM_MC146818RTC_H
11 #define __ASM_MACH_RM_MC146818RTC_H
13 #ifdef CONFIG_CPU_BIG_ENDIAN
14 #define mc146818_decode_year(year) ((year) < 70 ? (year) + 2000 : (year) + 1900)
16 #define mc146818_decode_year(year) ((year) + 1980)
19 #include <asm/mach-generic/mc146818rtc.h>
21 #endif /* __ASM_MACH_RM_MC146818RTC_H */