aidmp.h 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378
  1. /*
  2. * Broadcom AMBA Interconnect definitions.
  3. *
  4. * Copyright (C) 1999-2011, Broadcom Corporation
  5. *
  6. * Unless you and Broadcom execute a separate written software license
  7. * agreement governing use of this software, this software is licensed to you
  8. * under the terms of the GNU General Public License version 2 (the "GPL"),
  9. * available at http://www.broadcom.com/licenses/GPLv2.php, with the
  10. * following added to such license:
  11. *
  12. * As a special exception, the copyright holders of this software give you
  13. * permission to link this software with independent modules, and to copy and
  14. * distribute the resulting executable under terms of your choice, provided that
  15. * you also meet, for each linked independent module, the terms and conditions of
  16. * the license of that module. An independent module is a module which is not
  17. * derived from this software. The special exception does not apply to any
  18. * modifications of the software.
  19. *
  20. * Notwithstanding the above, under no circumstances may you combine this
  21. * software in any way with any other Broadcom software provided under a license
  22. * other than the GPL, without Broadcom's express prior written consent.
  23. *
  24. * $Id: aidmp.h 277737 2011-08-16 17:54:59Z $
  25. */
  26. #ifndef _AIDMP_H
  27. #define _AIDMP_H
  28. #define MFGID_ARM 0x43b
  29. #define MFGID_BRCM 0x4bf
  30. #define MFGID_MIPS 0x4a7
  31. #define CC_SIM 0
  32. #define CC_EROM 1
  33. #define CC_CORESIGHT 9
  34. #define CC_VERIF 0xb
  35. #define CC_OPTIMO 0xd
  36. #define CC_GEN 0xe
  37. #define CC_PRIMECELL 0xf
  38. #define ER_EROMENTRY 0x000
  39. #define ER_REMAPCONTROL 0xe00
  40. #define ER_REMAPSELECT 0xe04
  41. #define ER_MASTERSELECT 0xe10
  42. #define ER_ITCR 0xf00
  43. #define ER_ITIP 0xf04
  44. #define ER_TAG 0xe
  45. #define ER_TAG1 0x6
  46. #define ER_VALID 1
  47. #define ER_CI 0
  48. #define ER_MP 2
  49. #define ER_ADD 4
  50. #define ER_END 0xe
  51. #define ER_BAD 0xffffffff
  52. #define CIA_MFG_MASK 0xfff00000
  53. #define CIA_MFG_SHIFT 20
  54. #define CIA_CID_MASK 0x000fff00
  55. #define CIA_CID_SHIFT 8
  56. #define CIA_CCL_MASK 0x000000f0
  57. #define CIA_CCL_SHIFT 4
  58. #define CIB_REV_MASK 0xff000000
  59. #define CIB_REV_SHIFT 24
  60. #define CIB_NSW_MASK 0x00f80000
  61. #define CIB_NSW_SHIFT 19
  62. #define CIB_NMW_MASK 0x0007c000
  63. #define CIB_NMW_SHIFT 14
  64. #define CIB_NSP_MASK 0x00003e00
  65. #define CIB_NSP_SHIFT 9
  66. #define CIB_NMP_MASK 0x000001f0
  67. #define CIB_NMP_SHIFT 4
  68. #define MPD_MUI_MASK 0x0000ff00
  69. #define MPD_MUI_SHIFT 8
  70. #define MPD_MP_MASK 0x000000f0
  71. #define MPD_MP_SHIFT 4
  72. #define AD_ADDR_MASK 0xfffff000
  73. #define AD_SP_MASK 0x00000f00
  74. #define AD_SP_SHIFT 8
  75. #define AD_ST_MASK 0x000000c0
  76. #define AD_ST_SHIFT 6
  77. #define AD_ST_SLAVE 0x00000000
  78. #define AD_ST_BRIDGE 0x00000040
  79. #define AD_ST_SWRAP 0x00000080
  80. #define AD_ST_MWRAP 0x000000c0
  81. #define AD_SZ_MASK 0x00000030
  82. #define AD_SZ_SHIFT 4
  83. #define AD_SZ_4K 0x00000000
  84. #define AD_SZ_8K 0x00000010
  85. #define AD_SZ_16K 0x00000020
  86. #define AD_SZ_SZD 0x00000030
  87. #define AD_AG32 0x00000008
  88. #define AD_ADDR_ALIGN 0x00000fff
  89. #define AD_SZ_BASE 0x00001000
  90. #define SD_SZ_MASK 0xfffff000
  91. #define SD_SG32 0x00000008
  92. #define SD_SZ_ALIGN 0x00000fff
  93. #ifndef _LANGUAGE_ASSEMBLY
  94. typedef volatile struct _aidmp {
  95. uint32 oobselina30;
  96. uint32 oobselina74;
  97. uint32 PAD[6];
  98. uint32 oobselinb30;
  99. uint32 oobselinb74;
  100. uint32 PAD[6];
  101. uint32 oobselinc30;
  102. uint32 oobselinc74;
  103. uint32 PAD[6];
  104. uint32 oobselind30;
  105. uint32 oobselind74;
  106. uint32 PAD[38];
  107. uint32 oobselouta30;
  108. uint32 oobselouta74;
  109. uint32 PAD[6];
  110. uint32 oobseloutb30;
  111. uint32 oobseloutb74;
  112. uint32 PAD[6];
  113. uint32 oobseloutc30;
  114. uint32 oobseloutc74;
  115. uint32 PAD[6];
  116. uint32 oobseloutd30;
  117. uint32 oobseloutd74;
  118. uint32 PAD[38];
  119. uint32 oobsynca;
  120. uint32 oobseloutaen;
  121. uint32 PAD[6];
  122. uint32 oobsyncb;
  123. uint32 oobseloutben;
  124. uint32 PAD[6];
  125. uint32 oobsyncc;
  126. uint32 oobseloutcen;
  127. uint32 PAD[6];
  128. uint32 oobsyncd;
  129. uint32 oobseloutden;
  130. uint32 PAD[38];
  131. uint32 oobaextwidth;
  132. uint32 oobainwidth;
  133. uint32 oobaoutwidth;
  134. uint32 PAD[5];
  135. uint32 oobbextwidth;
  136. uint32 oobbinwidth;
  137. uint32 oobboutwidth;
  138. uint32 PAD[5];
  139. uint32 oobcextwidth;
  140. uint32 oobcinwidth;
  141. uint32 oobcoutwidth;
  142. uint32 PAD[5];
  143. uint32 oobdextwidth;
  144. uint32 oobdinwidth;
  145. uint32 oobdoutwidth;
  146. uint32 PAD[37];
  147. uint32 ioctrlset;
  148. uint32 ioctrlclear;
  149. uint32 ioctrl;
  150. uint32 PAD[61];
  151. uint32 iostatus;
  152. uint32 PAD[127];
  153. uint32 ioctrlwidth;
  154. uint32 iostatuswidth;
  155. uint32 PAD[62];
  156. uint32 resetctrl;
  157. uint32 resetstatus;
  158. uint32 resetreadid;
  159. uint32 resetwriteid;
  160. uint32 PAD[60];
  161. uint32 errlogctrl;
  162. uint32 errlogdone;
  163. uint32 errlogstatus;
  164. uint32 errlogaddrlo;
  165. uint32 errlogaddrhi;
  166. uint32 errlogid;
  167. uint32 errloguser;
  168. uint32 errlogflags;
  169. uint32 PAD[56];
  170. uint32 intstatus;
  171. uint32 PAD[127];
  172. uint32 config;
  173. uint32 PAD[63];
  174. uint32 itcr;
  175. uint32 PAD[3];
  176. uint32 itipooba;
  177. uint32 itipoobb;
  178. uint32 itipoobc;
  179. uint32 itipoobd;
  180. uint32 PAD[4];
  181. uint32 itipoobaout;
  182. uint32 itipoobbout;
  183. uint32 itipoobcout;
  184. uint32 itipoobdout;
  185. uint32 PAD[4];
  186. uint32 itopooba;
  187. uint32 itopoobb;
  188. uint32 itopoobc;
  189. uint32 itopoobd;
  190. uint32 PAD[4];
  191. uint32 itopoobain;
  192. uint32 itopoobbin;
  193. uint32 itopoobcin;
  194. uint32 itopoobdin;
  195. uint32 PAD[4];
  196. uint32 itopreset;
  197. uint32 PAD[15];
  198. uint32 peripherialid4;
  199. uint32 peripherialid5;
  200. uint32 peripherialid6;
  201. uint32 peripherialid7;
  202. uint32 peripherialid0;
  203. uint32 peripherialid1;
  204. uint32 peripherialid2;
  205. uint32 peripherialid3;
  206. uint32 componentid0;
  207. uint32 componentid1;
  208. uint32 componentid2;
  209. uint32 componentid3;
  210. } aidmp_t;
  211. #endif
  212. #define OOB_BUSCONFIG 0x020
  213. #define OOB_STATUSA 0x100
  214. #define OOB_STATUSB 0x104
  215. #define OOB_STATUSC 0x108
  216. #define OOB_STATUSD 0x10c
  217. #define OOB_ENABLEA0 0x200
  218. #define OOB_ENABLEA1 0x204
  219. #define OOB_ENABLEA2 0x208
  220. #define OOB_ENABLEA3 0x20c
  221. #define OOB_ENABLEB0 0x280
  222. #define OOB_ENABLEB1 0x284
  223. #define OOB_ENABLEB2 0x288
  224. #define OOB_ENABLEB3 0x28c
  225. #define OOB_ENABLEC0 0x300
  226. #define OOB_ENABLEC1 0x304
  227. #define OOB_ENABLEC2 0x308
  228. #define OOB_ENABLEC3 0x30c
  229. #define OOB_ENABLED0 0x380
  230. #define OOB_ENABLED1 0x384
  231. #define OOB_ENABLED2 0x388
  232. #define OOB_ENABLED3 0x38c
  233. #define OOB_ITCR 0xf00
  234. #define OOB_ITIPOOBA 0xf10
  235. #define OOB_ITIPOOBB 0xf14
  236. #define OOB_ITIPOOBC 0xf18
  237. #define OOB_ITIPOOBD 0xf1c
  238. #define OOB_ITOPOOBA 0xf30
  239. #define OOB_ITOPOOBB 0xf34
  240. #define OOB_ITOPOOBC 0xf38
  241. #define OOB_ITOPOOBD 0xf3c
  242. #define AI_OOBSELINA30 0x000
  243. #define AI_OOBSELINA74 0x004
  244. #define AI_OOBSELINB30 0x020
  245. #define AI_OOBSELINB74 0x024
  246. #define AI_OOBSELINC30 0x040
  247. #define AI_OOBSELINC74 0x044
  248. #define AI_OOBSELIND30 0x060
  249. #define AI_OOBSELIND74 0x064
  250. #define AI_OOBSELOUTA30 0x100
  251. #define AI_OOBSELOUTA74 0x104
  252. #define AI_OOBSELOUTB30 0x120
  253. #define AI_OOBSELOUTB74 0x124
  254. #define AI_OOBSELOUTC30 0x140
  255. #define AI_OOBSELOUTC74 0x144
  256. #define AI_OOBSELOUTD30 0x160
  257. #define AI_OOBSELOUTD74 0x164
  258. #define AI_OOBSYNCA 0x200
  259. #define AI_OOBSELOUTAEN 0x204
  260. #define AI_OOBSYNCB 0x220
  261. #define AI_OOBSELOUTBEN 0x224
  262. #define AI_OOBSYNCC 0x240
  263. #define AI_OOBSELOUTCEN 0x244
  264. #define AI_OOBSYNCD 0x260
  265. #define AI_OOBSELOUTDEN 0x264
  266. #define AI_OOBAEXTWIDTH 0x300
  267. #define AI_OOBAINWIDTH 0x304
  268. #define AI_OOBAOUTWIDTH 0x308
  269. #define AI_OOBBEXTWIDTH 0x320
  270. #define AI_OOBBINWIDTH 0x324
  271. #define AI_OOBBOUTWIDTH 0x328
  272. #define AI_OOBCEXTWIDTH 0x340
  273. #define AI_OOBCINWIDTH 0x344
  274. #define AI_OOBCOUTWIDTH 0x348
  275. #define AI_OOBDEXTWIDTH 0x360
  276. #define AI_OOBDINWIDTH 0x364
  277. #define AI_OOBDOUTWIDTH 0x368
  278. #define AI_IOCTRLSET 0x400
  279. #define AI_IOCTRLCLEAR 0x404
  280. #define AI_IOCTRL 0x408
  281. #define AI_IOSTATUS 0x500
  282. #define AI_RESETCTRL 0x800
  283. #define AI_RESETSTATUS 0x804
  284. #define AI_IOCTRLWIDTH 0x700
  285. #define AI_IOSTATUSWIDTH 0x704
  286. #define AI_RESETREADID 0x808
  287. #define AI_RESETWRITEID 0x80c
  288. #define AI_ERRLOGCTRL 0xa00
  289. #define AI_ERRLOGDONE 0xa04
  290. #define AI_ERRLOGSTATUS 0xa08
  291. #define AI_ERRLOGADDRLO 0xa0c
  292. #define AI_ERRLOGADDRHI 0xa10
  293. #define AI_ERRLOGID 0xa14
  294. #define AI_ERRLOGUSER 0xa18
  295. #define AI_ERRLOGFLAGS 0xa1c
  296. #define AI_INTSTATUS 0xa00
  297. #define AI_CONFIG 0xe00
  298. #define AI_ITCR 0xf00
  299. #define AI_ITIPOOBA 0xf10
  300. #define AI_ITIPOOBB 0xf14
  301. #define AI_ITIPOOBC 0xf18
  302. #define AI_ITIPOOBD 0xf1c
  303. #define AI_ITIPOOBAOUT 0xf30
  304. #define AI_ITIPOOBBOUT 0xf34
  305. #define AI_ITIPOOBCOUT 0xf38
  306. #define AI_ITIPOOBDOUT 0xf3c
  307. #define AI_ITOPOOBA 0xf50
  308. #define AI_ITOPOOBB 0xf54
  309. #define AI_ITOPOOBC 0xf58
  310. #define AI_ITOPOOBD 0xf5c
  311. #define AI_ITOPOOBAIN 0xf70
  312. #define AI_ITOPOOBBIN 0xf74
  313. #define AI_ITOPOOBCIN 0xf78
  314. #define AI_ITOPOOBDIN 0xf7c
  315. #define AI_ITOPRESET 0xf90
  316. #define AI_PERIPHERIALID4 0xfd0
  317. #define AI_PERIPHERIALID5 0xfd4
  318. #define AI_PERIPHERIALID6 0xfd8
  319. #define AI_PERIPHERIALID7 0xfdc
  320. #define AI_PERIPHERIALID0 0xfe0
  321. #define AI_PERIPHERIALID1 0xfe4
  322. #define AI_PERIPHERIALID2 0xfe8
  323. #define AI_PERIPHERIALID3 0xfec
  324. #define AI_COMPONENTID0 0xff0
  325. #define AI_COMPONENTID1 0xff4
  326. #define AI_COMPONENTID2 0xff8
  327. #define AI_COMPONENTID3 0xffc
  328. #define AIRC_RESET 1
  329. #define AICFG_OOB 0x00000020
  330. #define AICFG_IOS 0x00000010
  331. #define AICFG_IOC 0x00000008
  332. #define AICFG_TO 0x00000004
  333. #define AICFG_ERRL 0x00000002
  334. #define AICFG_RST 0x00000001
  335. #define OOB_SEL_OUTEN_B_5 15
  336. #define OOB_SEL_OUTEN_B_6 23
  337. #endif