]> Git Repo - J-u-boot.git/blame - cpu/arm920t/interrupts.c
rename CFG_ macros to CONFIG_SYS
[J-u-boot.git] / cpu / arm920t / interrupts.c
CommitLineData
c609719b
WD
1/*
2 * (C) Copyright 2002
3 * Sysgo Real-Time Solutions, GmbH <www.elinos.com>
4 * Marius Groeger <[email protected]>
5 *
6 * (C) Copyright 2002
7 * Sysgo Real-Time Solutions, GmbH <www.elinos.com>
8 * Alex Zuepke <[email protected]>
9 *
10 * (C) Copyright 2002
11 * Gary Jennejohn, DENX Software Engineering, <[email protected]>
12 *
13 * See file CREDITS for list of people who contributed to this
14 * project.
15 *
16 * This program is free software; you can redistribute it and/or
17 * modify it under the terms of the GNU General Public License as
18 * published by the Free Software Foundation; either version 2 of
19 * the License, or (at your option) any later version.
20 *
21 * This program is distributed in the hope that it will be useful,
22 * but WITHOUT ANY WARRANTY; without even the implied warranty of
23 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24 * GNU General Public License for more details.
25 *
26 * You should have received a copy of the GNU General Public License
27 * along with this program; if not, write to the Free Software
28 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
29 * MA 02111-1307 USA
30 */
31
32#include <common.h>
281e00a3 33#include <arm920t.h>
c609719b 34
c609719b 35#ifdef CONFIG_USE_IRQ
6d0943a6 36#include <asm/proc-armv/ptrace.h>
c609719b
WD
37void do_irq (struct pt_regs *pt_regs)
38{
be19bd5c
HW
39#if defined (ARM920_IRQ_CALLBACK)
40 ARM920_IRQ_CALLBACK();
be19bd5c 41#elif defined (CONFIG_ARCH_INTEGRATOR)
74f4304e
WD
42 /* ASSUMED to be a timer interrupt */
43 /* Just clear it - count handled in */
44 /* integratorap.c */
6d0f6bcf 45 *(volatile ulong *)(CONFIG_SYS_TIMERBASE + 0x0C) = 0;
74f4304e 46#else
6d0943a6 47#error do_irq() not defined for this cpu type
74f4304e 48#endif
c609719b 49}
6d0943a6 50#endif
This page took 0.095956 seconds and 4 git commands to generate.