interrupts.c 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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. #include <asm/ptrace.h>
  14. DECLARE_GLOBAL_DATA_PTR;
  15. struct irq_action {
  16. interrupt_handler_t *handler;
  17. void *arg;
  18. ulong count;
  19. };
  20. void interrupt_init_cpu (unsigned *decrementer_count)
  21. {
  22. volatile immap_t *immr = (immap_t *) CONFIG_SYS_IMMR;
  23. *decrementer_count = (gd->bus_clk / 4) / CONFIG_SYS_HZ;
  24. /* Enable e300 time base */
  25. immr->sysconf.spcr |= 0x00400000;
  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 do_irqinfo(struct cmd_tbl *cmdtp, struct bd_info *bd, int flag, int argc,
  54. char *const argv[])
  55. {
  56. }
  57. #endif