From 036a017f79f6c485605c555b3a8733debb72d995 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Thu, 14 Nov 2019 12:57:27 -0700 Subject: common: Move wait_ticks functions out of common.h This function belongs in time.h so move it over and add a comment. Signed-off-by: Simon Glass Reviewed-by: Tom Rini --- include/time.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'include/time.h') diff --git a/include/time.h b/include/time.h index a1bdefc164..31d386729e 100644 --- a/include/time.h +++ b/include/time.h @@ -86,4 +86,14 @@ ulong usec2ticks(unsigned long usec); */ 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 */ -- cgit v1.2.3