2015-05-18 09:29:40 -06:00
|
|
|
#ifndef __CLKSOURCE_TIMER_SP804_H
|
|
|
|
#define __CLKSOURCE_TIMER_SP804_H
|
|
|
|
|
2013-03-25 10:23:52 -06:00
|
|
|
struct clk;
|
|
|
|
|
2016-06-06 15:28:01 -06: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 09:29:04 -06:00
|
|
|
void sp804_timer_disable(void __iomem *);
|
2011-12-12 14:29:08 -07:00
|
|
|
|
|
|
|
static inline void sp804_clocksource_init(void __iomem *base, const char *name)
|
|
|
|
{
|
2013-03-25 10:23:52 -06:00
|
|
|
__sp804_clocksource_and_sched_clock_init(base, name, NULL, 0);
|
2011-12-12 14:29:08 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
static inline void sp804_clocksource_and_sched_clock_init(void __iomem *base,
|
|
|
|
const char *name)
|
|
|
|
{
|
2013-03-25 10:23:52 -06:00
|
|
|
__sp804_clocksource_and_sched_clock_init(base, name, NULL, 1);
|
2011-12-12 14:29:08 -07:00
|
|
|
}
|
|
|
|
|
2013-03-25 10:23:52 -06: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 09:29:40 -06:00
|
|
|
#endif
|