interrupts.c 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. // SPDX-License-Identifier: GPL-2.0+
  2. /*
  3. * (C) Copyright 2000-2002
  4. * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  5. *
  6. * Copyright 2004 Freescale Semiconductor, Inc.
  7. */
  8. #include <common.h>
  9. #include <command.h>
  10. #include <mpc83xx.h>
  11. #include <asm/processor.h>
  12. DECLARE_GLOBAL_DATA_PTR;
  13. struct irq_action {
  14. interrupt_handler_t *handler;
  15. void *arg;
  16. ulong count;
  17. };
  18. void interrupt_init_cpu (unsigned *decrementer_count)
  19. {
  20. volatile immap_t *immr = (immap_t *) CONFIG_SYS_IMMR;
  21. *decrementer_count = (gd->bus_clk / 4) / CONFIG_SYS_HZ;
  22. /* Enable e300 time base */
  23. immr->sysconf.spcr |= 0x00400000;
  24. }
  25. /*
  26. * Handle external interrupts
  27. */
  28. void external_interrupt (struct pt_regs *regs)
  29. {
  30. }
  31. /*
  32. * Install and free an interrupt handler.
  33. */
  34. void
  35. irq_install_handler (int irq, interrupt_handler_t * handler, void *arg)
  36. {
  37. }
  38. void irq_free_handler (int irq)
  39. {
  40. }
  41. void timer_interrupt_cpu (struct pt_regs *regs)
  42. {
  43. /* nothing to do here */
  44. return;
  45. }
  46. #if defined(CONFIG_CMD_IRQ)
  47. /* ripped this out of ppc4xx/interrupts.c */
  48. /*
  49. * irqinfo - print information about PCI devices
  50. */
  51. void
  52. do_irqinfo(cmd_tbl_t *cmdtp, bd_t *bd, int flag, int argc, char * const argv[])
  53. {
  54. }
  55. #endif