]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - include/clocksource/timer-sp804.h
soc: renesas: r8a77970-sysc: Correct names of A2DP/A2CN power domains
[mirror_ubuntu-bionic-kernel.git] / include / clocksource / timer-sp804.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
0b7402dc
SH
2#ifndef __CLKSOURCE_TIMER_SP804_H
3#define __CLKSOURCE_TIMER_SP804_H
4
7a0eca71
RH
5struct clk;
6
2ef2538b
DL
7int __sp804_clocksource_and_sched_clock_init(void __iomem *,
8 const char *, struct clk *, int);
9int __sp804_clockevents_init(void __iomem *, unsigned int,
10 struct clk *, const char *);
1e5f0519 11void sp804_timer_disable(void __iomem *);
a7bf6162
RH
12
13static inline void sp804_clocksource_init(void __iomem *base, const char *name)
14{
7a0eca71 15 __sp804_clocksource_and_sched_clock_init(base, name, NULL, 0);
a7bf6162
RH
16}
17
18static inline void sp804_clocksource_and_sched_clock_init(void __iomem *base,
19 const char *name)
20{
7a0eca71 21 __sp804_clocksource_and_sched_clock_init(base, name, NULL, 1);
a7bf6162
RH
22}
23
7a0eca71
RH
24static inline void sp804_clockevents_init(void __iomem *base, unsigned int irq, const char *name)
25{
26 __sp804_clockevents_init(base, irq, NULL, name);
27
28}
0b7402dc 29#endif