interrupts.c 1.3 KB

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