12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- #ifndef _TIMER_H_
- #define _TIMER_H_
- int dm_timer_init(void);
- u64 timer_conv_64(u32 count);
- int timer_get_count(struct udevice *dev, u64 *count);
- unsigned long timer_get_rate(struct udevice *dev);
- struct timer_ops {
-
- int (*get_count)(struct udevice *dev, u64 *count);
- };
- struct timer_dev_priv {
- unsigned long clock_rate;
- };
- u64 timer_early_get_count(void);
- unsigned long timer_early_get_rate(void);
- #endif
|