summaryrefslogtreecommitdiff
path: root/arch/powerpc/cpu/mpc512x/interrupts.c
blob: 3385aed1cc0c899df165c8d1b89a0fd98853b6e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/*
 * (C) Copyright 2000-2007
 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
 *
 * Copyright 2004 Freescale Semiconductor, Inc.
 *
 * SPDX-License-Identifier:	GPL-2.0+
 *
 * Derived from the MPC83xx code.
 */

#include <common.h>

DECLARE_GLOBAL_DATA_PTR;

struct irq_action {
	interrupt_handler_t *handler;
	void *arg;
	ulong count;
};

int interrupt_init_cpu (unsigned *decrementer_count)
{
	*decrementer_count = get_tbclk () / CONFIG_SYS_HZ;

	return 0;
}

/*
 * Install and free an interrupt handler.
 */
void
irq_install_handler (int irq, interrupt_handler_t * handler, void *arg)
{
}

void irq_free_handler (int irq)
{
}

void timer_interrupt_cpu (struct pt_regs *regs)
{
	/* nothing to do here */
	return;
}