This function belongs in time.h so move it over and add a comment.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
#include <clk.h>
#include <dm.h>
#include <status_led.h>
+#include <time.h>
#include <timer.h>
#include <watchdog.h>
/* arch/$(ARCH)/lib/ticks.S */
uint64_t get_ticks(void);
-void wait_ticks (unsigned long);
/* lib/uuid.c */
#include <uuid.h>
*/
ulong ticks2usec(unsigned long ticks);
+/**
+ * wait_ticks() - waits a given number of ticks
+ *
+ * This is an internal function typically used to implement udelay() and
+ * similar. Normally you should use udelay() or mdelay() instead.
+ *
+ * @ticks: Number of ticks to wait
+ */
+void wait_ticks(unsigned long ticks);
+
#endif /* _TIME_H */