immap_5253.h 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. /*
  2. * MCF5253 Internal Memory Map
  3. *
  4. * Copyright (C) 2004-2007 Freescale Semiconductor, Inc.
  5. * TsiChung Liew (Tsi-Chung.Liew@freescale.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_5249__
  26. #define __IMMAP_5249__
  27. #define MMAP_INTC (CFG_MBAR + 0x00000040)
  28. #define MMAP_DTMR0 (CFG_MBAR + 0x00000140)
  29. #define MMAP_DTMR1 (CFG_MBAR + 0x00000180)
  30. #define MMAP_UART0 (CFG_MBAR + 0x000001C0)
  31. #define MMAP_UART1 (CFG_MBAR + 0x00000200)
  32. #define MMAP_I2C0 (CFG_MBAR + 0x00000280)
  33. #define MMAP_QSPI (CFG_MBAR + 0x00000400)
  34. #define MMAP_CAN0 (CFG_MBAR + 0x00010000)
  35. #define MMAP_CAN1 (CFG_MBAR + 0x00011000)
  36. #define MMAP_I2C1 (CFG_MBAR2 + 0x00000440)
  37. #define MMAP_UART2 (CFG_MBAR2 + 0x00000C00)
  38. /*********************************************************************
  39. * ATA Module (ATAC)
  40. *********************************************************************/
  41. /* Register read/write struct */
  42. typedef struct atac {
  43. /* PIO */
  44. u8 toff; /* 0x00 */
  45. u8 ton; /* 0x01 */
  46. u8 t1; /* 0x02 */
  47. u8 t2w; /* 0x03 */
  48. u8 t2r; /* 0x04 */
  49. u8 ta; /* 0x05 */
  50. u8 trd; /* 0x06 */
  51. u8 t4; /* 0x07 */
  52. u8 t9; /* 0x08 */
  53. /* DMA */
  54. u8 tm; /* 0x09 */
  55. u8 tn; /* 0x0A */
  56. u8 td; /* 0x0B */
  57. u8 tk; /* 0x0C */
  58. u8 tack; /* 0x0D */
  59. u8 tenv; /* 0x0E */
  60. u8 trp; /* 0x0F */
  61. u8 tzah; /* 0x10 */
  62. u8 tmli; /* 0x11 */
  63. u8 tdvh; /* 0x12 */
  64. u8 tdzfs; /* 0x13 */
  65. u8 tdvs; /* 0x14 */
  66. u8 tcvh; /* 0x15 */
  67. u8 tss; /* 0x16 */
  68. u8 tcyc; /* 0x17 */
  69. /* FIFO */
  70. u32 fifo32; /* 0x18 */
  71. u16 fifo16; /* 0x1C */
  72. u8 rsvd0[2];
  73. u8 ffill; /* 0x20 */
  74. u8 rsvd1[3];
  75. /* ATA */
  76. u8 cr; /* 0x24 */
  77. u8 rsvd2[3];
  78. u8 isr; /* 0x28 */
  79. u8 rsvd3[3];
  80. u8 ier; /* 0x2C */
  81. u8 rsvd4[3];
  82. u8 icr; /* 0x30 */
  83. u8 rsvd5[3];
  84. u8 falarm; /* 0x34 */
  85. } atac_t;
  86. #endif /* __IMMAP_5249__ */