immap_5271.h 3.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. /*
  2. * MCF5272 Internal Memory Map
  3. *
  4. * Copyright (c) 2003 Josef Baumgartner <josef.baumgartner@telex.de>
  5. * 2006 Zachary P. Landau <zachary.landau@labxtechnologies.com>
  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. #ifndef __IMMAP_5271__
  26. #define __IMMAP_5271__
  27. #define MMAP_SCM (CFG_MBAR + 0x00000000)
  28. #define MMAP_SDRAM (CFG_MBAR + 0x00000040)
  29. #define MMAP_FBCS (CFG_MBAR + 0x00000080)
  30. #define MMAP_DMA0 (CFG_MBAR + 0x00000100)
  31. #define MMAP_DMA1 (CFG_MBAR + 0x00000110)
  32. #define MMAP_DMA2 (CFG_MBAR + 0x00000120)
  33. #define MMAP_DMA3 (CFG_MBAR + 0x00000130)
  34. #define MMAP_UART0 (CFG_MBAR + 0x00000200)
  35. #define MMAP_UART1 (CFG_MBAR + 0x00000240)
  36. #define MMAP_UART2 (CFG_MBAR + 0x00000280)
  37. #define MMAP_I2C (CFG_MBAR + 0x00000300)
  38. #define MMAP_QSPI (CFG_MBAR + 0x00000340)
  39. #define MMAP_DTMR0 (CFG_MBAR + 0x00000400)
  40. #define MMAP_DTMR1 (CFG_MBAR + 0x00000440)
  41. #define MMAP_DTMR2 (CFG_MBAR + 0x00000480)
  42. #define MMAP_DTMR3 (CFG_MBAR + 0x000004C0)
  43. #define MMAP_INTC0 (CFG_MBAR + 0x00000C00)
  44. #define MMAP_INTC1 (CFG_MBAR + 0x00000D00)
  45. #define MMAP_INTCACK (CFG_MBAR + 0x00000F00)
  46. #define MMAP_FEC (CFG_MBAR + 0x00001000)
  47. #define MMAP_FECFIFO (CFG_MBAR + 0x00001400)
  48. #define MMAP_GPIO (CFG_MBAR + 0x00100000)
  49. #define MMAP_CCM (CFG_MBAR + 0x00110000)
  50. #define MMAP_PLL (CFG_MBAR + 0x00120000)
  51. #define MMAP_EPORT (CFG_MBAR + 0x00130000)
  52. #define MMAP_WDOG (CFG_MBAR + 0x00140000)
  53. #define MMAP_PIT0 (CFG_MBAR + 0x00150000)
  54. #define MMAP_PIT1 (CFG_MBAR + 0x00160000)
  55. #define MMAP_PIT2 (CFG_MBAR + 0x00170000)
  56. #define MMAP_PIT3 (CFG_MBAR + 0x00180000)
  57. #define MMAP_MDHA (CFG_MBAR + 0x00190000)
  58. #define MMAP_RNG (CFG_MBAR + 0x001A0000)
  59. #define MMAP_SKHA (CFG_MBAR + 0x001B0000)
  60. #define MMAP_CAN1 (CFG_MBAR + 0x001C0000)
  61. #define MMAP_ETPU (CFG_MBAR + 0x001D0000)
  62. #define MMAP_CAN2 (CFG_MBAR + 0x001F0000)
  63. /* Interrupt module registers */
  64. typedef struct int0_ctrl {
  65. /* Interrupt Controller 0 */
  66. u32 iprh0; /* 0x00 Pending Register High */
  67. u32 iprl0; /* 0x04 Pending Register Low */
  68. u32 imrh0; /* 0x08 Mask Register High */
  69. u32 imrl0; /* 0x0C Mask Register Low */
  70. u32 frch0; /* 0x10 Force Register High */
  71. u32 frcl0; /* 0x14 Force Register Low */
  72. u8 irlr; /* 0x18 */
  73. u8 iacklpr; /* 0x19 */
  74. u16 res1[19]; /* 0x1a - 0x3c */
  75. u8 icr0[64]; /* 0x40 - 0x7F Control registers */
  76. u32 res3[24]; /* 0x80 - 0xDF */
  77. u8 swiack0; /* 0xE0 Software Interrupt Acknowledge */
  78. u8 res4[3]; /* 0xE1 - 0xE3 */
  79. u8 Lniack0_1; /* 0xE4 Level n interrupt acknowledge resister */
  80. u8 res5[3]; /* 0xE5 - 0xE7 */
  81. u8 Lniack0_2; /* 0xE8 Level n interrupt acknowledge resister */
  82. u8 res6[3]; /* 0xE9 - 0xEB */
  83. u8 Lniack0_3; /* 0xEC Level n interrupt acknowledge resister */
  84. u8 res7[3]; /* 0xED - 0xEF */
  85. u8 Lniack0_4; /* 0xF0 Level n interrupt acknowledge resister */
  86. u8 res8[3]; /* 0xF1 - 0xF3 */
  87. u8 Lniack0_5; /* 0xF4 Level n interrupt acknowledge resister */
  88. u8 res9[3]; /* 0xF5 - 0xF7 */
  89. u8 Lniack0_6; /* 0xF8 Level n interrupt acknowledge resister */
  90. u8 resa[3]; /* 0xF9 - 0xFB */
  91. u8 Lniack0_7; /* 0xFC Level n interrupt acknowledge resister */
  92. u8 resb[3]; /* 0xFD - 0xFF */
  93. } int0_t;
  94. #endif /* __IMMAP_5271__ */