Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost
[cris-mirror.git] / arch / mips / include / asm / mach-loongson64 / cs5536 / cs5536_mfgpt.h
blob52e8bb0fc04d660f9767537e4989aaccd233e6c1
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3 * cs5536 mfgpt header file
4 */
6 #ifndef _CS5536_MFGPT_H
7 #define _CS5536_MFGPT_H
9 #include <cs5536/cs5536.h>
10 #include <cs5536/cs5536_pci.h>
12 #ifdef CONFIG_CS5536_MFGPT
13 extern void setup_mfgpt0_timer(void);
14 extern void disable_mfgpt0_counter(void);
15 extern void enable_mfgpt0_counter(void);
16 #else
17 static inline void __maybe_unused setup_mfgpt0_timer(void)
20 static inline void __maybe_unused disable_mfgpt0_counter(void)
23 static inline void __maybe_unused enable_mfgpt0_counter(void)
26 #endif
28 #define MFGPT_TICK_RATE 14318000
29 #define COMPARE ((MFGPT_TICK_RATE + HZ/2) / HZ)
31 #define MFGPT_BASE mfgpt_base
32 #define MFGPT0_CMP2 (MFGPT_BASE + 2)
33 #define MFGPT0_CNT (MFGPT_BASE + 4)
34 #define MFGPT0_SETUP (MFGPT_BASE + 6)
36 #endif /*!_CS5536_MFGPT_H */