18c2ecf20Sopenharmony_ci/* 28c2ecf20Sopenharmony_ci * This file is subject to the terms and conditions of the GNU General Public 38c2ecf20Sopenharmony_ci * License. See the file "COPYING" in the main directory of this archive 48c2ecf20Sopenharmony_ci * for more details. 58c2ecf20Sopenharmony_ci * 68c2ecf20Sopenharmony_ci * Copyright (C) 2004 by Ralf Baechle 78c2ecf20Sopenharmony_ci * 88c2ecf20Sopenharmony_ci * RTC routines for PC style attached Dallas chip with ARC epoch. 98c2ecf20Sopenharmony_ci */ 108c2ecf20Sopenharmony_ci#ifndef __ASM_MACH_RM_MC146818RTC_H 118c2ecf20Sopenharmony_ci#define __ASM_MACH_RM_MC146818RTC_H 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_ci#ifdef CONFIG_CPU_BIG_ENDIAN 148c2ecf20Sopenharmony_ci#define mc146818_decode_year(year) ((year) < 70 ? (year) + 2000 : (year) + 1900) 158c2ecf20Sopenharmony_ci#else 168c2ecf20Sopenharmony_ci#define mc146818_decode_year(year) ((year) + 1980) 178c2ecf20Sopenharmony_ci#endif 188c2ecf20Sopenharmony_ci 198c2ecf20Sopenharmony_ci#include <asm/mach-generic/mc146818rtc.h> 208c2ecf20Sopenharmony_ci 218c2ecf20Sopenharmony_ci#endif /* __ASM_MACH_RM_MC146818RTC_H */ 22