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