omap16xx.h 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  1. /*
  2. * Hardware definitions for TI OMAP1610/5912/1710 processors.
  3. *
  4. * Cleanup for Linux-2.6 by Dirk Behme <dirk.behme@de.bosch.com>
  5. *
  6. * This program is free software; you can redistribute it and/or modify it
  7. * under the terms of the GNU General Public License as published by the
  8. * Free Software Foundation; either version 2 of the License, or (at your
  9. * option) any later version.
  10. *
  11. * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED
  12. * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  13. * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
  14. * NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
  15. * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
  16. * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  17. * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
  18. * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  19. * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  20. * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  21. *
  22. * You should have received a copy of the GNU General Public License along
  23. * with this program; if not, write to the Free Software Foundation, Inc.,
  24. * 675 Mass Ave, Cambridge, MA 02139, USA.
  25. */
  26. #ifndef __ASM_ARCH_OMAP16XX_H
  27. #define __ASM_ARCH_OMAP16XX_H
  28. /*
  29. * ----------------------------------------------------------------------------
  30. * Base addresses
  31. * ----------------------------------------------------------------------------
  32. */
  33. /* Syntax: XX_BASE = Virtual base address, XX_START = Physical base address */
  34. #define OMAP16XX_DSP_BASE 0xE0000000
  35. #define OMAP16XX_DSP_SIZE 0x28000
  36. #define OMAP16XX_DSP_START 0xE0000000
  37. #define OMAP16XX_DSPREG_BASE 0xE1000000
  38. #define OMAP16XX_DSPREG_SIZE SZ_128K
  39. #define OMAP16XX_DSPREG_START 0xE1000000
  40. #define OMAP16XX_SEC_BASE 0xFFFE4000
  41. #define OMAP16XX_SEC_DES (OMAP16XX_SEC_BASE + 0x0000)
  42. #define OMAP16XX_SEC_SHA1MD5 (OMAP16XX_SEC_BASE + 0x0800)
  43. #define OMAP16XX_SEC_RNG (OMAP16XX_SEC_BASE + 0x1000)
  44. /*
  45. * ---------------------------------------------------------------------------
  46. * Interrupts
  47. * ---------------------------------------------------------------------------
  48. */
  49. #define OMAP_IH2_0_BASE (0xfffe0000)
  50. #define OMAP_IH2_1_BASE (0xfffe0100)
  51. #define OMAP_IH2_2_BASE (0xfffe0200)
  52. #define OMAP_IH2_3_BASE (0xfffe0300)
  53. #define OMAP_IH2_0_ITR (OMAP_IH2_0_BASE + 0x00)
  54. #define OMAP_IH2_0_MIR (OMAP_IH2_0_BASE + 0x04)
  55. #define OMAP_IH2_0_SIR_IRQ (OMAP_IH2_0_BASE + 0x10)
  56. #define OMAP_IH2_0_SIR_FIQ (OMAP_IH2_0_BASE + 0x14)
  57. #define OMAP_IH2_0_CONTROL (OMAP_IH2_0_BASE + 0x18)
  58. #define OMAP_IH2_0_ILR0 (OMAP_IH2_0_BASE + 0x1c)
  59. #define OMAP_IH2_0_ISR (OMAP_IH2_0_BASE + 0x9c)
  60. #define OMAP_IH2_1_ITR (OMAP_IH2_1_BASE + 0x00)
  61. #define OMAP_IH2_1_MIR (OMAP_IH2_1_BASE + 0x04)
  62. #define OMAP_IH2_1_SIR_IRQ (OMAP_IH2_1_BASE + 0x10)
  63. #define OMAP_IH2_1_SIR_FIQ (OMAP_IH2_1_BASE + 0x14)
  64. #define OMAP_IH2_1_CONTROL (OMAP_IH2_1_BASE + 0x18)
  65. #define OMAP_IH2_1_ILR1 (OMAP_IH2_1_BASE + 0x1c)
  66. #define OMAP_IH2_1_ISR (OMAP_IH2_1_BASE + 0x9c)
  67. #define OMAP_IH2_2_ITR (OMAP_IH2_2_BASE + 0x00)
  68. #define OMAP_IH2_2_MIR (OMAP_IH2_2_BASE + 0x04)
  69. #define OMAP_IH2_2_SIR_IRQ (OMAP_IH2_2_BASE + 0x10)
  70. #define OMAP_IH2_2_SIR_FIQ (OMAP_IH2_2_BASE + 0x14)
  71. #define OMAP_IH2_2_CONTROL (OMAP_IH2_2_BASE + 0x18)
  72. #define OMAP_IH2_2_ILR2 (OMAP_IH2_2_BASE + 0x1c)
  73. #define OMAP_IH2_2_ISR (OMAP_IH2_2_BASE + 0x9c)
  74. #define OMAP_IH2_3_ITR (OMAP_IH2_3_BASE + 0x00)
  75. #define OMAP_IH2_3_MIR (OMAP_IH2_3_BASE + 0x04)
  76. #define OMAP_IH2_3_SIR_IRQ (OMAP_IH2_3_BASE + 0x10)
  77. #define OMAP_IH2_3_SIR_FIQ (OMAP_IH2_3_BASE + 0x14)
  78. #define OMAP_IH2_3_CONTROL (OMAP_IH2_3_BASE + 0x18)
  79. #define OMAP_IH2_3_ILR3 (OMAP_IH2_3_BASE + 0x1c)
  80. #define OMAP_IH2_3_ISR (OMAP_IH2_3_BASE + 0x9c)
  81. /*
  82. * ----------------------------------------------------------------------------
  83. * Clocks
  84. * ----------------------------------------------------------------------------
  85. */
  86. #define OMAP16XX_ARM_IDLECT3 (CLKGEN_REG_BASE + 0x24)
  87. /*
  88. * ----------------------------------------------------------------------------
  89. * Pin configuration registers
  90. * ----------------------------------------------------------------------------
  91. */
  92. #define OMAP16XX_CONF_VOLTAGE_VDDSHV6 (1 << 8)
  93. #define OMAP16XX_CONF_VOLTAGE_VDDSHV7 (1 << 9)
  94. #define OMAP16XX_CONF_VOLTAGE_VDDSHV8 (1 << 10)
  95. #define OMAP16XX_CONF_VOLTAGE_VDDSHV9 (1 << 11)
  96. #define OMAP16XX_SUBLVDS_CONF_VALID (1 << 13)
  97. /*
  98. * ----------------------------------------------------------------------------
  99. * System control registers
  100. * ----------------------------------------------------------------------------
  101. */
  102. #define OMAP1610_RESET_CONTROL 0xfffe1140
  103. /*
  104. * ---------------------------------------------------------------------------
  105. * TIPB bus interface
  106. * ---------------------------------------------------------------------------
  107. */
  108. #define TIPB_SWITCH_BASE (0xfffbc800)
  109. #define OMAP16XX_MMCSD2_SSW_MPU_CONF (TIPB_SWITCH_BASE + 0x160)
  110. /* UART3 Registers Mapping through MPU bus */
  111. #define UART3_RHR (OMAP1_UART3_BASE + 0)
  112. #define UART3_THR (OMAP1_UART3_BASE + 0)
  113. #define UART3_DLL (OMAP1_UART3_BASE + 0)
  114. #define UART3_IER (OMAP1_UART3_BASE + 4)
  115. #define UART3_DLH (OMAP1_UART3_BASE + 4)
  116. #define UART3_IIR (OMAP1_UART3_BASE + 8)
  117. #define UART3_FCR (OMAP1_UART3_BASE + 8)
  118. #define UART3_EFR (OMAP1_UART3_BASE + 8)
  119. #define UART3_LCR (OMAP1_UART3_BASE + 0x0C)
  120. #define UART3_MCR (OMAP1_UART3_BASE + 0x10)
  121. #define UART3_XON1_ADDR1 (OMAP1_UART3_BASE + 0x10)
  122. #define UART3_XON2_ADDR2 (OMAP1_UART3_BASE + 0x14)
  123. #define UART3_LSR (OMAP1_UART3_BASE + 0x14)
  124. #define UART3_TCR (OMAP1_UART3_BASE + 0x18)
  125. #define UART3_MSR (OMAP1_UART3_BASE + 0x18)
  126. #define UART3_XOFF1 (OMAP1_UART3_BASE + 0x18)
  127. #define UART3_XOFF2 (OMAP1_UART3_BASE + 0x1C)
  128. #define UART3_SPR (OMAP1_UART3_BASE + 0x1C)
  129. #define UART3_TLR (OMAP1_UART3_BASE + 0x1C)
  130. #define UART3_MDR1 (OMAP1_UART3_BASE + 0x20)
  131. #define UART3_MDR2 (OMAP1_UART3_BASE + 0x24)
  132. #define UART3_SFLSR (OMAP1_UART3_BASE + 0x28)
  133. #define UART3_TXFLL (OMAP1_UART3_BASE + 0x28)
  134. #define UART3_RESUME (OMAP1_UART3_BASE + 0x2C)
  135. #define UART3_TXFLH (OMAP1_UART3_BASE + 0x2C)
  136. #define UART3_SFREGL (OMAP1_UART3_BASE + 0x30)
  137. #define UART3_RXFLL (OMAP1_UART3_BASE + 0x30)
  138. #define UART3_SFREGH (OMAP1_UART3_BASE + 0x34)
  139. #define UART3_RXFLH (OMAP1_UART3_BASE + 0x34)
  140. #define UART3_BLR (OMAP1_UART3_BASE + 0x38)
  141. #define UART3_ACREG (OMAP1_UART3_BASE + 0x3C)
  142. #define UART3_DIV16 (OMAP1_UART3_BASE + 0x3C)
  143. #define UART3_SCR (OMAP1_UART3_BASE + 0x40)
  144. #define UART3_SSR (OMAP1_UART3_BASE + 0x44)
  145. #define UART3_EBLR (OMAP1_UART3_BASE + 0x48)
  146. #define UART3_OSC_12M_SEL (OMAP1_UART3_BASE + 0x4C)
  147. #define UART3_MVR (OMAP1_UART3_BASE + 0x50)
  148. /*
  149. * ---------------------------------------------------------------------------
  150. * Watchdog timer
  151. * ---------------------------------------------------------------------------
  152. */
  153. /* 32-bit Watchdog timer in OMAP 16XX */
  154. #define OMAP_16XX_WATCHDOG_BASE (0xfffeb000)
  155. #define OMAP_16XX_WIDR (OMAP_16XX_WATCHDOG_BASE + 0x00)
  156. #define OMAP_16XX_WD_SYSCONFIG (OMAP_16XX_WATCHDOG_BASE + 0x10)
  157. #define OMAP_16XX_WD_SYSSTATUS (OMAP_16XX_WATCHDOG_BASE + 0x14)
  158. #define OMAP_16XX_WCLR (OMAP_16XX_WATCHDOG_BASE + 0x24)
  159. #define OMAP_16XX_WCRR (OMAP_16XX_WATCHDOG_BASE + 0x28)
  160. #define OMAP_16XX_WLDR (OMAP_16XX_WATCHDOG_BASE + 0x2c)
  161. #define OMAP_16XX_WTGR (OMAP_16XX_WATCHDOG_BASE + 0x30)
  162. #define OMAP_16XX_WWPS (OMAP_16XX_WATCHDOG_BASE + 0x34)
  163. #define OMAP_16XX_WSPR (OMAP_16XX_WATCHDOG_BASE + 0x48)
  164. #define WCLR_PRE_SHIFT 5
  165. #define WCLR_PTV_SHIFT 2
  166. #define WWPS_W_PEND_WSPR (1 << 4)
  167. #define WWPS_W_PEND_WTGR (1 << 3)
  168. #define WWPS_W_PEND_WLDR (1 << 2)
  169. #define WWPS_W_PEND_WCRR (1 << 1)
  170. #define WWPS_W_PEND_WCLR (1 << 0)
  171. #define WSPR_ENABLE_0 (0x0000bbbb)
  172. #define WSPR_ENABLE_1 (0x00004444)
  173. #define WSPR_DISABLE_0 (0x0000aaaa)
  174. #define WSPR_DISABLE_1 (0x00005555)
  175. #define OMAP16XX_DSP_MMU_BASE (0xfffed200)
  176. #define OMAP16XX_MAILBOX_BASE (0xfffcf000)
  177. #endif /* __ASM_ARCH_OMAP16XX_H */