1 // SPDX-License-Identifier: GPL-2.0+
3 * (C) Copyright 2000-2002
4 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
6 * Copyright 2004 Freescale Semiconductor, Inc.
13 #include <asm/processor.h>
14 #include <asm/ptrace.h>
16 DECLARE_GLOBAL_DATA_PTR;
19 interrupt_handler_t *handler;
24 void interrupt_init_cpu (unsigned *decrementer_count)
26 volatile immap_t *immr = (immap_t *) CONFIG_SYS_IMMR;
28 *decrementer_count = (gd->bus_clk / 4) / CONFIG_SYS_HZ;
30 /* Enable e300 time base */
32 immr->sysconf.spcr |= 0x00400000;
37 * Handle external interrupts
40 void external_interrupt(struct pt_regs *regs)
46 * Install and free an interrupt handler.
50 irq_install_handler(int irq, interrupt_handler_t * handler, void *arg)
55 void irq_free_handler(int irq)
60 void timer_interrupt_cpu (struct pt_regs *regs)
62 /* nothing to do here */
67 #if defined(CONFIG_CMD_IRQ)
69 /* ripped this out of ppc4xx/interrupts.c */
72 * irqinfo - print information about PCI devices
75 void do_irqinfo(struct cmd_tbl *cmdtp, bd_t *bd, int flag, int argc,