interrupts.c 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. /*
  2. * (C) Copyright 2000-2002
  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. #include <common.h>
  10. #include <command.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. int 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. return 0;
  26. }
  27. /*
  28. * Handle external interrupts
  29. */
  30. void external_interrupt (struct pt_regs *regs)
  31. {
  32. }
  33. /*
  34. * Install and free an interrupt handler.
  35. */
  36. void
  37. irq_install_handler (int irq, interrupt_handler_t * handler, void *arg)
  38. {
  39. }
  40. void irq_free_handler (int irq)
  41. {
  42. }
  43. void timer_interrupt_cpu (struct pt_regs *regs)
  44. {
  45. /* nothing to do here */
  46. return;
  47. }
  48. #if defined(CONFIG_CMD_IRQ)
  49. /* ripped this out of ppc4xx/interrupts.c */
  50. /*
  51. * irqinfo - print information about PCI devices
  52. */
  53. void
  54. do_irqinfo(cmd_tbl_t *cmdtp, bd_t *bd, int flag, int argc, char * const argv[])
  55. {
  56. }
  57. #endif