]>
git.ipfire.org Git - people/ms/u-boot.git/blob - arch/powerpc/cpu/mpc83xx/interrupts.c
2 * (C) Copyright 2000-2002
3 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
5 * Copyright 2004 Freescale Semiconductor, Inc.
7 * SPDX-License-Identifier: GPL-2.0+
13 #include <asm/processor.h>
15 DECLARE_GLOBAL_DATA_PTR
;
18 interrupt_handler_t
*handler
;
23 int interrupt_init_cpu (unsigned *decrementer_count
)
25 volatile immap_t
*immr
= (immap_t
*) CONFIG_SYS_IMMR
;
27 *decrementer_count
= (gd
->bus_clk
/ 4) / CONFIG_SYS_HZ
;
29 /* Enable e300 time base */
31 immr
->sysconf
.spcr
|= 0x00400000;
38 * Handle external interrupts
41 void external_interrupt (struct pt_regs
*regs
)
47 * Install and free an interrupt handler.
51 irq_install_handler (int irq
, interrupt_handler_t
* handler
, void *arg
)
56 void irq_free_handler (int irq
)
61 void timer_interrupt_cpu (struct pt_regs
*regs
)
63 /* nothing to do here */
68 #if defined(CONFIG_CMD_IRQ)
70 /* ripped this out of ppc4xx/interrupts.c */
73 * irqinfo - print information about PCI devices
77 do_irqinfo(cmd_tbl_t
*cmdtp
, bd_t
*bd
, int flag
, int argc
, char * const argv
[])