interrupts.c 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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 <irq_func.h>
  11. #include <mpc83xx.h>
  12. #include <asm/processor.h>
  13. DECLARE_GLOBAL_DATA_PTR;
  14. struct irq_action {
  15. interrupt_handler_t *handler;
  16. void *arg;
  17. ulong count;
  18. };
  19. void interrupt_init_cpu (unsigned *decrementer_count)
  20. {
  21. volatile immap_t *immr = (immap_t *) CONFIG_SYS_IMMR;
  22. *decrementer_count = (gd->bus_clk / 4) / CONFIG_SYS_HZ;
  23. /* Enable e300 time base */
  24. immr->sysconf.spcr |= 0x00400000;
  25. }
  26. /*
  27. * Handle external interrupts
  28. */
  29. void external_interrupt(struct pt_regs *regs)
  30. {
  31. }
  32. /*
  33. * Install and free an interrupt handler.
  34. */
  35. void
  36. irq_install_handler(int irq, interrupt_handler_t * handler, void *arg)
  37. {
  38. }
  39. void irq_free_handler(int irq)
  40. {
  41. }
  42. void timer_interrupt_cpu (struct pt_regs *regs)
  43. {
  44. /* nothing to do here */
  45. return;
  46. }
  47. #if defined(CONFIG_CMD_IRQ)
  48. /* ripped this out of ppc4xx/interrupts.c */
  49. /*
  50. * irqinfo - print information about PCI devices
  51. */
  52. void do_irqinfo(struct cmd_tbl *cmdtp, bd_t *bd, int flag, int argc,
  53. char *const argv[])
  54. {
  55. }
  56. #endif