rockchip: rk3288: use default value for SYS_MALLOC_F_LEN
[oweals/u-boot.git] / arch / arm / cpu / sa1100 / timer.c
index 4b981e46e7d95ef37866f30be577e68f74df60e0..0fac5c1707fd3140ba62b6332e9a3577a92a5df1 100644 (file)
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * (C) Copyright 2002
  * Sysgo Real-Time Solutions, GmbH <www.elinos.com>
@@ -6,16 +7,14 @@
  * (C) Copyright 2002
  * Sysgo Real-Time Solutions, GmbH <www.elinos.com>
  * Alex Zuepke <azu@sysgo.de>
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #include <common.h>
 #include <SA-1100.h>
 
-int timer_init (void)
+static ulong get_timer_masked (void)
 {
-       return 0;
+       return OSCR;
 }
 
 ulong get_timer (ulong base)
@@ -24,16 +23,6 @@ ulong get_timer (ulong base)
 }
 
 void __udelay (unsigned long usec)
-{
-       udelay_masked (usec);
-}
-
-ulong get_timer_masked (void)
-{
-       return OSCR;
-}
-
-void udelay_masked (unsigned long usec)
 {
        ulong tmo;
        ulong endtime;
@@ -71,8 +60,5 @@ unsigned long long get_ticks(void)
  */
 ulong get_tbclk (void)
 {
-       ulong tbclk;
-
-       tbclk = CONFIG_SYS_HZ;
-       return tbclk;
+       return CONFIG_SYS_HZ;
 }