| /* SPDX-License-Identifier: GPL-2.0 */ |
| #include <linux/clockchips.h> |
| #define TIMER_OF_BASE 0x1 |
| #define TIMER_OF_CLOCK 0x2 |
| struct clock_event_device clkevt; |
| struct of_timer_base of_base; |
| struct of_timer_irq of_irq; |
| struct of_timer_clk of_clk; |
| static inline struct timer_of *to_timer_of(struct clock_event_device *clkevt) |
| return container_of(clkevt, struct timer_of, clkevt); |
| static inline void __iomem *timer_of_base(struct timer_of *to) |
| static inline int timer_of_irq(struct timer_of *to) |
| static inline unsigned long timer_of_rate(struct timer_of *to) |
| static inline unsigned long timer_of_period(struct timer_of *to) |
| return to->of_clk.period; |
| extern int __init timer_of_init(struct device_node *np, |
| extern void __init timer_of_cleanup(struct timer_of *to); |