reg_ebi.h 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242
  1. /*
  2. * (C) Copyright 2008 Stefan Roese <sr@denx.de>, DENX Software Engineering
  3. *
  4. * Copyright (C) 2006 Micronas GmbH
  5. *
  6. * This program is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU General Public License as
  8. * published by the Free Software Foundation; either version 2 of
  9. * the License, or (at your option) any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with this program; if not, write to the Free Software
  18. * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  19. * MA 02111-1307 USA
  20. */
  21. #ifndef _REG_EBI_PREMIUM_H_
  22. #define _REG_EBI_PREMIUM_H_
  23. #define EBI_BASE 0x00000000
  24. /* Relative offsets of the register adresses */
  25. #define EBI_CPU_IO_ACCS_OFFS 0x00000000
  26. #define EBI_CPU_IO_ACCS(base) ((base) + EBI_CPU_IO_ACCS_OFFS)
  27. #define EBI_IO_ACCS_DATA_OFFS 0x00000004
  28. #define EBI_IO_ACCS_DATA(base) ((base) + EBI_IO_ACCS_DATA_OFFS)
  29. #define EBI_CTRL_OFFS 0x00000008
  30. #define EBI_CTRL(base) ((base) + EBI_CTRL_OFFS)
  31. #define EBI_IRQ_MASK_OFFS 0x00000010
  32. #define EBI_IRQ_MASK(base) ((base) + EBI_IRQ_MASK_OFFS)
  33. #define EBI_TAG1_SYS_ID_OFFS 0x00000030
  34. #define EBI_TAG1_SYS_ID(base) ((base) + EBI_TAG1_SYS_ID_OFFS)
  35. #define EBI_TAG2_SYS_ID_OFFS 0x00000040
  36. #define EBI_TAG2_SYS_ID(base) ((base) + EBI_TAG2_SYS_ID_OFFS)
  37. #define EBI_TAG3_SYS_ID_OFFS 0x00000050
  38. #define EBI_TAG3_SYS_ID(base) ((base) + EBI_TAG3_SYS_ID_OFFS)
  39. #define EBI_TAG4_SYS_ID_OFFS 0x00000060
  40. #define EBI_TAG4_SYS_ID(base) ((base) + EBI_TAG4_SYS_ID_OFFS)
  41. #define EBI_GEN_DMA_CTRL_OFFS 0x00000070
  42. #define EBI_GEN_DMA_CTRL(base) ((base) + EBI_GEN_DMA_CTRL_OFFS)
  43. #define EBI_STATUS_OFFS 0x00000080
  44. #define EBI_STATUS(base) ((base) + EBI_STATUS_OFFS)
  45. #define EBI_STATUS_DMA_CNT_OFFS 0x00000084
  46. #define EBI_STATUS_DMA_CNT(base) ((base) + EBI_STATUS_DMA_CNT_OFFS)
  47. #define EBI_SIG_LEVEL_OFFS 0x00000088
  48. #define EBI_SIG_LEVEL(base) ((base) + EBI_SIG_LEVEL_OFFS)
  49. #define EBI_CTRL_SIG_ACTLV_OFFS 0x0000008C
  50. #define EBI_CTRL_SIG_ACTLV(base) ((base) + EBI_CTRL_SIG_ACTLV_OFFS)
  51. #define EBI_EXT_ADDR_OFFS 0x000000A0
  52. #define EBI_EXT_ADDR(base) ((base) + EBI_EXT_ADDR_OFFS)
  53. #define EBI_IRQ_STATUS_OFFS 0x000000B0
  54. #define EBI_IRQ_STATUS(base) ((base) + EBI_IRQ_STATUS_OFFS)
  55. #define EBI_DEV1_DMA_EXT_ADDR_OFFS 0x00000100
  56. #define EBI_DEV1_DMA_EXT_ADDR(base) ((base) + EBI_DEV1_DMA_EXT_ADDR_OFFS)
  57. #define EBI_DEV1_EXT_ACC_OFFS 0x00000104
  58. #define EBI_DEV1_EXT_ACC(base) ((base) + EBI_DEV1_EXT_ACC_OFFS)
  59. #define EBI_DEV1_CONFIG1_OFFS 0x00000108
  60. #define EBI_DEV1_CONFIG1(base) ((base) + EBI_DEV1_CONFIG1_OFFS)
  61. #define EBI_DEV1_CONFIG2_OFFS 0x0000010C
  62. #define EBI_DEV1_CONFIG2(base) ((base) + EBI_DEV1_CONFIG2_OFFS)
  63. #define EBI_DEV1_FIFO_CONFIG_OFFS 0x00000110
  64. #define EBI_DEV1_FIFO_CONFIG(base) ((base) + EBI_DEV1_FIFO_CONFIG_OFFS)
  65. #define EBI_DEV1_FLASH_CONF_ST_OFFS 0x00000114
  66. #define EBI_DEV1_FLASH_CONF_ST(base) ((base) + EBI_DEV1_FLASH_CONF_ST_OFFS)
  67. #define EBI_DEV1_DMA_CONFIG1_OFFS 0x00000118
  68. #define EBI_DEV1_DMA_CONFIG1(base) ((base) + EBI_DEV1_DMA_CONFIG1_OFFS)
  69. #define EBI_DEV1_DMA_CONFIG2_OFFS 0x0000011C
  70. #define EBI_DEV1_DMA_CONFIG2(base) ((base) + EBI_DEV1_DMA_CONFIG2_OFFS)
  71. #define EBI_DEV1_TIM1_RD1_OFFS 0x00000124
  72. #define EBI_DEV1_TIM1_RD1(base) ((base) + EBI_DEV1_TIM1_RD1_OFFS)
  73. #define EBI_DEV1_TIM1_RD2_OFFS 0x00000128
  74. #define EBI_DEV1_TIM1_RD2(base) ((base) + EBI_DEV1_TIM1_RD2_OFFS)
  75. #define EBI_DEV1_TIM1_WR1_OFFS 0x0000012C
  76. #define EBI_DEV1_TIM1_WR1(base) ((base) + EBI_DEV1_TIM1_WR1_OFFS)
  77. #define EBI_DEV1_TIM1_WR2_OFFS 0x00000130
  78. #define EBI_DEV1_TIM1_WR2(base) ((base) + EBI_DEV1_TIM1_WR2_OFFS)
  79. #define EBI_DEV1_TIM_EXT_OFFS 0x00000134
  80. #define EBI_DEV1_TIM_EXT(base) ((base) + EBI_DEV1_TIM_EXT_OFFS)
  81. #define EBI_DEV1_TIM2_CFI_RD1_OFFS 0x00000138
  82. #define EBI_DEV1_TIM2_CFI_RD1(base) ((base) + EBI_DEV1_TIM2_CFI_RD1_OFFS)
  83. #define EBI_DEV1_TIM2_CFI_RD2_OFFS 0x0000013C
  84. #define EBI_DEV1_TIM2_CFI_RD2(base) ((base) + EBI_DEV1_TIM2_CFI_RD2_OFFS)
  85. #define EBI_DEV1_TIM3_DMA1_OFFS 0x00000140
  86. #define EBI_DEV1_TIM3_DMA1(base) ((base) + EBI_DEV1_TIM3_DMA1_OFFS)
  87. #define EBI_DEV1_TIM3_DMA2_OFFS 0x00000144
  88. #define EBI_DEV1_TIM3_DMA2(base) ((base) + EBI_DEV1_TIM3_DMA2_OFFS)
  89. #define EBI_DEV1_ACK_RM_CNT_OFFS 0x00000150
  90. #define EBI_DEV1_ACK_RM_CNT(base) ((base) + EBI_DEV1_ACK_RM_CNT_OFFS)
  91. #define EBI_DEV2_DMA_EXT_ADDR_OFFS 0x00000200
  92. #define EBI_DEV2_DMA_EXT_ADDR(base) ((base) + EBI_DEV2_DMA_EXT_ADDR_OFFS)
  93. #define EBI_DEV2_EXT_ACC_OFFS 0x00000204
  94. #define EBI_DEV2_EXT_ACC(base) ((base) + EBI_DEV2_EXT_ACC_OFFS)
  95. #define EBI_DEV2_CONFIG1_OFFS 0x00000208
  96. #define EBI_DEV2_CONFIG1(base) ((base) + EBI_DEV2_CONFIG1_OFFS)
  97. #define EBI_DEV2_CONFIG2_OFFS 0x0000020C
  98. #define EBI_DEV2_CONFIG2(base) ((base) + EBI_DEV2_CONFIG2_OFFS)
  99. #define EBI_DEV2_FIFO_CONFIG_OFFS 0x00000210
  100. #define EBI_DEV2_FIFO_CONFIG(base) ((base) + EBI_DEV2_FIFO_CONFIG_OFFS)
  101. #define EBI_DEV2_FLASH_CONF_ST_OFFS 0x00000214
  102. #define EBI_DEV2_FLASH_CONF_ST(base) ((base) + EBI_DEV2_FLASH_CONF_ST_OFFS)
  103. #define EBI_DEV2_DMA_CONFIG1_OFFS 0x00000218
  104. #define EBI_DEV2_DMA_CONFIG1(base) ((base) + EBI_DEV2_DMA_CONFIG1_OFFS)
  105. #define EBI_DEV2_DMA_CONFIG2_OFFS 0x0000021C
  106. #define EBI_DEV2_DMA_CONFIG2(base) ((base) + EBI_DEV2_DMA_CONFIG2_OFFS)
  107. #define EBI_DEV2_TIM1_RD1_OFFS 0x00000224
  108. #define EBI_DEV2_TIM1_RD1(base) ((base) + EBI_DEV2_TIM1_RD1_OFFS)
  109. #define EBI_DEV2_TIM1_RD2_OFFS 0x00000228
  110. #define EBI_DEV2_TIM1_RD2(base) ((base) + EBI_DEV2_TIM1_RD2_OFFS)
  111. #define EBI_DEV2_TIM1_WR1_OFFS 0x0000022C
  112. #define EBI_DEV2_TIM1_WR1(base) ((base) + EBI_DEV2_TIM1_WR1_OFFS)
  113. #define EBI_DEV2_TIM1_WR2_OFFS 0x00000230
  114. #define EBI_DEV2_TIM1_WR2(base) ((base) + EBI_DEV2_TIM1_WR2_OFFS)
  115. #define EBI_DEV2_TIM_EXT_OFFS 0x00000234
  116. #define EBI_DEV2_TIM_EXT(base) ((base) + EBI_DEV2_TIM_EXT_OFFS)
  117. #define EBI_DEV2_TIM2_CFI_RD1_OFFS 0x00000238
  118. #define EBI_DEV2_TIM2_CFI_RD1(base) ((base) + EBI_DEV2_TIM2_CFI_RD1_OFFS)
  119. #define EBI_DEV2_TIM2_CFI_RD2_OFFS 0x0000023C
  120. #define EBI_DEV2_TIM2_CFI_RD2(base) ((base) + EBI_DEV2_TIM2_CFI_RD2_OFFS)
  121. #define EBI_DEV2_TIM3_DMA1_OFFS 0x00000240
  122. #define EBI_DEV2_TIM3_DMA1(base) ((base) + EBI_DEV2_TIM3_DMA1_OFFS)
  123. #define EBI_DEV2_TIM3_DMA2_OFFS 0x00000244
  124. #define EBI_DEV2_TIM3_DMA2(base) ((base) + EBI_DEV2_TIM3_DMA2_OFFS)
  125. #define EBI_DEV2_ACK_RM_CNT_OFFS 0x00000250
  126. #define EBI_DEV2_ACK_RM_CNT(base) ((base) + EBI_DEV2_ACK_RM_CNT_OFFS)
  127. #define EBI_DEV3_DMA_EXT_ADDR_OFFS 0x00000300
  128. #define EBI_DEV3_DMA_EXT_ADDR(base) ((base) + EBI_DEV3_DMA_EXT_ADDR_OFFS)
  129. #define EBI_DEV3_EXT_ACC_OFFS 0x00000304
  130. #define EBI_DEV3_EXT_ACC(base) ((base) + EBI_DEV3_EXT_ACC_OFFS)
  131. #define EBI_DEV3_CONFIG1_OFFS 0x00000308
  132. #define EBI_DEV3_CONFIG1(base) ((base) + EBI_DEV3_CONFIG1_OFFS)
  133. #define EBI_DEV3_CONFIG2_OFFS 0x0000030C
  134. #define EBI_DEV3_CONFIG2(base) ((base) + EBI_DEV3_CONFIG2_OFFS)
  135. #define EBI_DEV3_FIFO_CONFIG_OFFS 0x00000310
  136. #define EBI_DEV3_FIFO_CONFIG(base) ((base) + EBI_DEV3_FIFO_CONFIG_OFFS)
  137. #define EBI_DEV3_FLASH_CONF_ST_OFFS 0x00000314
  138. #define EBI_DEV3_FLASH_CONF_ST(base) ((base) + EBI_DEV3_FLASH_CONF_ST_OFFS)
  139. #define EBI_DEV3_DMA_CONFIG1_OFFS 0x00000318
  140. #define EBI_DEV3_DMA_CONFIG1(base) ((base) + EBI_DEV3_DMA_CONFIG1_OFFS)
  141. #define EBI_DEV3_DMA_CONFIG2_OFFS 0x0000031C
  142. #define EBI_DEV3_DMA_CONFIG2(base) ((base) + EBI_DEV3_DMA_CONFIG2_OFFS)
  143. #define EBI_DEV3_TIM1_RD1_OFFS 0x00000324
  144. #define EBI_DEV3_TIM1_RD1(base) ((base) + EBI_DEV3_TIM1_RD1_OFFS)
  145. #define EBI_DEV3_TIM1_RD2_OFFS 0x00000328
  146. #define EBI_DEV3_TIM1_RD2(base) ((base) + EBI_DEV3_TIM1_RD2_OFFS)
  147. #define EBI_DEV3_TIM1_WR1_OFFS 0x0000032C
  148. #define EBI_DEV3_TIM1_WR1(base) ((base) + EBI_DEV3_TIM1_WR1_OFFS)
  149. #define EBI_DEV3_TIM1_WR2_OFFS 0x00000330
  150. #define EBI_DEV3_TIM1_WR2(base) ((base) + EBI_DEV3_TIM1_WR2_OFFS)
  151. #define EBI_DEV3_TIM_EXT_OFFS 0x00000334
  152. #define EBI_DEV3_TIM_EXT(base) ((base) + EBI_DEV3_TIM_EXT_OFFS)
  153. #define EBI_DEV3_TIM2_CFI_RD1_OFFS 0x00000338
  154. #define EBI_DEV3_TIM2_CFI_RD1(base) ((base) + EBI_DEV3_TIM2_CFI_RD1_OFFS)
  155. #define EBI_DEV3_TIM2_CFI_RD2_OFFS 0x0000033C
  156. #define EBI_DEV3_TIM2_CFI_RD2(base) ((base) + EBI_DEV3_TIM2_CFI_RD2_OFFS)
  157. #define EBI_DEV3_TIM3_DMA1_OFFS 0x00000340
  158. #define EBI_DEV3_TIM3_DMA1(base) ((base) + EBI_DEV3_TIM3_DMA1_OFFS)
  159. #define EBI_DEV3_TIM3_DMA2_OFFS 0x00000344
  160. #define EBI_DEV3_TIM3_DMA2(base) ((base) + EBI_DEV3_TIM3_DMA2_OFFS)
  161. #define EBI_DEV3_ACK_RM_CNT_OFFS 0x00000350
  162. #define EBI_DEV3_ACK_RM_CNT(base) ((base) + EBI_DEV3_ACK_RM_CNT_OFFS)
  163. #define EBI_DEV4_DMA_EXT_ADDR_OFFS 0x00000400
  164. #define EBI_DEV4_DMA_EXT_ADDR(base) ((base) + EBI_DEV4_DMA_EXT_ADDR_OFFS)
  165. #define EBI_DEV4_EXT_ACC_OFFS 0x00000404
  166. #define EBI_DEV4_EXT_ACC(base) ((base) + EBI_DEV4_EXT_ACC_OFFS)
  167. #define EBI_DEV4_CONFIG1_OFFS 0x00000408
  168. #define EBI_DEV4_CONFIG1(base) ((base) + EBI_DEV4_CONFIG1_OFFS)
  169. #define EBI_DEV4_CONFIG2_OFFS 0x0000040C
  170. #define EBI_DEV4_CONFIG2(base) ((base) + EBI_DEV4_CONFIG2_OFFS)
  171. #define EBI_DEV4_FIFO_CONFIG_OFFS 0x00000410
  172. #define EBI_DEV4_FIFO_CONFIG(base) ((base) + EBI_DEV4_FIFO_CONFIG_OFFS)
  173. #define EBI_DEV4_FLASH_CONF_ST_OFFS 0x00000414
  174. #define EBI_DEV4_FLASH_CONF_ST(base) ((base) + EBI_DEV4_FLASH_CONF_ST_OFFS)
  175. #define EBI_DEV4_DMA_CONFIG1_OFFS 0x00000418
  176. #define EBI_DEV4_DMA_CONFIG1(base) ((base) + EBI_DEV4_DMA_CONFIG1_OFFS)
  177. #define EBI_DEV4_DMA_CONFIG2_OFFS 0x0000041C
  178. #define EBI_DEV4_DMA_CONFIG2(base) ((base) + EBI_DEV4_DMA_CONFIG2_OFFS)
  179. #define EBI_DEV4_TIM1_RD1_OFFS 0x00000424
  180. #define EBI_DEV4_TIM1_RD1(base) ((base) + EBI_DEV4_TIM1_RD1_OFFS)
  181. #define EBI_DEV4_TIM1_RD2_OFFS 0x00000428
  182. #define EBI_DEV4_TIM1_RD2(base) ((base) + EBI_DEV4_TIM1_RD2_OFFS)
  183. #define EBI_DEV4_TIM1_WR1_OFFS 0x0000042C
  184. #define EBI_DEV4_TIM1_WR1(base) ((base) + EBI_DEV4_TIM1_WR1_OFFS)
  185. #define EBI_DEV4_TIM1_WR2_OFFS 0x00000430
  186. #define EBI_DEV4_TIM1_WR2(base) ((base) + EBI_DEV4_TIM1_WR2_OFFS)
  187. #define EBI_DEV4_TIM_EXT_OFFS 0x00000434
  188. #define EBI_DEV4_TIM_EXT(base) ((base) + EBI_DEV4_TIM_EXT_OFFS)
  189. #define EBI_DEV4_TIM2_CFI_RD1_OFFS 0x00000438
  190. #define EBI_DEV4_TIM2_CFI_RD1(base) ((base) + EBI_DEV4_TIM2_CFI_RD1_OFFS)
  191. #define EBI_DEV4_TIM2_CFI_RD2_OFFS 0x0000043C
  192. #define EBI_DEV4_TIM2_CFI_RD2(base) ((base) + EBI_DEV4_TIM2_CFI_RD2_OFFS)
  193. #define EBI_DEV4_TIM3_DMA1_OFFS 0x00000440
  194. #define EBI_DEV4_TIM3_DMA1(base) ((base) + EBI_DEV4_TIM3_DMA1_OFFS)
  195. #define EBI_DEV4_TIM3_DMA2_OFFS 0x00000444
  196. #define EBI_DEV4_TIM3_DMA2(base) ((base) + EBI_DEV4_TIM3_DMA2_OFFS)
  197. #define EBI_DEV4_ACK_RM_CNT_OFFS 0x00000450
  198. #define EBI_DEV4_ACK_RM_CNT(base) ((base) + EBI_DEV4_ACK_RM_CNT_OFFS)
  199. #define EBI_CNT_FL_PROGR_OFFS 0x00000904
  200. #define EBI_CNT_FL_PROGR(base) ((base) + EBI_CNT_FL_PROGR_OFFS)
  201. #define EBI_CNT_EXT_PAGE_SZ_OFFS 0x0000090C
  202. #define EBI_CNT_EXT_PAGE_SZ(base) ((base) + EBI_CNT_EXT_PAGE_SZ_OFFS)
  203. #define EBI_CNT_WAIT_RDY_OFFS 0x00000914
  204. #define EBI_CNT_WAIT_RDY(base) ((base) + EBI_CNT_WAIT_RDY_OFFS)
  205. #define EBI_CNT_ACK_OFFS 0x00000918
  206. #define EBI_CNT_ACK(base) ((base) + EBI_CNT_ACK_OFFS)
  207. #define EBI_GENIO1_CONFIG1_OFFS 0x00000A00
  208. #define EBI_GENIO1_CONFIG1(base) ((base) + EBI_GENIO1_CONFIG1_OFFS)
  209. #define EBI_GENIO1_CONFIG2_OFFS 0x00000A04
  210. #define EBI_GENIO1_CONFIG2(base) ((base) + EBI_GENIO1_CONFIG2_OFFS)
  211. #define EBI_GENIO1_CONFIG3_OFFS 0x00000A08
  212. #define EBI_GENIO1_CONFIG3(base) ((base) + EBI_GENIO1_CONFIG3_OFFS)
  213. #define EBI_GENIO2_CONFIG1_OFFS 0x00000A10
  214. #define EBI_GENIO2_CONFIG1(base) ((base) + EBI_GENIO2_CONFIG1_OFFS)
  215. #define EBI_GENIO2_CONFIG2_OFFS 0x00000A14
  216. #define EBI_GENIO2_CONFIG2(base) ((base) + EBI_GENIO2_CONFIG2_OFFS)
  217. #define EBI_GENIO2_CONFIG3_OFFS 0x00000A18
  218. #define EBI_GENIO2_CONFIG3(base) ((base) + EBI_GENIO2_CONFIG3_OFFS)
  219. #define EBI_GENIO3_CONFIG1_OFFS 0x00000A20
  220. #define EBI_GENIO3_CONFIG1(base) ((base) + EBI_GENIO3_CONFIG1_OFFS)
  221. #define EBI_GENIO3_CONFIG2_OFFS 0x00000A24
  222. #define EBI_GENIO3_CONFIG2(base) ((base) + EBI_GENIO3_CONFIG2_OFFS)
  223. #define EBI_GENIO3_CONFIG3_OFFS 0x00000A28
  224. #define EBI_GENIO3_CONFIG3(base) ((base) + EBI_GENIO3_CONFIG3_OFFS)
  225. #define EBI_GENIO4_CONFIG1_OFFS 0x00000A30
  226. #define EBI_GENIO4_CONFIG1(base) ((base) + EBI_GENIO4_CONFIG1_OFFS)
  227. #define EBI_GENIO4_CONFIG2_OFFS 0x00000A34
  228. #define EBI_GENIO4_CONFIG2(base) ((base) + EBI_GENIO4_CONFIG2_OFFS)
  229. #define EBI_GENIO4_CONFIG3_OFFS 0x00000A38
  230. #define EBI_GENIO4_CONFIG3(base) ((base) + EBI_GENIO4_CONFIG3_OFFS)
  231. #define EBI_GENIO5_CONFIG1_OFFS 0x00000A40
  232. #define EBI_GENIO5_CONFIG1(base) ((base) + EBI_GENIO5_CONFIG1_OFFS)
  233. #define EBI_GENIO5_CONFIG2_OFFS 0x00000A44
  234. #define EBI_GENIO5_CONFIG2(base) ((base) + EBI_GENIO5_CONFIG2_OFFS)
  235. #define EBI_GENIO5_CONFIG3_OFFS 0x00000A48
  236. #define EBI_GENIO5_CONFIG3(base) ((base) + EBI_GENIO5_CONFIG3_OFFS)
  237. #endif