+// SPDX-License-Identifier: GPL-2.0+
/*
* (C) Copyright 2002
* Sysgo Real-Time Solutions, GmbH <www.elinos.com>
* (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)
}
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;
*/
ulong get_tbclk (void)
{
- ulong tbclk;
-
- tbclk = CONFIG_SYS_HZ;
- return tbclk;
+ return CONFIG_SYS_HZ;
}