1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0 */ 2*4882a593Smuzhiyun /* 3*4882a593Smuzhiyun * linux/include/asm-sh/timex.h 4*4882a593Smuzhiyun * 5*4882a593Smuzhiyun * sh architecture timex specifications 6*4882a593Smuzhiyun */ 7*4882a593Smuzhiyun #ifndef __ASM_SH_TIMEX_H 8*4882a593Smuzhiyun #define __ASM_SH_TIMEX_H 9*4882a593Smuzhiyun 10*4882a593Smuzhiyun /* 11*4882a593Smuzhiyun * Only parts using the legacy CPG code for their clock framework 12*4882a593Smuzhiyun * implementation need to define their own Pclk value. If provided, this 13*4882a593Smuzhiyun * can be used for accurately setting CLOCK_TICK_RATE, otherwise we 14*4882a593Smuzhiyun * simply fall back on the i8253 PIT value. 15*4882a593Smuzhiyun */ 16*4882a593Smuzhiyun #ifdef CONFIG_SH_PCLK_FREQ 17*4882a593Smuzhiyun #define CLOCK_TICK_RATE (CONFIG_SH_PCLK_FREQ / 4) /* Underlying HZ */ 18*4882a593Smuzhiyun #else 19*4882a593Smuzhiyun #define CLOCK_TICK_RATE 1193180 20*4882a593Smuzhiyun #endif 21*4882a593Smuzhiyun 22*4882a593Smuzhiyun #include <asm-generic/timex.h> 23*4882a593Smuzhiyun 24*4882a593Smuzhiyun #endif /* __ASM_SH_TIMEX_H */ 25