r8a7791.h 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598
  1. /*
  2. * arch/arm/include/asm/arch-rmobile/r8a7791.h
  3. * This file is r8a7791 processor definition.
  4. *
  5. * Copyright (C) 2013 Renesas Electronics Corporation
  6. *
  7. * SPDX-License-Identifier: GPL-2.0
  8. */
  9. #ifndef __ASM_ARCH_R8A7791_H
  10. #define __ASM_ARCH_R8A7791_H
  11. /*
  12. * R8A7791 I/O Addresses
  13. */
  14. #define RWDT_BASE 0xE6020000
  15. #define SWDT_BASE 0xE6030000
  16. #define LBSC_BASE 0xFEC00200
  17. #define DBSC3_0_BASE 0xE6790000
  18. #define DBSC3_1_BASE 0xE67A0000
  19. #define TMU_BASE 0xE61E0000
  20. #define GPIO5_BASE 0xE6055000
  21. #define S3C_BASE 0xE6784000
  22. #define S3C_INT_BASE 0xE6784A00
  23. #define S3C_MEDIA_BASE 0xE6784B00
  24. #define S3C_QOS_DCACHE_BASE 0xE6784BDC
  25. #define S3C_QOS_CCI0_BASE 0xE6784C00
  26. #define S3C_QOS_CCI1_BASE 0xE6784C24
  27. #define S3C_QOS_MXI_BASE 0xE6784C48
  28. #define S3C_QOS_AXI_BASE 0xE6784C6C
  29. #define DBSC3_0_QOS_R0_BASE 0xE6791000
  30. #define DBSC3_0_QOS_R1_BASE 0xE6791100
  31. #define DBSC3_0_QOS_R2_BASE 0xE6791200
  32. #define DBSC3_0_QOS_R3_BASE 0xE6791300
  33. #define DBSC3_0_QOS_R4_BASE 0xE6791400
  34. #define DBSC3_0_QOS_R5_BASE 0xE6791500
  35. #define DBSC3_0_QOS_R6_BASE 0xE6791600
  36. #define DBSC3_0_QOS_R7_BASE 0xE6791700
  37. #define DBSC3_0_QOS_R8_BASE 0xE6791800
  38. #define DBSC3_0_QOS_R9_BASE 0xE6791900
  39. #define DBSC3_0_QOS_R10_BASE 0xE6791A00
  40. #define DBSC3_0_QOS_R11_BASE 0xE6791B00
  41. #define DBSC3_0_QOS_R12_BASE 0xE6791C00
  42. #define DBSC3_0_QOS_R13_BASE 0xE6791D00
  43. #define DBSC3_0_QOS_R14_BASE 0xE6791E00
  44. #define DBSC3_0_QOS_R15_BASE 0xE6791F00
  45. #define DBSC3_0_QOS_W0_BASE 0xE6792000
  46. #define DBSC3_0_QOS_W1_BASE 0xE6792100
  47. #define DBSC3_0_QOS_W2_BASE 0xE6792200
  48. #define DBSC3_0_QOS_W3_BASE 0xE6792300
  49. #define DBSC3_0_QOS_W4_BASE 0xE6792400
  50. #define DBSC3_0_QOS_W5_BASE 0xE6792500
  51. #define DBSC3_0_QOS_W6_BASE 0xE6792600
  52. #define DBSC3_0_QOS_W7_BASE 0xE6792700
  53. #define DBSC3_0_QOS_W8_BASE 0xE6792800
  54. #define DBSC3_0_QOS_W9_BASE 0xE6792900
  55. #define DBSC3_0_QOS_W10_BASE 0xE6792A00
  56. #define DBSC3_0_QOS_W11_BASE 0xE6792B00
  57. #define DBSC3_0_QOS_W12_BASE 0xE6792C00
  58. #define DBSC3_0_QOS_W13_BASE 0xE6792D00
  59. #define DBSC3_0_QOS_W14_BASE 0xE6792E00
  60. #define DBSC3_0_QOS_W15_BASE 0xE6792F00
  61. #define CCI_400_MAXOT_1 0xF0091110
  62. #define CCI_400_MAXOT_2 0xF0092110
  63. #define CCI_400_QOSCNTL_1 0xF009110C
  64. #define CCI_400_QOSCNTL_2 0xF009210C
  65. #define MXI_BASE 0xFE960000
  66. #define SYS_AXI_SYX64TO128_BASE 0xFF800300
  67. #define SYS_AXI_AVB_BASE 0xFF800340
  68. #define SYS_AXI_G2D_BASE 0xFF800540
  69. #define SYS_AXI_IMP0_BASE 0xFF800580
  70. #define SYS_AXI_IMP1_BASE 0xFF8005C0
  71. #define SYS_AXI_IMUX0_BASE 0xFF800600
  72. #define SYS_AXI_IMUX1_BASE 0xFF800640
  73. #define SYS_AXI_IMUX2_BASE 0xFF800680
  74. #define SYS_AXI_LBS_BASE 0xFF8006C0
  75. #define SYS_AXI_MMUDS_BASE 0xFF800700
  76. #define SYS_AXI_MMUM_BASE 0xFF800740
  77. #define SYS_AXI_MMUR_BASE 0xFF800780
  78. #define SYS_AXI_MMUS0_BASE 0xFF8007C0
  79. #define SYS_AXI_MMUS1_BASE 0xFF800800
  80. #define SYS_AXI_MTSB0_BASE 0xFF800880
  81. #define SYS_AXI_MTSB1_BASE 0xFF8008C0
  82. #define SYS_AXI_PCI_BASE 0xFF800900
  83. #define SYS_AXI_RTX_BASE 0xFF800940
  84. #define SYS_AXI_SDS0_BASE 0xFF800A80
  85. #define SYS_AXI_SDS1_BASE 0xFF800AC0
  86. #define SYS_AXI_USB20_BASE 0xFF800C00
  87. #define SYS_AXI_USB21_BASE 0xFF800C40
  88. #define SYS_AXI_USB22_BASE 0xFF800C80
  89. #define SYS_AXI_USB30_BASE 0xFF800CC0
  90. #define RT_AXI_SHX_BASE 0xFF810100
  91. #define RT_AXI_RDS_BASE 0xFF8101C0
  92. #define RT_AXI_RTX64TO128_BASE 0xFF810200
  93. #define RT_AXI_STPRO_BASE 0xFF810240
  94. #define MP_AXI_ADSP_BASE 0xFF820100
  95. #define MP_AXI_ASDS0_BASE 0xFF8201C0
  96. #define MP_AXI_ASDS1_BASE 0xFF820200
  97. #define MP_AXI_MLP_BASE 0xFF820240
  98. #define MP_AXI_MMUMP_BASE 0xFF820280
  99. #define MP_AXI_SPU_BASE 0xFF8202C0
  100. #define MP_AXI_SPUC_BASE 0xFF820300
  101. #define SYS_AXI256_AXI128TO256_BASE 0xFF860100
  102. #define SYS_AXI256_SYX_BASE 0xFF860140
  103. #define SYS_AXI256_MPX_BASE 0xFF860180
  104. #define SYS_AXI256_MXI_BASE 0xFF8601C0
  105. #define CCI_AXI_MMUS0_BASE 0xFF880100
  106. #define CCI_AXI_SYX2_BASE 0xFF880140
  107. #define CCI_AXI_MMUR_BASE 0xFF880180
  108. #define CCI_AXI_MMUDS_BASE 0xFF8801C0
  109. #define CCI_AXI_MMUM_BASE 0xFF880200
  110. #define CCI_AXI_MXI_BASE 0xFF880240
  111. #define CCI_AXI_MMUS1_BASE 0xFF880280
  112. #define CCI_AXI_MMUMP_BASE 0xFF8802C0
  113. #define MEDIA_AXI_JPR_BASE 0xFE964100
  114. #define MEDIA_AXI_JPW_BASE 0xFE966100
  115. #define MEDIA_AXI_GCU0R_BASE 0xFE964140
  116. #define MEDIA_AXI_GCU0W_BASE 0xFE966140
  117. #define MEDIA_AXI_GCU1R_BASE 0xFE964180
  118. #define MEDIA_AXI_GCU1W_BASE 0xFE966180
  119. #define MEDIA_AXI_TDMR_BASE 0xFE964500
  120. #define MEDIA_AXI_TDMW_BASE 0xFE966500
  121. #define MEDIA_AXI_VSP0CR_BASE 0xFE964540
  122. #define MEDIA_AXI_VSP0CW_BASE 0xFE966540
  123. #define MEDIA_AXI_VSP1CR_BASE 0xFE964580
  124. #define MEDIA_AXI_VSP1CW_BASE 0xFE966580
  125. #define MEDIA_AXI_VSPDU0CR_BASE 0xFE9645C0
  126. #define MEDIA_AXI_VSPDU0CW_BASE 0xFE9665C0
  127. #define MEDIA_AXI_VSPDU1CR_BASE 0xFE964600
  128. #define MEDIA_AXI_VSPDU1CW_BASE 0xFE966600
  129. #define MEDIA_AXI_VIN0W_BASE 0xFE966900
  130. #define MEDIA_AXI_VSP0R_BASE 0xFE964D00
  131. #define MEDIA_AXI_VSP0W_BASE 0xFE966D00
  132. #define MEDIA_AXI_FDP0R_BASE 0xFE964D40
  133. #define MEDIA_AXI_FDP0W_BASE 0xFE966D40
  134. #define MEDIA_AXI_IMSR_BASE 0xFE964D80
  135. #define MEDIA_AXI_IMSW_BASE 0xFE966D80
  136. #define MEDIA_AXI_VSP1R_BASE 0xFE965100
  137. #define MEDIA_AXI_VSP1W_BASE 0xFE967100
  138. #define MEDIA_AXI_FDP1R_BASE 0xFE965140
  139. #define MEDIA_AXI_FDP1W_BASE 0xFE967140
  140. #define MEDIA_AXI_IMRR_BASE 0xFE965180
  141. #define MEDIA_AXI_IMRW_BASE 0xFE967180
  142. #define MEDIA_AXI_FDP2R_BASE 0xFE9651C0
  143. #define MEDIA_AXI_FDP2W_BASE 0xFE966DC0
  144. #define MEDIA_AXI_VSPD0R_BASE 0xFE965500
  145. #define MEDIA_AXI_VSPD0W_BASE 0xFE967500
  146. #define MEDIA_AXI_VSPD1R_BASE 0xFE965540
  147. #define MEDIA_AXI_VSPD1W_BASE 0xFE967540
  148. #define MEDIA_AXI_DU0R_BASE 0xFE965580
  149. #define MEDIA_AXI_DU0W_BASE 0xFE967580
  150. #define MEDIA_AXI_DU1R_BASE 0xFE9655C0
  151. #define MEDIA_AXI_DU1W_BASE 0xFE9675C0
  152. #define MEDIA_AXI_VCP0CR_BASE 0xFE965900
  153. #define MEDIA_AXI_VCP0CW_BASE 0xFE967900
  154. #define MEDIA_AXI_VCP0VR_BASE 0xFE965940
  155. #define MEDIA_AXI_VCP0VW_BASE 0xFE967940
  156. #define MEDIA_AXI_VPC0R_BASE 0xFE965980
  157. #define MEDIA_AXI_VCP1CR_BASE 0xFE965D00
  158. #define MEDIA_AXI_VCP1CW_BASE 0xFE967D00
  159. #define MEDIA_AXI_VCP1VR_BASE 0xFE965D40
  160. #define MEDIA_AXI_VCP1VW_BASE 0xFE967D40
  161. #define MEDIA_AXI_VPC1R_BASE 0xFE965D80
  162. #define SYS_AXI_AVBDMSCR 0xFF802000
  163. #define SYS_AXI_SYX2DMSCR 0xFF802004
  164. #define SYS_AXI_CC50DMSCR 0xFF802008
  165. #define SYS_AXI_CC51DMSCR 0xFF80200C
  166. #define SYS_AXI_CCIDMSCR 0xFF802010
  167. #define SYS_AXI_CSDMSCR 0xFF802014
  168. #define SYS_AXI_DDMDMSCR 0xFF802018
  169. #define SYS_AXI_ETHDMSCR 0xFF80201C
  170. #define SYS_AXI_G2DDMSCR 0xFF802020
  171. #define SYS_AXI_IMP0DMSCR 0xFF802024
  172. #define SYS_AXI_IMP1DMSCR 0xFF802028
  173. #define SYS_AXI_LBSDMSCR 0xFF80202C
  174. #define SYS_AXI_MMUDSDMSCR 0xFF802030
  175. #define SYS_AXI_MMUMXDMSCR 0xFF802034
  176. #define SYS_AXI_MMURDDMSCR 0xFF802038
  177. #define SYS_AXI_MMUS0DMSCR 0xFF80203C
  178. #define SYS_AXI_MMUS1DMSCR 0xFF802040
  179. #define SYS_AXI_MPXDMSCR 0xFF802044
  180. #define SYS_AXI_MTSB0DMSCR 0xFF802048
  181. #define SYS_AXI_MTSB1DMSCR 0xFF80204C
  182. #define SYS_AXI_PCIDMSCR 0xFF802050
  183. #define SYS_AXI_RTXDMSCR 0xFF802054
  184. #define SYS_AXI_SAT0DMSCR 0xFF802058
  185. #define SYS_AXI_SAT1DMSCR 0xFF80205C
  186. #define SYS_AXI_SDM0DMSCR 0xFF802060
  187. #define SYS_AXI_SDM1DMSCR 0xFF802064
  188. #define SYS_AXI_SDS0DMSCR 0xFF802068
  189. #define SYS_AXI_SDS1DMSCR 0xFF80206C
  190. #define SYS_AXI_ETRABDMSCR 0xFF802070
  191. #define SYS_AXI_ETRKFDMSCR 0xFF802074
  192. #define SYS_AXI_UDM0DMSCR 0xFF802078
  193. #define SYS_AXI_UDM1DMSCR 0xFF80207C
  194. #define SYS_AXI_USB20DMSCR 0xFF802080
  195. #define SYS_AXI_USB21DMSCR 0xFF802084
  196. #define SYS_AXI_USB22DMSCR 0xFF802088
  197. #define SYS_AXI_USB30DMSCR 0xFF80208C
  198. #define SYS_AXI_X128TO64SLVDMSCR 0xFF802100
  199. #define SYS_AXI_X64TO128SLVDMSCR 0xFF802104
  200. #define SYS_AXI_AVBSLVDMSCR 0xFF802108
  201. #define SYS_AXI_SYX2SLVDMSCR 0xFF80210C
  202. #define SYS_AXI_ETHSLVDMSCR 0xFF802110
  203. #define SYS_AXI_GICSLVDMSCR 0xFF802114
  204. #define SYS_AXI_IMPSLVDMSCR 0xFF802118
  205. #define SYS_AXI_IMX0SLVDMSCR 0xFF80211C
  206. #define SYS_AXI_IMX1SLVDMSCR 0xFF802120
  207. #define SYS_AXI_IMX2SLVDMSCR 0xFF802124
  208. #define SYS_AXI_LBSSLVDMSCR 0xFF802128
  209. #define SYS_AXI_MMC0SLVDMSCR 0xFF80212C
  210. #define SYS_AXI_MMC1SLVDMSCR 0xFF802130
  211. #define SYS_AXI_MPXSLVDMSCR 0xFF802134
  212. #define SYS_AXI_MTSB0SLVDMSCR 0xFF802138
  213. #define SYS_AXI_MTSB1SLVDMSCR 0xFF80213C
  214. #define SYS_AXI_MXTSLVDMSCR 0xFF802140
  215. #define SYS_AXI_PCISLVDMSCR 0xFF802144
  216. #define SYS_AXI_SYAPBSLVDMSCR 0xFF802148
  217. #define SYS_AXI_QSAPBSLVDMSCR 0xFF80214C
  218. #define SYS_AXI_RTXSLVDMSCR 0xFF802150
  219. #define SYS_AXI_SAT0SLVDMSCR 0xFF802168
  220. #define SYS_AXI_SAT1SLVDMSCR 0xFF80216C
  221. #define SYS_AXI_SDAP0SLVDMSCR 0xFF802170
  222. #define SYS_AXI_SDAP1SLVDMSCR 0xFF802174
  223. #define SYS_AXI_SDAP2SLVDMSCR 0xFF802178
  224. #define SYS_AXI_SDAP3SLVDMSCR 0xFF80217C
  225. #define SYS_AXI_SGXSLVDMSCR 0xFF802180
  226. #define SYS_AXI_STBSLVDMSCR 0xFF802188
  227. #define SYS_AXI_STMSLVDMSCR 0xFF80218C
  228. #define SYS_AXI_TSPL0SLVDMSCR 0xFF802194
  229. #define SYS_AXI_TSPL1SLVDMSCR 0xFF802198
  230. #define SYS_AXI_TSPL2SLVDMSCR 0xFF80219C
  231. #define SYS_AXI_USB20SLVDMSCR 0xFF8021A0
  232. #define SYS_AXI_USB21SLVDMSCR 0xFF8021A4
  233. #define SYS_AXI_USB22SLVDMSCR 0xFF8021A8
  234. #define SYS_AXI_USB30SLVDMSCR 0xFF8021AC
  235. #define RT_AXI_CBMDMSCR 0xFF812000
  236. #define RT_AXI_DBDMSCR 0xFF812004
  237. #define RT_AXI_RDMDMSCR 0xFF812008
  238. #define RT_AXI_RDSDMSCR 0xFF81200C
  239. #define RT_AXI_STRDMSCR 0xFF812010
  240. #define RT_AXI_SY2RTDMSCR 0xFF812014
  241. #define RT_AXI_CBSSLVDMSCR 0xFF812100
  242. #define RT_AXI_DBSSLVDMSCR 0xFF812104
  243. #define RT_AXI_RTAP1SLVDMSCR 0xFF812108
  244. #define RT_AXI_RTAP2SLVDMSCR 0xFF81210C
  245. #define RT_AXI_RTAP3SLVDMSCR 0xFF812110
  246. #define RT_AXI_RT2SYSLVDMSCR 0xFF812114
  247. #define RT_AXI_A128TO64SLVDMSCR 0xFF812118
  248. #define RT_AXI_A64TO128SLVDMSCR 0xFF81211C
  249. #define RT_AXI_A64TO128CSLVDMSCR 0xFF812120
  250. #define RT_AXI_UTLBRSLVDMSCR 0xFF812128
  251. #define MP_AXI_ADSPDMSCR 0xFF822000
  252. #define MP_AXI_ASDM0DMSCR 0xFF822004
  253. #define MP_AXI_ASDM1DMSCR 0xFF822008
  254. #define MP_AXI_ASDS0DMSCR 0xFF82200C
  255. #define MP_AXI_ASDS1DMSCR 0xFF822010
  256. #define MP_AXI_MLPDMSCR 0xFF822014
  257. #define MP_AXI_MMUMPDMSCR 0xFF822018
  258. #define MP_AXI_SPUDMSCR 0xFF82201C
  259. #define MP_AXI_SPUCDMSCR 0xFF822020
  260. #define MP_AXI_SY2MPDMSCR 0xFF822024
  261. #define MP_AXI_ADSPSLVDMSCR 0xFF822100
  262. #define MP_AXI_MLMSLVDMSCR 0xFF822104
  263. #define MP_AXI_MPAP4SLVDMSCR 0xFF822108
  264. #define MP_AXI_MPAP5SLVDMSCR 0xFF82210C
  265. #define MP_AXI_MPAP6SLVDMSCR 0xFF822110
  266. #define MP_AXI_MPAP7SLVDMSCR 0xFF822114
  267. #define MP_AXI_MP2SYSLVDMSCR 0xFF822118
  268. #define MP_AXI_MP2SY2SLVDMSCR 0xFF82211C
  269. #define MP_AXI_MPXAPSLVDMSCR 0xFF822124
  270. #define MP_AXI_SPUSLVDMSCR 0xFF822128
  271. #define MP_AXI_UTLBMPSLVDMSCR 0xFF82212C
  272. #define ADM_AXI_ASDM0DMSCR 0xFF842000
  273. #define ADM_AXI_ASDM1DMSCR 0xFF842004
  274. #define ADM_AXI_MPAP1SLVDMSCR 0xFF842104
  275. #define ADM_AXI_MPAP2SLVDMSCR 0xFF842108
  276. #define ADM_AXI_MPAP3SLVDMSCR 0xFF84210C
  277. #define DM_AXI_RDMDMSCR 0xFF852000
  278. #define DM_AXI_SDM0DMSCR 0xFF852004
  279. #define DM_AXI_SDM1DMSCR 0xFF852008
  280. #define DM_AXI_MMAP0SLVDMSCR 0xFF852100
  281. #define DM_AXI_MMAP1SLVDMSCR 0xFF852104
  282. #define DM_AXI_QSPAPSLVDMSCR 0xFF852108
  283. #define DM_AXI_RAP4SLVDMSCR 0xFF85210C
  284. #define DM_AXI_RAP5SLVDMSCR 0xFF852110
  285. #define DM_AXI_SAP4SLVDMSCR 0xFF852114
  286. #define DM_AXI_SAP5SLVDMSCR 0xFF852118
  287. #define DM_AXI_SAP6SLVDMSCR 0xFF85211C
  288. #define DM_AXI_SAP65SLVDMSCR 0xFF852120
  289. #define DM_AXI_SDAP0SLVDMSCR 0xFF852124
  290. #define DM_AXI_SDAP1SLVDMSCR 0xFF852128
  291. #define DM_AXI_SDAP2SLVDMSCR 0xFF85212C
  292. #define DM_AXI_SDAP3SLVDMSCR 0xFF852130
  293. #define SYS_AXI256_SYXDMSCR 0xFF862000
  294. #define SYS_AXI256_MPXDMSCR 0xFF862004
  295. #define SYS_AXI256_MXIDMSCR 0xFF862008
  296. #define SYS_AXI256_X128TO256SLVDMSCR 0xFF862100
  297. #define SYS_AXI256_X256TO128SLVDMSCR 0xFF862104
  298. #define SYS_AXI256_SYXSLVDMSCR 0xFF862108
  299. #define SYS_AXI256_CCXSLVDMSCR 0xFF86210C
  300. #define SYS_AXI256_S3CSLVDMSCR 0xFF862110
  301. #define MXT_SYXDMSCR 0xFF872000
  302. #define MXT_CMM0SLVDMSCR 0xFF872100
  303. #define MXT_CMM1SLVDMSCR 0xFF872104
  304. #define MXT_CMM2SLVDMSCR 0xFF872108
  305. #define MXT_FDPSLVDMSCR 0xFF87210C
  306. #define MXT_IMRSLVDMSCR 0xFF872110
  307. #define MXT_VINSLVDMSCR 0xFF872114
  308. #define MXT_VPC0SLVDMSCR 0xFF872118
  309. #define MXT_VPC1SLVDMSCR 0xFF87211C
  310. #define MXT_VSP0SLVDMSCR 0xFF872120
  311. #define MXT_VSP1SLVDMSCR 0xFF872124
  312. #define MXT_VSPD0SLVDMSCR 0xFF872128
  313. #define MXT_VSPD1SLVDMSCR 0xFF87212C
  314. #define MXT_MAP1SLVDMSCR 0xFF872130
  315. #define MXT_MAP2SLVDMSCR 0xFF872134
  316. #define CCI_AXI_MMUS0DMSCR 0xFF882000
  317. #define CCI_AXI_SYX2DMSCR 0xFF882004
  318. #define CCI_AXI_MMURDMSCR 0xFF882008
  319. #define CCI_AXI_MMUDSDMSCR 0xFF88200C
  320. #define CCI_AXI_MMUMDMSCR 0xFF882010
  321. #define CCI_AXI_MXIDMSCR 0xFF882014
  322. #define CCI_AXI_MMUS1DMSCR 0xFF882018
  323. #define CCI_AXI_MMUMPDMSCR 0xFF88201C
  324. #define CCI_AXI_DVMDMSCR 0xFF882020
  325. #define CCI_AXI_CCISLVDMSCR 0xFF882100
  326. #define CCI_AXI_IPMMUIDVMCR 0xFF880400
  327. #define CCI_AXI_IPMMURDVMCR 0xFF880404
  328. #define CCI_AXI_IPMMUS0DVMCR 0xFF880408
  329. #define CCI_AXI_IPMMUS1DVMCR 0xFF88040C
  330. #define CCI_AXI_IPMMUMPDVMCR 0xFF880410
  331. #define CCI_AXI_IPMMUDSDVMCR 0xFF880414
  332. #define CCI_AXI_AX2ADDRMASK 0xFF88041C
  333. #ifndef __ASSEMBLY__
  334. #include <asm/types.h>
  335. /* RWDT */
  336. struct r8a7791_rwdt {
  337. u32 rwtcnt; /* 0x00 */
  338. u32 rwtcsra; /* 0x04 */
  339. u16 rwtcsrb; /* 0x08 */
  340. };
  341. /* SWDT */
  342. struct r8a7791_swdt {
  343. u32 swtcnt; /* 0x00 */
  344. u32 swtcsra; /* 0x04 */
  345. u16 swtcsrb; /* 0x08 */
  346. };
  347. /* LBSC */
  348. struct r8a7791_lbsc {
  349. u32 cs0ctrl;
  350. u32 cs1ctrl;
  351. u32 ecs0ctrl;
  352. u32 ecs1ctrl;
  353. u32 ecs2ctrl;
  354. u32 ecs3ctrl;
  355. u32 ecs4ctrl;
  356. u32 ecs5ctrl;
  357. u32 dummy0[4]; /* 0x20 .. 0x2C */
  358. u32 cswcr0;
  359. u32 cswcr1;
  360. u32 ecswcr0;
  361. u32 ecswcr1;
  362. u32 ecswcr2;
  363. u32 ecswcr3;
  364. u32 ecswcr4;
  365. u32 ecswcr5;
  366. u32 exdmawcr0;
  367. u32 exdmawcr1;
  368. u32 exdmawcr2;
  369. u32 dummy1[9]; /* 0x5C .. 0x7C */
  370. u32 cspwcr0;
  371. u32 cspwcr1;
  372. u32 ecspwcr0;
  373. u32 ecspwcr1;
  374. u32 ecspwcr2;
  375. u32 ecspwcr3;
  376. u32 ecspwcr4;
  377. u32 ecspwcr5;
  378. u32 exwtsync;
  379. u32 dummy2[3]; /* 0xA4 .. 0xAC */
  380. u32 cs0bstctl;
  381. u32 cs0btph;
  382. u32 dummy3[2]; /* 0xB8 .. 0xBC */
  383. u32 cs1gdst;
  384. u32 ecs0gdst;
  385. u32 ecs1gdst;
  386. u32 ecs2gdst;
  387. u32 ecs3gdst;
  388. u32 ecs4gdst;
  389. u32 ecs5gdst;
  390. u32 dummy4[5]; /* 0xDC .. 0xEC */
  391. u32 exdmaset0;
  392. u32 exdmaset1;
  393. u32 exdmaset2;
  394. u32 dummy5[5]; /* 0xFC .. 0x10C */
  395. u32 exdmcr0;
  396. u32 exdmcr1;
  397. u32 exdmcr2;
  398. u32 dummy6[5]; /* 0x11C .. 0x12C */
  399. u32 bcintsr;
  400. u32 bcintcr;
  401. u32 bcintmr;
  402. u32 dummy7; /* 0x13C */
  403. u32 exbatlv;
  404. u32 exwtsts;
  405. u32 dummy8[14]; /* 0x148 .. 0x17C */
  406. u32 atacsctrl;
  407. u32 dummy9[15]; /* 0x184 .. 0x1BC */
  408. u32 exbct;
  409. u32 extct;
  410. };
  411. /* DBSC3 */
  412. struct r8a7791_dbsc3 {
  413. u32 dummy0[3]; /* 0x00 .. 0x08 */
  414. u32 dbstate1;
  415. u32 dbacen;
  416. u32 dbrfen;
  417. u32 dbcmd;
  418. u32 dbwait;
  419. u32 dbkind;
  420. u32 dbconf0;
  421. u32 dummy1[2]; /* 0x28 .. 0x2C */
  422. u32 dbphytype;
  423. u32 dummy2[3]; /* 0x34 .. 0x3C */
  424. u32 dbtr0;
  425. u32 dbtr1;
  426. u32 dbtr2;
  427. u32 dummy3; /* 0x4C */
  428. u32 dbtr3;
  429. u32 dbtr4;
  430. u32 dbtr5;
  431. u32 dbtr6;
  432. u32 dbtr7;
  433. u32 dbtr8;
  434. u32 dbtr9;
  435. u32 dbtr10;
  436. u32 dbtr11;
  437. u32 dbtr12;
  438. u32 dbtr13;
  439. u32 dbtr14;
  440. u32 dbtr15;
  441. u32 dbtr16;
  442. u32 dbtr17;
  443. u32 dbtr18;
  444. u32 dbtr19;
  445. u32 dummy4[7]; /* 0x94 .. 0xAC */
  446. u32 dbbl;
  447. u32 dummy5[3]; /* 0xB4 .. 0xBC */
  448. u32 dbadj0;
  449. u32 dummy6; /* 0xC4 */
  450. u32 dbadj2;
  451. u32 dummy7[5]; /* 0xCC .. 0xDC */
  452. u32 dbrfcnf0;
  453. u32 dbrfcnf1;
  454. u32 dbrfcnf2;
  455. u32 dummy8[2]; /* 0xEC .. 0xF0 */
  456. u32 dbcalcnf;
  457. u32 dbcaltr;
  458. u32 dummy9; /* 0xFC */
  459. u32 dbrnk0;
  460. u32 dummy10[31]; /* 0x104 .. 0x17C */
  461. u32 dbpdncnf;
  462. u32 dummy11[47]; /* 0x184 ..0x23C */
  463. u32 dbdfistat;
  464. u32 dbdficnt;
  465. u32 dummy12[14]; /* 0x248 .. 0x27C */
  466. u32 dbpdlck;
  467. u32 dummy13[3]; /* 0x284 .. 0x28C */
  468. u32 dbpdrga;
  469. u32 dummy14[3]; /* 0x294 .. 0x29C */
  470. u32 dbpdrgd;
  471. u32 dummy15[24]; /* 0x2A4 .. 0x300 */
  472. u32 dbbs0cnt1;
  473. u32 dummy16[30]; /* 0x308 .. 0x37C */
  474. u32 dbwt0cnf0;
  475. u32 dbwt0cnf1;
  476. u32 dbwt0cnf2;
  477. u32 dbwt0cnf3;
  478. u32 dbwt0cnf4;
  479. };
  480. /* GPIO */
  481. struct r8a7791_gpio {
  482. u32 iointsel;
  483. u32 inoutsel;
  484. u32 outdt;
  485. u32 indt;
  486. u32 intdt;
  487. u32 intclr;
  488. u32 intmsk;
  489. u32 posneg;
  490. u32 edglevel;
  491. u32 filonoff;
  492. u32 intmsks;
  493. u32 mskclrs;
  494. u32 outdtsel;
  495. u32 outdth;
  496. u32 outdtl;
  497. u32 bothedge;
  498. };
  499. /* S3C(QoS) */
  500. struct r8a7791_s3c {
  501. u32 s3cexcladdmsk;
  502. u32 s3cexclidmsk;
  503. u32 s3cadsplcr;
  504. u32 s3cmaar;
  505. u32 dummy0; /* 0x10 */
  506. u32 s3crorr;
  507. u32 s3cworr;
  508. u32 s3carcr22;
  509. u32 dummy1[2]; /* 0x20 .. 0x24 */
  510. u32 s3cmctr;
  511. u32 dummy2; /* 0x2C */
  512. u32 cconf0;
  513. u32 cconf1;
  514. u32 cconf2;
  515. u32 cconf3;
  516. };
  517. struct r8a7791_s3c_qos {
  518. u32 s3cqos0;
  519. u32 s3cqos1;
  520. u32 s3cqos2;
  521. u32 s3cqos3;
  522. u32 s3cqos4;
  523. u32 s3cqos5;
  524. u32 s3cqos6;
  525. u32 s3cqos7;
  526. u32 s3cqos8;
  527. };
  528. /* DBSC(QoS) */
  529. struct r8a7791_dbsc3_qos {
  530. u32 dblgcnt;
  531. u32 dbtmval0;
  532. u32 dbtmval1;
  533. u32 dbtmval2;
  534. u32 dbtmval3;
  535. u32 dbrqctr;
  536. u32 dbthres0;
  537. u32 dbthres1;
  538. u32 dbthres2;
  539. u32 dblgqon;
  540. };
  541. /* MXI(QoS) */
  542. struct r8a7791_mxi {
  543. u32 dummy0[10]; /* 0x00 .. 0x24 */
  544. u32 mxs3cracr;
  545. u32 dummy1[5]; /* 0x2C .. 0x3C */
  546. u32 mxrtcr;
  547. u32 mxwtcr;
  548. };
  549. /* AXI(QoS) */
  550. struct r8a7791_axi_qos {
  551. u32 qosconf;
  552. u32 qosctset0;
  553. u32 qosctset1;
  554. u32 qosctset2;
  555. u32 qosctset3;
  556. u32 qosreqctr;
  557. u32 qosthres0;
  558. u32 qosthres1;
  559. u32 qosthres2;
  560. u32 qosqon;
  561. };
  562. #endif
  563. #endif /* __ASM_ARCH_R8A7791_H */