1 // SPDX-License-Identifier: GPL-2.0+
2 /*
3  * (C) Copyright 2000-2002
4  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
5  *
6  * Copyright 2004 Freescale Semiconductor, Inc.
7  */
8 
9 #include <common.h>
10 #include <command.h>
11 #include <mpc83xx.h>
12 #include <asm/processor.h>
13 
14 DECLARE_GLOBAL_DATA_PTR;
15 
16 struct irq_action {
17 	interrupt_handler_t *handler;
18 	void *arg;
19 	ulong count;
20 };
21 
22 void interrupt_init_cpu (unsigned *decrementer_count)
23 {
24 	volatile immap_t *immr = (immap_t *) CONFIG_SYS_IMMR;
25 
26 	*decrementer_count = (gd->bus_clk / 4) / CONFIG_SYS_HZ;
27 
28 	/* Enable e300 time base */
29 
30 	immr->sysconf.spcr |= 0x00400000;
31 }
32 
33 
34 /*
35  * Handle external interrupts
36  */
37 
38 void external_interrupt (struct pt_regs *regs)
39 {
40 }
41 
42 
43 /*
44  * Install and free an interrupt handler.
45  */
46 
47 void
48 irq_install_handler (int irq, interrupt_handler_t * handler, void *arg)
49 {
50 }
51 
52 
53 void irq_free_handler (int irq)
54 {
55 }
56 
57 
58 void timer_interrupt_cpu (struct pt_regs *regs)
59 {
60 	/* nothing to do here */
61 	return;
62 }
63 
64 
65 #if defined(CONFIG_CMD_IRQ)
66 
67 /* ripped this out of ppc4xx/interrupts.c */
68 
69 /*
70  * irqinfo - print information about PCI devices
71  */
72 
73 void
74 do_irqinfo(cmd_tbl_t *cmdtp, bd_t *bd, int flag, int argc, char * const argv[])
75 {
76 }
77 
78 #endif
79