rockchip: rk3288: use default value for SYS_MALLOC_F_LEN
[oweals/u-boot.git] / arch / arm / cpu / sa1100 / timer.c
index 694c03ab17848acd6b053cddb089bfb0117be34b..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,32 +7,14 @@
  * (C) Copyright 2002
  * Sysgo Real-Time Solutions, GmbH <www.elinos.com>
  * Alex Zuepke <azu@sysgo.de>
- *
- * See file CREDITS for list of people who contributed to this
- * project.
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
- * MA 02111-1307 USA
  */
 
 #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)
@@ -40,22 +23,6 @@ ulong get_timer (ulong base)
 }
 
 void __udelay (unsigned long usec)
-{
-       udelay_masked (usec);
-}
-
-
-void reset_timer_masked (void)
-{
-       OSCR = 0;
-}
-
-ulong get_timer_masked (void)
-{
-       return OSCR;
-}
-
-void udelay_masked (unsigned long usec)
 {
        ulong tmo;
        ulong endtime;
@@ -93,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;
 }