3 * Sysgo Real-Time Solutions, GmbH <www.elinos.com>
4 * Marius Groeger <mgroeger@sysgo.de>
7 * Sysgo Real-Time Solutions, GmbH <www.elinos.com>
8 * Alex Zuepke <azu@sysgo.de>
10 * See file CREDITS for list of people who contributed to this
13 * This program is free software; you can redistribute it and/or
14 * modify it under the terms of the GNU General Public License as
15 * published by the Free Software Foundation; either version 2 of
16 * the License, or (at your option) any later version.
18 * This program is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU General Public License for more details.
23 * You should have received a copy of the GNU General Public License
24 * along with this program; if not, write to the Free Software
25 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
32 int interrupt_init (void)
34 /* nothing happens here - we don't setup any IRQs */
38 void reset_timer (void)
40 reset_timer_masked ();
43 ulong get_timer (ulong base)
45 return get_timer_masked ();
48 void set_timer (ulong t)
53 void udelay (unsigned long usec)
59 void reset_timer_masked (void)
64 ulong get_timer_masked (void)
69 void udelay_masked (unsigned long usec)
84 endtime = get_timer_masked () + tmo;
87 ulong now = get_timer_masked ();
93 * This function is derived from PowerPC code (read timebase as long long).
94 * On ARM it just returns the timer value.
96 unsigned long long get_ticks(void)
102 * This function is derived from PowerPC code (timebase clock frequency).
103 * On ARM it returns the number of timer ticks per second.
105 ulong get_tbclk (void)