irq.h 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. /*
  2. * U-boot bf537_irq.h
  3. *
  4. * Copyright (c) 2005-2007 Analog Devices Inc.
  5. *
  6. * This file is based on
  7. * linux/arch/$(ARCH)/platform/$(PLATFORM)/irq.c
  8. * Changed by HuTao Apr18, 2003
  9. *
  10. * Copyright was missing when I got the code so took from MIPS arch ...MaTed---
  11. * Copyright (C) 1994 by Waldorf GMBH, written by Ralf Baechle
  12. * Copyright (C) 1995, 96, 97, 98, 99, 2000, 2001 by Ralf Baechle
  13. *
  14. * Adapted for BlackFin (ADI) by Ted Ma <mated@sympatico.ca>
  15. * Copyright (c) 2002 Arcturus Networks Inc. (www.arcturusnetworks.com)
  16. * Copyright (c) 2002 Lineo, Inc. <mattw@lineo.com>
  17. *
  18. * Adapted for BlackFin BF537 by Bas Vermeulen <bas@buyways.nl>
  19. * Copyright (c) 2003 BuyWays B.V. (www.buyways.nl)
  20. * See file CREDITS for list of people who contributed to this
  21. * project.
  22. *
  23. * This program is free software; you can redistribute it and/or
  24. * modify it under the terms of the GNU General Public License as
  25. * published by the Free Software Foundation; either version 2 of
  26. * the License, or (at your option) any later version.
  27. *
  28. * This program is distributed in the hope that it will be useful,
  29. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  30. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  31. * GNU General Public License for more details.
  32. *
  33. * You should have received a copy of the GNU General Public License
  34. * along with this program; if not, write to the Free Software
  35. * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
  36. * MA 02110-1301 USA
  37. */
  38. #ifndef _BF537_IRQ_H_
  39. #define _BF537_IRQ_H_
  40. /*
  41. * Interrupt source definitions
  42. * Event Source Core Event Name Number
  43. * EMU 0
  44. * Reset RST 1
  45. * NMI NMI 2
  46. * Exception EVX 3
  47. * Reserved -- 4
  48. * Hardware Error IVHW 5
  49. * Core Timer IVTMR 6
  50. * PLL Wakeup Interrupt IVG7 7
  51. * DMA Error (generic) IVG7 8
  52. * PPI Error Interrupt IVG7 9
  53. * SPORT0 Error Interrupt IVG7 10
  54. * SPORT1 Error Interrupt IVG7 11
  55. * SPI Error Interrupt IVG7 12
  56. * UART Error Interrupt IVG7 13
  57. * RTC Interrupt IVG8 14
  58. * DMA0 Interrupt (PPI) IVG8 15
  59. * DMA1 (SPORT0 RX) IVG9 16
  60. * DMA2 (SPORT0 TX) IVG9 17
  61. * DMA3 (SPORT1 RX) IVG9 18
  62. * DMA4 (SPORT1 TX) IVG9 19
  63. * DMA5 (PPI) IVG10 20
  64. * DMA6 (UART RX) IVG10 21
  65. * DMA7 (UART TX) IVG10 22
  66. * Timer0 IVG11 23
  67. * Timer1 IVG11 24
  68. * Timer2 IVG11 25
  69. * PF Interrupt A IVG12 26
  70. * PF Interrupt B IVG12 27
  71. * DMA8/9 Interrupt IVG13 28
  72. * DMA10/11 Interrupt IVG13 29
  73. * Watchdog Timer IVG13 30
  74. * Software Interrupt 1 IVG14 31
  75. * Software Interrupt 2 --
  76. * (lowest priority) IVG15 32
  77. */
  78. #define IRQ_EMU 0 /* Emulation */
  79. #define IRQ_RST 1 /* reset */
  80. #define IRQ_NMI 2 /* Non Maskable */
  81. #define IRQ_EVX 3 /* Exception */
  82. #define IRQ_UNUSED 4 /* - unused interrupt */
  83. #define IRQ_HWERR 5 /* Hardware Error */
  84. #define IRQ_CORETMR 6 /* Core timer */
  85. #define IRQ_UART_RX_BIT 0x0800
  86. #define IRQ_UART_TX_BIT 0x1000
  87. #define IRQ_UART_ERROR_BIT 0x40
  88. #endif