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