blob: 145bce096fe9b036573bc0d930c8b8323a697a03 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
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 Bogendoerfer49fa3c02007-02-03 14:06:10 +010010#ifndef __ASM_MACH_RM_MC146818RTC_H
11#define __ASM_MACH_RM_MC146818RTC_H
Linus Torvalds1da177e2005-04-16 15:20:36 -070012
Ralf Baechle07c0d742007-03-01 15:29:25 +000013#ifdef CONFIG_CPU_BIG_ENDIAN
Thomas Bogendoerfer49fa3c02007-02-03 14:06:10 +010014#define mc146818_decode_year(year) ((year) < 70 ? (year) + 2000 : (year) + 1900)
15#else
Linus Torvalds1da177e2005-04-16 15:20:36 -070016#define mc146818_decode_year(year) ((year) + 1980)
Thomas Bogendoerfer49fa3c02007-02-03 14:06:10 +010017#endif
Linus Torvalds1da177e2005-04-16 15:20:36 -070018
19#include_next <mc146818rtc.h>
20
Thomas Bogendoerfer49fa3c02007-02-03 14:06:10 +010021#endif /* __ASM_MACH_RM_MC146818RTC_H */