Rafal Jaworowski | d3a02c3 | 2007-07-27 14:43:59 +0200 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2000-2007 |
| 3 | * Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 4 | * |
| 5 | * Copyright 2004 Freescale Semiconductor, Inc. |
| 6 | * |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 7 | * SPDX-License-Identifier: GPL-2.0+ |
Rafal Jaworowski | d3a02c3 | 2007-07-27 14:43:59 +0200 | [diff] [blame] | 8 | * |
| 9 | * Derived from the MPC83xx code. |
| 10 | */ |
| 11 | |
| 12 | #include <common.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 | int interrupt_init_cpu (unsigned *decrementer_count) |
| 23 | { |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 24 | *decrementer_count = get_tbclk () / CONFIG_SYS_HZ; |
Rafal Jaworowski | d3a02c3 | 2007-07-27 14:43:59 +0200 | [diff] [blame] | 25 | |
| 26 | return 0; |
| 27 | } |
| 28 | |
| 29 | /* |
| 30 | * Install and free an interrupt handler. |
| 31 | */ |
| 32 | void |
| 33 | irq_install_handler (int irq, interrupt_handler_t * handler, void *arg) |
| 34 | { |
| 35 | } |
| 36 | |
| 37 | void irq_free_handler (int irq) |
| 38 | { |
| 39 | } |
| 40 | |
| 41 | void timer_interrupt_cpu (struct pt_regs *regs) |
| 42 | { |
| 43 | /* nothing to do here */ |
| 44 | return; |
| 45 | } |