immap_5282.h 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  1. /*
  2. * MCF5282 Internal Memory Map
  3. *
  4. * Copyright (c) 2003 Josef Baumgartner <josef.baumgartner@telex.de>
  5. *
  6. * See file CREDITS for list of people who contributed to this
  7. * project.
  8. *
  9. * This program is free software; you can redistribute it and/or
  10. * modify it under the terms of the GNU General Public License as
  11. * published by the Free Software Foundation; either version 2 of
  12. * the License, or (at your option) any later version.
  13. *
  14. * This program is distributed in the hope that it will be useful,
  15. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17. * GNU General Public License for more details.
  18. *
  19. * You should have received a copy of the GNU General Public License
  20. * along with this program; if not, write to the Free Software
  21. * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  22. * MA 02111-1307 USA
  23. */
  24. #ifndef __IMMAP_5282__
  25. #define __IMMAP_5282__
  26. #define MMAP_SCM (CFG_MBAR + 0x00000000)
  27. #define MMAP_SDRAMC (CFG_MBAR + 0x00000040)
  28. #define MMAP_FBCS (CFG_MBAR + 0x00000080)
  29. #define MMAP_DMA0 (CFG_MBAR + 0x00000100)
  30. #define MMAP_DMA1 (CFG_MBAR + 0x00000140)
  31. #define MMAP_DMA2 (CFG_MBAR + 0x00000180)
  32. #define MMAP_DMA3 (CFG_MBAR + 0x000001C0)
  33. #define MMAP_UART0 (CFG_MBAR + 0x00000200)
  34. #define MMAP_UART1 (CFG_MBAR + 0x00000240)
  35. #define MMAP_UART2 (CFG_MBAR + 0x00000280)
  36. #define MMAP_I2C (CFG_MBAR + 0x00000300)
  37. #define MMAP_QSPI (CFG_MBAR + 0x00000340)
  38. #define MMAP_DTMR0 (CFG_MBAR + 0x00000400)
  39. #define MMAP_DTMR1 (CFG_MBAR + 0x00000440)
  40. #define MMAP_DTMR2 (CFG_MBAR + 0x00000480)
  41. #define MMAP_DTMR3 (CFG_MBAR + 0x000004C0)
  42. #define MMAP_INTC0 (CFG_MBAR + 0x00000C00)
  43. #define MMAP_INTC1 (CFG_MBAR + 0x00000D00)
  44. #define MMAP_INTCACK (CFG_MBAR + 0x00000F00)
  45. #define MMAP_FEC (CFG_MBAR + 0x00001000)
  46. #define MMAP_FECFIFO (CFG_MBAR + 0x00001400)
  47. #define MMAP_GPIO (CFG_MBAR + 0x00100000)
  48. #define MMAP_CCM (CFG_MBAR + 0x00110000)
  49. #define MMAP_PLL (CFG_MBAR + 0x00120000)
  50. #define MMAP_EPORT (CFG_MBAR + 0x00130000)
  51. #define MMAP_WDOG (CFG_MBAR + 0x00140000)
  52. #define MMAP_PIT0 (CFG_MBAR + 0x00150000)
  53. #define MMAP_PIT1 (CFG_MBAR + 0x00160000)
  54. #define MMAP_PIT2 (CFG_MBAR + 0x00170000)
  55. #define MMAP_PIT3 (CFG_MBAR + 0x00180000)
  56. #define MMAP_QADC (CFG_MBAR + 0x00190000)
  57. #define MMAP_GPTMRA (CFG_MBAR + 0x001A0000)
  58. #define MMAP_GPTMRB (CFG_MBAR + 0x001B0000)
  59. #define MMAP_CAN (CFG_MBAR + 0x001C0000)
  60. #define MMAP_CFMC (CFG_MBAR + 0x001D0000)
  61. #define MMAP_CFMMEM (CFG_MBAR + 0x04000000)
  62. /* System Control Module */
  63. typedef struct scm_ctrl {
  64. u32 ipsbar;
  65. u32 res1;
  66. u32 rambar;
  67. u32 res2;
  68. u8 crsr;
  69. u8 cwcr;
  70. u8 lpicr;
  71. u8 cwsr;
  72. u32 res3;
  73. u8 mpark;
  74. u8 res4[3];
  75. u8 pacr0;
  76. u8 pacr1;
  77. u8 pacr2;
  78. u8 pacr3;
  79. u8 pacr4;
  80. u8 res5;
  81. u8 pacr5;
  82. u8 pacr6;
  83. u8 pacr7;
  84. u8 res6;
  85. u8 pacr8;
  86. u8 res7;
  87. u8 gpacr0;
  88. u8 gpacr1;
  89. u16 res8;
  90. } scm_t;
  91. /* Flexbus module Chip select registers */
  92. typedef struct fbcs_ctrl {
  93. u16 csar0; /* 0x00 Chip-Select Address Register 0 */
  94. u16 res0;
  95. u32 csmr0; /* 0x04 Chip-Select Mask Register 0 */
  96. u16 res1; /* 0x08 */
  97. u16 cscr0; /* 0x0A Chip-Select Control Register 0 */
  98. u16 csar1; /* 0x0C Chip-Select Address Register 1 */
  99. u16 res2;
  100. u32 csmr1; /* 0x10 Chip-Select Mask Register 1 */
  101. u16 res3; /* 0x14 */
  102. u16 cscr1; /* 0x16 Chip-Select Control Register 1 */
  103. u16 csar2; /* 0x18 Chip-Select Address Register 2 */
  104. u16 res4;
  105. u32 csmr2; /* 0x1C Chip-Select Mask Register 2 */
  106. u16 res5; /* 0x20 */
  107. u16 cscr2; /* 0x22 Chip-Select Control Register 2 */
  108. u16 csar3; /* 0x24 Chip-Select Address Register 3 */
  109. u16 res6;
  110. u32 csmr3; /* 0x28 Chip-Select Mask Register 3 */
  111. u16 res7; /* 0x2C */
  112. u16 cscr3; /* 0x2E Chip-Select Control Register 3 */
  113. u16 csar4; /* 0x30 Chip-Select Address Register 4 */
  114. u16 res8;
  115. u32 csmr4; /* 0x34 Chip-Select Mask Register 4 */
  116. u16 res9; /* 0x38 */
  117. u16 cscr4; /* 0x3A Chip-Select Control Register 4 */
  118. u16 csar5; /* 0x3C Chip-Select Address Register 5 */
  119. u16 res10;
  120. u32 csmr5; /* 0x40 Chip-Select Mask Register 5 */
  121. u16 res11; /* 0x44 */
  122. u16 cscr5; /* 0x46 Chip-Select Control Register 5 */
  123. u16 csar6; /* 0x48 Chip-Select Address Register 5 */
  124. u16 res12;
  125. u32 csmr6; /* 0x4C Chip-Select Mask Register 5 */
  126. u16 res13; /* 0x50 */
  127. u16 cscr6; /* 0x52 Chip-Select Control Register 5 */
  128. u16 csar7; /* 0x54 Chip-Select Address Register 5 */
  129. u16 res14;
  130. u32 csmr7; /* 0x58 Chip-Select Mask Register 5 */
  131. u16 res15; /* 0x5C */
  132. u16 cscr7; /* 0x5E Chip-Select Control Register 5 */
  133. } fbcs_t;
  134. /* Interrupt module registers */
  135. typedef struct int0_ctrl {
  136. /* Interrupt Controller 0 */
  137. u32 iprh0; /* 0x00 Pending Register High */
  138. u32 iprl0; /* 0x04 Pending Register Low */
  139. u32 imrh0; /* 0x08 Mask Register High */
  140. u32 imrl0; /* 0x0C Mask Register Low */
  141. u32 frch0; /* 0x10 Force Register High */
  142. u32 frcl0; /* 0x14 Force Register Low */
  143. u8 irlr; /* 0x18 */
  144. u8 iacklpr; /* 0x19 */
  145. u16 res1[19]; /* 0x1a - 0x3c */
  146. u8 icr0[64]; /* 0x40 - 0x7F Control registers */
  147. u32 res3[24]; /* 0x80 - 0xDF */
  148. u8 swiack0; /* 0xE0 Software Interrupt Acknowledge */
  149. u8 res4[3]; /* 0xE1 - 0xE3 */
  150. u8 Lniack0_1; /* 0xE4 Level n interrupt acknowledge resister */
  151. u8 res5[3]; /* 0xE5 - 0xE7 */
  152. u8 Lniack0_2; /* 0xE8 Level n interrupt acknowledge resister */
  153. u8 res6[3]; /* 0xE9 - 0xEB */
  154. u8 Lniack0_3; /* 0xEC Level n interrupt acknowledge resister */
  155. u8 res7[3]; /* 0xED - 0xEF */
  156. u8 Lniack0_4; /* 0xF0 Level n interrupt acknowledge resister */
  157. u8 res8[3]; /* 0xF1 - 0xF3 */
  158. u8 Lniack0_5; /* 0xF4 Level n interrupt acknowledge resister */
  159. u8 res9[3]; /* 0xF5 - 0xF7 */
  160. u8 Lniack0_6; /* 0xF8 Level n interrupt acknowledge resister */
  161. u8 resa[3]; /* 0xF9 - 0xFB */
  162. u8 Lniack0_7; /* 0xFC Level n interrupt acknowledge resister */
  163. u8 resb[3]; /* 0xFD - 0xFF */
  164. } int0_t;
  165. /* Clock Module registers */
  166. typedef struct pll_ctrl {
  167. u16 syncr; /* 0x00 synthesizer control register */
  168. u16 synsr; /* 0x02 synthesizer status register */
  169. } pll_t;
  170. /* Watchdog registers */
  171. typedef struct wdog_ctrl {
  172. ushort wcr;
  173. ushort wmr;
  174. ushort wcntr;
  175. ushort wsr;
  176. } wdog_t;
  177. #endif /* __IMMAP_5282__ */