2015-05-18 15:29:40 +00:00
|
|
|
#ifndef __CLKSOURCE_TIMER_SP804_H
|
|
|
|
#define __CLKSOURCE_TIMER_SP804_H
|
|
|
|
|
2013-03-25 16:23:52 +00:00
|
|
|
struct clk;
|
|
|
|
|
2011-12-12 21:29:08 +00:00
|
|
|
void __sp804_clocksource_and_sched_clock_init(void __iomem *,
|
2013-03-25 16:23:52 +00:00
|
|
|
const char *, struct clk *, int);
|
|
|
|
void __sp804_clockevents_init(void __iomem *, unsigned int,
|
|
|
|
struct clk *, const char *);
|
2015-05-18 15:29:04 +00:00
|
|
|
void sp804_timer_disable(void __iomem *);
|
2011-12-12 21:29:08 +00:00
|
|
|
|
|
|
|
static inline void sp804_clocksource_init(void __iomem *base, const char *name)
|
|
|
|
{
|
2013-03-25 16:23:52 +00:00
|
|
|
__sp804_clocksource_and_sched_clock_init(base, name, NULL, 0);
|
2011-12-12 21:29:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
static inline void sp804_clocksource_and_sched_clock_init(void __iomem *base,
|
|
|
|
const char *name)
|
|
|
|
{
|
2013-03-25 16:23:52 +00:00
|
|
|
__sp804_clocksource_and_sched_clock_init(base, name, NULL, 1);
|
2011-12-12 21:29:08 +00:00
|
|
|
}
|
|
|
|
|
2013-03-25 16:23:52 +00: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 15:29:40 +00:00
|
|
|
#endif
|