summaryrefslogtreecommitdiff
path: root/arch/arm/mach-at91/arm920t/timer.c
diff options
context:
space:
mode:
authorPatrick Delaunay <patrick.delaunay@st.com>2018-10-05 12:33:52 +0300
committerTom Rini <trini@konsulko.com>2018-10-10 20:35:09 +0300
commit6180ea7e663893cb7330219367252cba471bf225 (patch)
treea35c6b51dcf5d03740f25a8a5c922f99885010ec /arch/arm/mach-at91/arm920t/timer.c
parentaa33fe86954e342116648a702d34bb0456bdc4a7 (diff)
downloadu-boot-6180ea7e663893cb7330219367252cba471bf225.tar.xz
arm: remove prototype for get_timer_masked
The interruption support had be removed for ARM architecture and the function get_timer_masked() is no more used except in some the timer.c files. This patch clean each timer.c which implement this function and remove the associated prototype in u-boot-arm.h For timer.c, I don't verify if the weak version of get_timer (in lib/time.c) can be used Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Diffstat (limited to 'arch/arm/mach-at91/arm920t/timer.c')
-rw-r--r--arch/arm/mach-at91/arm920t/timer.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/arch/arm/mach-at91/arm920t/timer.c b/arch/arm/mach-at91/arm920t/timer.c
index 6a98d7c4de..6db541a7b3 100644
--- a/arch/arm/mach-at91/arm920t/timer.c
+++ b/arch/arm/mach-at91/arm920t/timer.c
@@ -53,11 +53,6 @@ int timer_init(void)
/*
* timer without interrupts
*/
-ulong get_timer(ulong base)
-{
- return get_timer_masked() - base;
-}
-
ulong get_timer_raw(void)
{
at91_tc_t *tc = (at91_tc_t *) ATMEL_BASE_TC;
@@ -77,11 +72,16 @@ ulong get_timer_raw(void)
return gd->arch.tbl;
}
-ulong get_timer_masked(void)
+static ulong get_timer_masked(void)
{
return get_timer_raw()/TIMER_LOAD_VAL;
}
+ulong get_timer(ulong base)
+{
+ return get_timer_masked() - base;
+}
+
void __udelay(unsigned long usec)
{
u32 tmo;