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