From: Simon Glass Date: Mon, 30 Sep 2019 08:40:50 -0600 Subject: [U-Boot] [PATCH 19/41] common: Move wait_ticks functions out of common.h In-Reply-To: <20190930144112.175618-1-sjg@chromium.org> References: <20190930144112.175618-1-sjg@chromium.org> Message-ID: <20190930144112.175618-20-sjg@chromium.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de This function belongs in time.h so move it over and add a comment. Signed-off-by: Simon Glass --- arch/arm/cpu/pxa/pxa2xx.c | 1 + drivers/timer/mpc83xx_timer.c | 1 + include/common.h | 1 - include/time.h | 9 +++++++++ 4 files changed, 11 insertions(+), 1 deletion(-) diff --git a/arch/arm/cpu/pxa/pxa2xx.c b/arch/arm/cpu/pxa/pxa2xx.c index 0b28f0a3ef6..43c206b2459 100644 --- a/arch/arm/cpu/pxa/pxa2xx.c +++ b/arch/arm/cpu/pxa/pxa2xx.c @@ -10,6 +10,7 @@ */ #include +#include #include #include #include diff --git a/drivers/timer/mpc83xx_timer.c b/drivers/timer/mpc83xx_timer.c index dfbc8672b29..69949d53338 100644 --- a/drivers/timer/mpc83xx_timer.c +++ b/drivers/timer/mpc83xx_timer.c @@ -9,6 +9,7 @@ #include #include #include +#include #include #include diff --git a/include/common.h b/include/common.h index 20d143deb81..091b54787f7 100644 --- a/include/common.h +++ b/include/common.h @@ -286,7 +286,6 @@ int cleanup_before_linux_select(int flags); /* arch/$(ARCH)/lib/ticks.S */ uint64_t get_ticks(void); -void wait_ticks (unsigned long); /* lib/uuid.c */ #include diff --git a/include/time.h b/include/time.h index 5c6a0fd032c..e740858f816 100644 --- a/include/time.h +++ b/include/time.h @@ -85,4 +85,13 @@ ulong usec2ticks(unsigned long usec); */ ulong ticks2usec(unsigned long ticks); +/** + * wait_ticks() - waits a given number of ticks + * + * This is an internal funciton. Normally you should use udelay() or mdelay() + * + * @ticks: Number of ticks to wait + */ +void wait_ticks(unsigned long ticks); + #endif /* _TIME_H */ -- 2.23.0.444.g18eeb5a265-goog