board-mx31ads.h 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. /*
  2. * Copyright 2005-2007 Freescale Semiconductor, Inc. All Rights Reserved.
  3. */
  4. /*
  5. * This program is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License version 2 as
  7. * published by the Free Software Foundation.
  8. */
  9. #ifndef __ASM_ARCH_MXC_BOARD_MX31ADS_H__
  10. #define __ASM_ARCH_MXC_BOARD_MX31ADS_H__
  11. /*!
  12. * @name PBC Controller parameters
  13. */
  14. /*! @{ */
  15. /*!
  16. * Base address of PBC controller
  17. */
  18. #define PBC_BASE_ADDRESS IO_ADDRESS(CS4_BASE_ADDR)
  19. /* Offsets for the PBC Controller register */
  20. /*!
  21. * PBC Board status register offset
  22. */
  23. #define PBC_BSTAT 0x000002
  24. /*!
  25. * PBC Board control register 1 set address.
  26. */
  27. #define PBC_BCTRL1_SET 0x000004
  28. /*!
  29. * PBC Board control register 1 clear address.
  30. */
  31. #define PBC_BCTRL1_CLEAR 0x000006
  32. /*!
  33. * PBC Board control register 2 set address.
  34. */
  35. #define PBC_BCTRL2_SET 0x000008
  36. /*!
  37. * PBC Board control register 2 clear address.
  38. */
  39. #define PBC_BCTRL2_CLEAR 0x00000A
  40. /*!
  41. * PBC Board control register 3 set address.
  42. */
  43. #define PBC_BCTRL3_SET 0x00000C
  44. /*!
  45. * PBC Board control register 3 clear address.
  46. */
  47. #define PBC_BCTRL3_CLEAR 0x00000E
  48. /*!
  49. * PBC Board control register 4 set address.
  50. */
  51. #define PBC_BCTRL4_SET 0x000010
  52. /*!
  53. * PBC Board control register 4 clear address.
  54. */
  55. #define PBC_BCTRL4_CLEAR 0x000012
  56. /*!
  57. * PBC Board status register 1.
  58. */
  59. #define PBC_BSTAT1 0x000014
  60. /*!
  61. * PBC Board interrupt status register.
  62. */
  63. #define PBC_INTSTATUS 0x000016
  64. /*!
  65. * PBC Board interrupt current status register.
  66. */
  67. #define PBC_INTCURR_STATUS 0x000018
  68. /*!
  69. * PBC Interrupt mask register set address.
  70. */
  71. #define PBC_INTMASK_SET 0x00001A
  72. /*!
  73. * PBC Interrupt mask register clear address.
  74. */
  75. #define PBC_INTMASK_CLEAR 0x00001C
  76. /*!
  77. * External UART A.
  78. */
  79. #define PBC_SC16C652_UARTA 0x010000
  80. /*!
  81. * External UART B.
  82. */
  83. #define PBC_SC16C652_UARTB 0x010010
  84. /*!
  85. * Ethernet Controller IO base address.
  86. */
  87. #define PBC_CS8900A_IOBASE 0x020000
  88. /*!
  89. * Ethernet Controller Memory base address.
  90. */
  91. #define PBC_CS8900A_MEMBASE 0x021000
  92. /*!
  93. * Ethernet Controller DMA base address.
  94. */
  95. #define PBC_CS8900A_DMABASE 0x022000
  96. /*!
  97. * External chip select 0.
  98. */
  99. #define PBC_XCS0 0x040000
  100. /*!
  101. * LCD Display enable.
  102. */
  103. #define PBC_LCD_EN_B 0x060000
  104. /*!
  105. * Code test debug enable.
  106. */
  107. #define PBC_CODE_B 0x070000
  108. /*!
  109. * PSRAM memory select.
  110. */
  111. #define PBC_PSRAM_B 0x5000000
  112. #define PBC_INTSTATUS_REG (PBC_INTSTATUS + PBC_BASE_ADDRESS)
  113. #define PBC_INTCURR_STATUS_REG (PBC_INTCURR_STATUS + PBC_BASE_ADDRESS)
  114. #define PBC_INTMASK_SET_REG (PBC_INTMASK_SET + PBC_BASE_ADDRESS)
  115. #define PBC_INTMASK_CLEAR_REG (PBC_INTMASK_CLEAR + PBC_BASE_ADDRESS)
  116. #define EXPIO_PARENT_INT IOMUX_TO_IRQ(MX31_PIN_GPIO1_4)
  117. #define EXPIO_INT_LOW_BAT (MXC_EXP_IO_BASE + 0)
  118. #define EXPIO_INT_PB_IRQ (MXC_EXP_IO_BASE + 1)
  119. #define EXPIO_INT_OTG_FS_OVR (MXC_EXP_IO_BASE + 2)
  120. #define EXPIO_INT_FSH_OVR (MXC_EXP_IO_BASE + 3)
  121. #define EXPIO_INT_RES4 (MXC_EXP_IO_BASE + 4)
  122. #define EXPIO_INT_RES5 (MXC_EXP_IO_BASE + 5)
  123. #define EXPIO_INT_RES6 (MXC_EXP_IO_BASE + 6)
  124. #define EXPIO_INT_RES7 (MXC_EXP_IO_BASE + 7)
  125. #define EXPIO_INT_ENET_INT (MXC_EXP_IO_BASE + 8)
  126. #define EXPIO_INT_OTG_FS_INT (MXC_EXP_IO_BASE + 9)
  127. #define EXPIO_INT_XUART_INTA (MXC_EXP_IO_BASE + 10)
  128. #define EXPIO_INT_XUART_INTB (MXC_EXP_IO_BASE + 11)
  129. #define EXPIO_INT_SYNTH_IRQ (MXC_EXP_IO_BASE + 12)
  130. #define EXPIO_INT_CE_INT1 (MXC_EXP_IO_BASE + 13)
  131. #define EXPIO_INT_CE_INT2 (MXC_EXP_IO_BASE + 14)
  132. #define EXPIO_INT_RES15 (MXC_EXP_IO_BASE + 15)
  133. #define MXC_MAX_EXP_IO_LINES 16
  134. #endif /* __ASM_ARCH_MXC_BOARD_MX31ADS_H__ */