immap_5282.h 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  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 (CONFIG_SYS_MBAR + 0x00000000)
  27. #define MMAP_SDRAMC (CONFIG_SYS_MBAR + 0x00000040)
  28. #define MMAP_FBCS (CONFIG_SYS_MBAR + 0x00000080)
  29. #define MMAP_DMA0 (CONFIG_SYS_MBAR + 0x00000100)
  30. #define MMAP_DMA1 (CONFIG_SYS_MBAR + 0x00000140)
  31. #define MMAP_DMA2 (CONFIG_SYS_MBAR + 0x00000180)
  32. #define MMAP_DMA3 (CONFIG_SYS_MBAR + 0x000001C0)
  33. #define MMAP_UART0 (CONFIG_SYS_MBAR + 0x00000200)
  34. #define MMAP_UART1 (CONFIG_SYS_MBAR + 0x00000240)
  35. #define MMAP_UART2 (CONFIG_SYS_MBAR + 0x00000280)
  36. #define MMAP_I2C (CONFIG_SYS_MBAR + 0x00000300)
  37. #define MMAP_QSPI (CONFIG_SYS_MBAR + 0x00000340)
  38. #define MMAP_DTMR0 (CONFIG_SYS_MBAR + 0x00000400)
  39. #define MMAP_DTMR1 (CONFIG_SYS_MBAR + 0x00000440)
  40. #define MMAP_DTMR2 (CONFIG_SYS_MBAR + 0x00000480)
  41. #define MMAP_DTMR3 (CONFIG_SYS_MBAR + 0x000004C0)
  42. #define MMAP_INTC0 (CONFIG_SYS_MBAR + 0x00000C00)
  43. #define MMAP_INTC1 (CONFIG_SYS_MBAR + 0x00000D00)
  44. #define MMAP_INTCACK (CONFIG_SYS_MBAR + 0x00000F00)
  45. #define MMAP_FEC (CONFIG_SYS_MBAR + 0x00001000)
  46. #define MMAP_FECFIFO (CONFIG_SYS_MBAR + 0x00001400)
  47. #define MMAP_GPIO (CONFIG_SYS_MBAR + 0x00100000)
  48. #define MMAP_CCM (CONFIG_SYS_MBAR + 0x00110000)
  49. #define MMAP_PLL (CONFIG_SYS_MBAR + 0x00120000)
  50. #define MMAP_EPORT (CONFIG_SYS_MBAR + 0x00130000)
  51. #define MMAP_WDOG (CONFIG_SYS_MBAR + 0x00140000)
  52. #define MMAP_PIT0 (CONFIG_SYS_MBAR + 0x00150000)
  53. #define MMAP_PIT1 (CONFIG_SYS_MBAR + 0x00160000)
  54. #define MMAP_PIT2 (CONFIG_SYS_MBAR + 0x00170000)
  55. #define MMAP_PIT3 (CONFIG_SYS_MBAR + 0x00180000)
  56. #define MMAP_QADC (CONFIG_SYS_MBAR + 0x00190000)
  57. #define MMAP_GPTMRA (CONFIG_SYS_MBAR + 0x001A0000)
  58. #define MMAP_GPTMRB (CONFIG_SYS_MBAR + 0x001B0000)
  59. #define MMAP_CAN (CONFIG_SYS_MBAR + 0x001C0000)
  60. #define MMAP_CFMC (CONFIG_SYS_MBAR + 0x001D0000)
  61. #define MMAP_CFMMEM (CONFIG_SYS_MBAR + 0x04000000)
  62. #include <asm/coldfire/eport.h>
  63. #include <asm/coldfire/flexbus.h>
  64. #include <asm/coldfire/flexcan.h>
  65. #include <asm/coldfire/intctrl.h>
  66. #include <asm/coldfire/qspi.h>
  67. /* System Control Module */
  68. typedef struct scm_ctrl {
  69. u32 ipsbar;
  70. u32 res1;
  71. u32 rambar;
  72. u32 res2;
  73. u8 crsr;
  74. u8 cwcr;
  75. u8 lpicr;
  76. u8 cwsr;
  77. u32 res3;
  78. u8 mpark;
  79. u8 res4[3];
  80. u8 pacr0;
  81. u8 pacr1;
  82. u8 pacr2;
  83. u8 pacr3;
  84. u8 pacr4;
  85. u8 res5;
  86. u8 pacr5;
  87. u8 pacr6;
  88. u8 pacr7;
  89. u8 res6;
  90. u8 pacr8;
  91. u8 res7;
  92. u8 gpacr0;
  93. u8 gpacr1;
  94. u16 res8;
  95. } scm_t;
  96. typedef struct canex_ctrl {
  97. can_msg_t msg[16]; /* 0x00 Message Buffer 0-15 */
  98. } canex_t;
  99. /* Clock Module registers */
  100. typedef struct pll_ctrl {
  101. u16 syncr; /* 0x00 synthesizer control register */
  102. u16 synsr; /* 0x02 synthesizer status register */
  103. } pll_t;
  104. /* Watchdog registers */
  105. typedef struct wdog_ctrl {
  106. ushort wcr;
  107. ushort wmr;
  108. ushort wcntr;
  109. ushort wsr;
  110. } wdog_t;
  111. #endif /* __IMMAP_5282__ */