18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * linux/include/asm-sh/timex.h 48c2ecf20Sopenharmony_ci * 58c2ecf20Sopenharmony_ci * sh architecture timex specifications 68c2ecf20Sopenharmony_ci */ 78c2ecf20Sopenharmony_ci#ifndef __ASM_SH_TIMEX_H 88c2ecf20Sopenharmony_ci#define __ASM_SH_TIMEX_H 98c2ecf20Sopenharmony_ci 108c2ecf20Sopenharmony_ci/* 118c2ecf20Sopenharmony_ci * Only parts using the legacy CPG code for their clock framework 128c2ecf20Sopenharmony_ci * implementation need to define their own Pclk value. If provided, this 138c2ecf20Sopenharmony_ci * can be used for accurately setting CLOCK_TICK_RATE, otherwise we 148c2ecf20Sopenharmony_ci * simply fall back on the i8253 PIT value. 158c2ecf20Sopenharmony_ci */ 168c2ecf20Sopenharmony_ci#ifdef CONFIG_SH_PCLK_FREQ 178c2ecf20Sopenharmony_ci#define CLOCK_TICK_RATE (CONFIG_SH_PCLK_FREQ / 4) /* Underlying HZ */ 188c2ecf20Sopenharmony_ci#else 198c2ecf20Sopenharmony_ci#define CLOCK_TICK_RATE 1193180 208c2ecf20Sopenharmony_ci#endif 218c2ecf20Sopenharmony_ci 228c2ecf20Sopenharmony_ci#include <asm-generic/timex.h> 238c2ecf20Sopenharmony_ci 248c2ecf20Sopenharmony_ci#endif /* __ASM_SH_TIMEX_H */ 25