2015-05-18 18:29:40 +03:00
|
|
|
#ifndef __CLKSOURCE_TIMER_SP804_H
|
|
|
|
#define __CLKSOURCE_TIMER_SP804_H
|
|
|
|
|
2013-03-25 20:23:52 +04:00
|
|
|
struct clk;
|
|
|
|
|
2016-06-07 00:28:01 +03:00
|
|
|
int __sp804_clocksource_and_sched_clock_init(void __iomem *,
|
|
|
|
const char *, struct clk *, int);
|
|
|
|
int __sp804_clockevents_init(void __iomem *, unsigned int,
|
|
|
|
struct clk *, const char *);
|
2015-05-18 18:29:04 +03:00
|
|
|
void sp804_timer_disable(void __iomem *);
|
2011-12-13 01:29:08 +04:00
|
|
|
|
|
|
|
static inline void sp804_clocksource_init(void __iomem *base, const char *name)
|
|
|
|
{
|
2013-03-25 20:23:52 +04:00
|
|
|
__sp804_clocksource_and_sched_clock_init(base, name, NULL, 0);
|
2011-12-13 01:29:08 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
static inline void sp804_clocksource_and_sched_clock_init(void __iomem *base,
|
|
|
|
const char *name)
|
|
|
|
{
|
2013-03-25 20:23:52 +04:00
|
|
|
__sp804_clocksource_and_sched_clock_init(base, name, NULL, 1);
|
2011-12-13 01:29:08 +04:00
|
|
|
}
|
|
|
|
|
2013-03-25 20:23:52 +04:00
|
|
|
static inline void sp804_clockevents_init(void __iomem *base, unsigned int irq, const char *name)
|
|
|
|
{
|
|
|
|
__sp804_clockevents_init(base, irq, NULL, name);
|
|
|
|
|
|
|
|
}
|
2015-05-18 18:29:40 +03:00
|
|
|
#endif
|