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