1*b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */ 2f15cbe6fSPaul Mundt /* 3f15cbe6fSPaul Mundt * linux/include/asm-sh/timex.h 4f15cbe6fSPaul Mundt * 5f15cbe6fSPaul Mundt * sh architecture timex specifications 6f15cbe6fSPaul Mundt */ 7f15cbe6fSPaul Mundt #ifndef __ASM_SH_TIMEX_H 8f15cbe6fSPaul Mundt #define __ASM_SH_TIMEX_H 9f15cbe6fSPaul Mundt 108152a74bSPaul Mundt /* 118152a74bSPaul Mundt * Only parts using the legacy CPG code for their clock framework 128152a74bSPaul Mundt * implementation need to define their own Pclk value. If provided, this 138152a74bSPaul Mundt * can be used for accurately setting CLOCK_TICK_RATE, otherwise we 148152a74bSPaul Mundt * simply fall back on the i8253 PIT value. 158152a74bSPaul Mundt */ 168152a74bSPaul Mundt #ifdef CONFIG_SH_PCLK_FREQ 17f15cbe6fSPaul Mundt #define CLOCK_TICK_RATE (CONFIG_SH_PCLK_FREQ / 4) /* Underlying HZ */ 188152a74bSPaul Mundt #else 198152a74bSPaul Mundt #define CLOCK_TICK_RATE 1193180 208152a74bSPaul Mundt #endif 21f15cbe6fSPaul Mundt 22f8f06bc7SPaul Mundt #include <asm-generic/timex.h> 23f15cbe6fSPaul Mundt 24f15cbe6fSPaul Mundt #endif /* __ASM_SH_TIMEX_H */ 25