interrupts.c 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. /*
  2. * (C) Copyright 2000-2002
  3. * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  4. *
  5. * Copyright 2004 Freescale Semiconductor, Inc.
  6. *
  7. * See file CREDITS for list of people who contributed to this
  8. * project.
  9. *
  10. * This program is free software; you can redistribute it and/or
  11. * modify it under the terms of the GNU General Public License as
  12. * published by the Free Software Foundation; either version 2 of
  13. * the License, or (at your option) any later version.
  14. *
  15. * This program is distributed in the hope that it will be useful,
  16. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  17. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18. * GNU General Public License for more details.
  19. *
  20. * You should have received a copy of the GNU General Public License
  21. * along with this program; if not, write to the Free Software
  22. * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  23. * MA 02111-1307 USA
  24. */
  25. #include <common.h>
  26. #include <command.h>
  27. #include <mpc83xx.h>
  28. #include <asm/processor.h>
  29. DECLARE_GLOBAL_DATA_PTR;
  30. struct irq_action {
  31. interrupt_handler_t *handler;
  32. void *arg;
  33. ulong count;
  34. };
  35. int interrupt_init_cpu (unsigned *decrementer_count)
  36. {
  37. volatile immap_t *immr = (immap_t *) CONFIG_SYS_IMMR;
  38. *decrementer_count = (gd->bus_clk / 4) / CONFIG_SYS_HZ;
  39. /* Enable e300 time base */
  40. immr->sysconf.spcr |= 0x00400000;
  41. return 0;
  42. }
  43. /*
  44. * Handle external interrupts
  45. */
  46. void external_interrupt (struct pt_regs *regs)
  47. {
  48. }
  49. /*
  50. * Install and free an interrupt handler.
  51. */
  52. void
  53. irq_install_handler (int irq, interrupt_handler_t * handler, void *arg)
  54. {
  55. }
  56. void irq_free_handler (int irq)
  57. {
  58. }
  59. void timer_interrupt_cpu (struct pt_regs *regs)
  60. {
  61. /* nothing to do here */
  62. return;
  63. }
  64. #if defined(CONFIG_CMD_IRQ)
  65. /* ripped this out of ppc4xx/interrupts.c */
  66. /*
  67. * irqinfo - print information about PCI devices
  68. */
  69. void
  70. do_irqinfo(cmd_tbl_t *cmdtp, bd_t *bd, int flag, int argc, char *argv[])
  71. {
  72. }
  73. #endif