| // SPDX-License-Identifier: GPL-2.0+ |
| * Sysgo Real-Time Solutions, GmbH <www.elinos.com> |
| * Marius Groeger <mgroeger@sysgo.de> |
| * Sysgo Real-Time Solutions, GmbH <www.elinos.com> |
| * Alex Zuepke <azu@sysgo.de> |
| static ulong get_timer_masked (void) |
| ulong get_timer (ulong base) |
| return get_timer_masked (); |
| void __udelay(unsigned long usec) |
| tmo = usec * CONFIG_SYS_HZ; |
| endtime = get_timer_masked () + tmo; |
| ulong now = get_timer_masked (); |
| * This function is derived from PowerPC code (read timebase as long long). |
| * On ARM it just returns the timer value. |
| unsigned long long get_ticks(void) |
| * This function is derived from PowerPC code (timebase clock frequency). |
| * On ARM it returns the number of timer ticks per second. |