| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* | 
|  | 2 | * linux/include/asm-sh/timex.h | 
|  | 3 | * | 
|  | 4 | * sh architecture timex specifications | 
|  | 5 | */ | 
|  | 6 | #ifndef __ASM_SH_TIMEX_H | 
|  | 7 | #define __ASM_SH_TIMEX_H | 
|  | 8 |  | 
| Paul Mundt | 8152a74 | 2009-12-29 11:09:30 +0900 | [diff] [blame] | 9 | /* | 
|  | 10 | * Only parts using the legacy CPG code for their clock framework | 
|  | 11 | * implementation need to define their own Pclk value. If provided, this | 
|  | 12 | * can be used for accurately setting CLOCK_TICK_RATE, otherwise we | 
|  | 13 | * simply fall back on the i8253 PIT value. | 
|  | 14 | */ | 
|  | 15 | #ifdef CONFIG_SH_PCLK_FREQ | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 16 | #define CLOCK_TICK_RATE		(CONFIG_SH_PCLK_FREQ / 4) /* Underlying HZ */ | 
| Paul Mundt | 8152a74 | 2009-12-29 11:09:30 +0900 | [diff] [blame] | 17 | #else | 
|  | 18 | #define CLOCK_TICK_RATE		1193180 | 
|  | 19 | #endif | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 20 |  | 
| Paul Mundt | f8f06bc | 2009-06-14 23:21:54 +0900 | [diff] [blame] | 21 | #include <asm-generic/timex.h> | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 22 |  | 
|  | 23 | #endif /* __ASM_SH_TIMEX_H */ |