]> git.ipfire.org Git - thirdparty/kernel/linux.git/blame - arch/sh/include/asm/timex.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[thirdparty/kernel/linux.git] / arch / sh / include / asm / timex.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
1da177e4
LT
2/*
3 * linux/include/asm-sh/timex.h
4 *
5 * sh architecture timex specifications
6 */
7#ifndef __ASM_SH_TIMEX_H
8#define __ASM_SH_TIMEX_H
9
8152a74b
PM
10/*
11 * Only parts using the legacy CPG code for their clock framework
12 * implementation need to define their own Pclk value. If provided, this
13 * can be used for accurately setting CLOCK_TICK_RATE, otherwise we
14 * simply fall back on the i8253 PIT value.
15 */
16#ifdef CONFIG_SH_PCLK_FREQ
1da177e4 17#define CLOCK_TICK_RATE (CONFIG_SH_PCLK_FREQ / 4) /* Underlying HZ */
8152a74b
PM
18#else
19#define CLOCK_TICK_RATE 1193180
20#endif
1da177e4 21
f8f06bc7 22#include <asm-generic/timex.h>
1da177e4
LT
23
24#endif /* __ASM_SH_TIMEX_H */