| 
									
										
										
										
											2005-04-16 15:20:36 -07:00
										 |  |  | /*
 | 
					
						
							|  |  |  |  * This file is subject to the terms and conditions of the GNU General Public | 
					
						
							|  |  |  |  * License.  See the file "COPYING" in the main directory of this archive | 
					
						
							|  |  |  |  * for more details. | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * Copyright (C) 2004 by Ralf Baechle | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * RTC routines for PC style attached Dallas chip with ARC epoch. | 
					
						
							|  |  |  |  */ | 
					
						
							| 
									
										
										
										
											2007-02-03 14:06:10 +01:00
										 |  |  | #ifndef __ASM_MACH_RM_MC146818RTC_H
 | 
					
						
							|  |  |  | #define __ASM_MACH_RM_MC146818RTC_H
 | 
					
						
							| 
									
										
										
										
											2005-04-16 15:20:36 -07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2007-03-01 15:29:25 +00:00
										 |  |  | #ifdef CONFIG_CPU_BIG_ENDIAN
 | 
					
						
							| 
									
										
										
										
											2007-02-03 14:06:10 +01:00
										 |  |  | #define mc146818_decode_year(year) ((year) < 70 ? (year) + 2000 : (year) + 1900)
 | 
					
						
							|  |  |  | #else
 | 
					
						
							| 
									
										
										
										
											2005-04-16 15:20:36 -07:00
										 |  |  | #define mc146818_decode_year(year) ((year) + 1980)
 | 
					
						
							| 
									
										
										
										
											2007-02-03 14:06:10 +01:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											2005-04-16 15:20:36 -07:00
										 |  |  | 
 | 
					
						
							|  |  |  | #include_next <mc146818rtc.h>
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2007-02-03 14:06:10 +01:00
										 |  |  | #endif /* __ASM_MACH_RM_MC146818RTC_H */
 |