interrupts.c 725 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*
  2. * (C) Copyright 2000-2007
  3. * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  4. *
  5. * Copyright 2004 Freescale Semiconductor, Inc.
  6. *
  7. * SPDX-License-Identifier: GPL-2.0+
  8. *
  9. * Derived from the MPC83xx code.
  10. */
  11. #include <common.h>
  12. DECLARE_GLOBAL_DATA_PTR;
  13. struct irq_action {
  14. interrupt_handler_t *handler;
  15. void *arg;
  16. ulong count;
  17. };
  18. int interrupt_init_cpu (unsigned *decrementer_count)
  19. {
  20. *decrementer_count = get_tbclk () / CONFIG_SYS_HZ;
  21. return 0;
  22. }
  23. /*
  24. * Install and free an interrupt handler.
  25. */
  26. void
  27. irq_install_handler (int irq, interrupt_handler_t * handler, void *arg)
  28. {
  29. }
  30. void irq_free_handler (int irq)
  31. {
  32. }
  33. void timer_interrupt_cpu (struct pt_regs *regs)
  34. {
  35. /* nothing to do here */
  36. return;
  37. }