blob: 3385aed1cc0c899df165c8d1b89a0fd98853b6e1 [file] [log] [blame]
Rafal Jaworowskid3a02c32007-07-27 14:43:59 +02001/*
2 * (C) Copyright 2000-2007
3 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4 *
5 * Copyright 2004 Freescale Semiconductor, Inc.
6 *
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02007 * SPDX-License-Identifier: GPL-2.0+
Rafal Jaworowskid3a02c32007-07-27 14:43:59 +02008 *
9 * Derived from the MPC83xx code.
10 */
11
12#include <common.h>
13
14DECLARE_GLOBAL_DATA_PTR;
15
16struct irq_action {
17 interrupt_handler_t *handler;
18 void *arg;
19 ulong count;
20};
21
22int interrupt_init_cpu (unsigned *decrementer_count)
23{
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +020024 *decrementer_count = get_tbclk () / CONFIG_SYS_HZ;
Rafal Jaworowskid3a02c32007-07-27 14:43:59 +020025
26 return 0;
27}
28
29/*
30 * Install and free an interrupt handler.
31 */
32void
33irq_install_handler (int irq, interrupt_handler_t * handler, void *arg)
34{
35}
36
37void irq_free_handler (int irq)
38{
39}
40
41void timer_interrupt_cpu (struct pt_regs *regs)
42{
43 /* nothing to do here */
44 return;
45}