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>
15 DECLARE_GLOBAL_DATA_PTR;
18 interrupt_handler_t *handler;
23 void 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;
36 * Handle external interrupts
39 void external_interrupt(struct pt_regs *regs)
45 * Install and free an interrupt handler.
49 irq_install_handler(int irq, interrupt_handler_t * handler, void *arg)
54 void irq_free_handler(int irq)
59 void timer_interrupt_cpu (struct pt_regs *regs)
61 /* nothing to do here */
66 #if defined(CONFIG_CMD_IRQ)
68 /* ripped this out of ppc4xx/interrupts.c */
71 * irqinfo - print information about PCI devices
75 do_irqinfo(cmd_tbl_t *cmdtp, bd_t *bd, int flag, int argc, char * const argv[])