mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 19:11:53 +00:00
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 <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
parent
6887c5bed9
commit
036a017f79
3 changed files with 11 additions and 1 deletions
|
@ -9,6 +9,7 @@
|
||||||
#include <clk.h>
|
#include <clk.h>
|
||||||
#include <dm.h>
|
#include <dm.h>
|
||||||
#include <status_led.h>
|
#include <status_led.h>
|
||||||
|
#include <time.h>
|
||||||
#include <timer.h>
|
#include <timer.h>
|
||||||
#include <watchdog.h>
|
#include <watchdog.h>
|
||||||
|
|
||||||
|
|
|
@ -286,7 +286,6 @@ int cleanup_before_linux_select(int flags);
|
||||||
|
|
||||||
/* arch/$(ARCH)/lib/ticks.S */
|
/* arch/$(ARCH)/lib/ticks.S */
|
||||||
uint64_t get_ticks(void);
|
uint64_t get_ticks(void);
|
||||||
void wait_ticks (unsigned long);
|
|
||||||
|
|
||||||
/* lib/uuid.c */
|
/* lib/uuid.c */
|
||||||
#include <uuid.h>
|
#include <uuid.h>
|
||||||
|
|
|
@ -86,4 +86,14 @@ ulong usec2ticks(unsigned long usec);
|
||||||
*/
|
*/
|
||||||
ulong ticks2usec(unsigned long ticks);
|
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 */
|
#endif /* _TIME_H */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue