emmc_brcm_rdb_sd4_top.h 62 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116
  1. /*
  2. * Copyright (c) 2016 - 2020, Broadcom
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. */
  6. #ifndef BRCM_RDB_SD4_EMMC_TOP_H
  7. #define BRCM_RDB_SD4_EMMC_TOP_H
  8. #define SD4_EMMC_TOP_SYSADDR_OFFSET 0x00000000
  9. #define SD4_EMMC_TOP_SYSADDR_DEFAULT 0x00000000
  10. #define SD4_EMMC_TOP_SYSADDR_TYPE uint32_t
  11. #define SD4_EMMC_TOP_SYSADDR_RESERVED_MASK 0x00000000
  12. #define SD4_EMMC_TOP_SYSADDR_SYSADDR_SHIFT 0
  13. #define SD4_EMMC_TOP_SYSADDR_SYSADDR_MASK 0xFFFFFFFF
  14. #define SD4_EMMC_TOP_BLOCK_OFFSET 0x00000004
  15. #define SD4_EMMC_TOP_BLOCK_DEFAULT 0x00000000
  16. #define SD4_EMMC_TOP_BLOCK_TYPE uint32_t
  17. #define SD4_EMMC_TOP_BLOCK_RESERVED_MASK 0x00008000
  18. #define SD4_EMMC_TOP_BLOCK_BCNT_SHIFT 16
  19. #define SD4_EMMC_TOP_BLOCK_BCNT_MASK 0xFFFF0000
  20. #define SD4_EMMC_TOP_BLOCK_HSBS_SHIFT 12
  21. #define SD4_EMMC_TOP_BLOCK_HSBS_MASK 0x00007000
  22. #define SD4_EMMC_TOP_BLOCK_TBS_SHIFT 0
  23. #define SD4_EMMC_TOP_BLOCK_TBS_MASK 0x00000FFF
  24. #define SD4_EMMC_TOP_ARG_OFFSET 0x00000008
  25. #define SD4_EMMC_TOP_ARG_DEFAULT 0x00000000
  26. #define SD4_EMMC_TOP_ARG_TYPE uint32_t
  27. #define SD4_EMMC_TOP_ARG_RESERVED_MASK 0x00000000
  28. #define SD4_EMMC_TOP_ARG_ARG_SHIFT 0
  29. #define SD4_EMMC_TOP_ARG_ARG_MASK 0xFFFFFFFF
  30. #define SD4_EMMC_TOP_CMD_OFFSET 0x0000000C
  31. #define SD4_EMMC_TOP_CMD_DEFAULT 0x00000000
  32. #define SD4_EMMC_TOP_CMD_TYPE uint32_t
  33. #define SD4_EMMC_TOP_CMD_RESERVED_MASK 0xC004FFC0
  34. #define SD4_EMMC_TOP_CMD_CIDX_SHIFT 24
  35. #define SD4_EMMC_TOP_CMD_CIDX_MASK 0x3F000000
  36. #define SD4_EMMC_TOP_CMD_CTYP_SHIFT 22
  37. #define SD4_EMMC_TOP_CMD_CTYP_MASK 0x00C00000
  38. #define SD4_EMMC_TOP_CMD_DPS_SHIFT 21
  39. #define SD4_EMMC_TOP_CMD_DPS_MASK 0x00200000
  40. #define SD4_EMMC_TOP_CMD_CCHK_EN_SHIFT 20
  41. #define SD4_EMMC_TOP_CMD_CCHK_EN_MASK 0x00100000
  42. #define SD4_EMMC_TOP_CMD_CRC_EN_SHIFT 19
  43. #define SD4_EMMC_TOP_CMD_CRC_EN_MASK 0x00080000
  44. #define SD4_EMMC_TOP_CMD_RTSEL_SHIFT 16
  45. #define SD4_EMMC_TOP_CMD_RTSEL_MASK 0x00030000
  46. #define SD4_EMMC_TOP_CMD_MSBS_SHIFT 5
  47. #define SD4_EMMC_TOP_CMD_MSBS_MASK 0x00000020
  48. #define SD4_EMMC_TOP_CMD_DTDS_SHIFT 4
  49. #define SD4_EMMC_TOP_CMD_DTDS_MASK 0x00000010
  50. #define SD4_EMMC_TOP_CMD_ACMDEN_SHIFT 2
  51. #define SD4_EMMC_TOP_CMD_ACMDEN_MASK 0x0000000C
  52. #define SD4_EMMC_TOP_CMD_BCEN_SHIFT 1
  53. #define SD4_EMMC_TOP_CMD_BCEN_MASK 0x00000002
  54. #define SD4_EMMC_TOP_CMD_DMA_SHIFT 0
  55. #define SD4_EMMC_TOP_CMD_DMA_MASK 0x00000001
  56. #define SD4_EMMC_TOP_CMD_SD4_OFFSET 0x0000000C
  57. #define SD4_EMMC_TOP_CMD_SD4_DEFAULT 0x00000000
  58. #define SD4_EMMC_TOP_CMD_SD4_TYPE uint32_t
  59. #define SD4_EMMC_TOP_CMD_SD4_RESERVED_MASK 0xC004FE00
  60. #define SD4_EMMC_TOP_CMD_SD4_CIDX_SHIFT 24
  61. #define SD4_EMMC_TOP_CMD_SD4_CIDX_MASK 0x3F000000
  62. #define SD4_EMMC_TOP_CMD_SD4_CTYP_SHIFT 22
  63. #define SD4_EMMC_TOP_CMD_SD4_CTYP_MASK 0x00C00000
  64. #define SD4_EMMC_TOP_CMD_SD4_DPS_SHIFT 21
  65. #define SD4_EMMC_TOP_CMD_SD4_DPS_MASK 0x00200000
  66. #define SD4_EMMC_TOP_CMD_SD4_CCHK_EN_SHIFT 20
  67. #define SD4_EMMC_TOP_CMD_SD4_CCHK_EN_MASK 0x00100000
  68. #define SD4_EMMC_TOP_CMD_SD4_CRC_EN_SHIFT 19
  69. #define SD4_EMMC_TOP_CMD_SD4_CRC_EN_MASK 0x00080000
  70. #define SD4_EMMC_TOP_CMD_SD4_RTSEL_SHIFT 16
  71. #define SD4_EMMC_TOP_CMD_SD4_RTSEL_MASK 0x00030000
  72. #define SD4_EMMC_TOP_CMD_SD4_RESPIRQDIS_SHIFT 8
  73. #define SD4_EMMC_TOP_CMD_SD4_RESPIRQDIS_MASK 0x00000100
  74. #define SD4_EMMC_TOP_CMD_SD4_RESPERRCHKEN_SHIFT 7
  75. #define SD4_EMMC_TOP_CMD_SD4_RESPERRCHKEN_MASK 0x00000080
  76. #define SD4_EMMC_TOP_CMD_SD4_RESPR1R5_SHIFT 6
  77. #define SD4_EMMC_TOP_CMD_SD4_RESPR1R5_MASK 0x00000040
  78. #define SD4_EMMC_TOP_CMD_SD4_MSBS_SHIFT 5
  79. #define SD4_EMMC_TOP_CMD_SD4_MSBS_MASK 0x00000020
  80. #define SD4_EMMC_TOP_CMD_SD4_DTDS_SHIFT 4
  81. #define SD4_EMMC_TOP_CMD_SD4_DTDS_MASK 0x00000010
  82. #define SD4_EMMC_TOP_CMD_SD4_ACMDEN_SHIFT 2
  83. #define SD4_EMMC_TOP_CMD_SD4_ACMDEN_MASK 0x0000000C
  84. #define SD4_EMMC_TOP_CMD_SD4_BCEN_SHIFT 1
  85. #define SD4_EMMC_TOP_CMD_SD4_BCEN_MASK 0x00000002
  86. #define SD4_EMMC_TOP_CMD_SD4_DMA_SHIFT 0
  87. #define SD4_EMMC_TOP_CMD_SD4_DMA_MASK 0x00000001
  88. #define SD4_EMMC_TOP_RESP0_OFFSET 0x00000010
  89. #define SD4_EMMC_TOP_RESP0_DEFAULT 0x00000000
  90. #define SD4_EMMC_TOP_RESP0_TYPE uint32_t
  91. #define SD4_EMMC_TOP_RESP0_RESERVED_MASK 0x00000000
  92. #define SD4_EMMC_TOP_RESP0_RESP0_SHIFT 0
  93. #define SD4_EMMC_TOP_RESP0_RESP0_MASK 0xFFFFFFFF
  94. #define SD4_EMMC_TOP_RESP2_OFFSET 0x00000014
  95. #define SD4_EMMC_TOP_RESP2_DEFAULT 0x00000000
  96. #define SD4_EMMC_TOP_RESP2_TYPE uint32_t
  97. #define SD4_EMMC_TOP_RESP2_RESERVED_MASK 0x00000000
  98. #define SD4_EMMC_TOP_RESP2_RESP2_SHIFT 0
  99. #define SD4_EMMC_TOP_RESP2_RESP2_MASK 0xFFFFFFFF
  100. #define SD4_EMMC_TOP_RESP4_OFFSET 0x00000018
  101. #define SD4_EMMC_TOP_RESP4_DEFAULT 0x00000000
  102. #define SD4_EMMC_TOP_RESP4_TYPE uint32_t
  103. #define SD4_EMMC_TOP_RESP4_RESERVED_MASK 0x00000000
  104. #define SD4_EMMC_TOP_RESP4_RESP4_SHIFT 0
  105. #define SD4_EMMC_TOP_RESP4_RESP4_MASK 0xFFFFFFFF
  106. #define SD4_EMMC_TOP_RESP6_OFFSET 0x0000001C
  107. #define SD4_EMMC_TOP_RESP6_DEFAULT 0x00000000
  108. #define SD4_EMMC_TOP_RESP6_TYPE uint32_t
  109. #define SD4_EMMC_TOP_RESP6_RESERVED_MASK 0x00000000
  110. #define SD4_EMMC_TOP_RESP6_RESP6_SHIFT 0
  111. #define SD4_EMMC_TOP_RESP6_RESP6_MASK 0xFFFFFFFF
  112. #define SD4_EMMC_TOP_BUFDAT_OFFSET 0x00000020
  113. #define SD4_EMMC_TOP_BUFDAT_DEFAULT 0x00000000
  114. #define SD4_EMMC_TOP_BUFDAT_TYPE uint32_t
  115. #define SD4_EMMC_TOP_BUFDAT_RESERVED_MASK 0x00000000
  116. #define SD4_EMMC_TOP_BUFDAT_BUFDAT_SHIFT 0
  117. #define SD4_EMMC_TOP_BUFDAT_BUFDAT_MASK 0xFFFFFFFF
  118. #define SD4_EMMC_TOP_PSTATE_OFFSET 0x00000024
  119. #define SD4_EMMC_TOP_PSTATE_DEFAULT 0x1FFC0000
  120. #define SD4_EMMC_TOP_PSTATE_TYPE uint32_t
  121. #define SD4_EMMC_TOP_PSTATE_RESERVED_MASK 0xE000F0F0
  122. #define SD4_EMMC_TOP_PSTATE_DLS7_4_SHIFT 25
  123. #define SD4_EMMC_TOP_PSTATE_DLS7_4_MASK 0x1E000000
  124. #define SD4_EMMC_TOP_PSTATE_CLSL_SHIFT 24
  125. #define SD4_EMMC_TOP_PSTATE_CLSL_MASK 0x01000000
  126. #define SD4_EMMC_TOP_PSTATE_DLS3_0_SHIFT 20
  127. #define SD4_EMMC_TOP_PSTATE_DLS3_0_MASK 0x00F00000
  128. #define SD4_EMMC_TOP_PSTATE_WPSL_SHIFT 19
  129. #define SD4_EMMC_TOP_PSTATE_WPSL_MASK 0x00080000
  130. #define SD4_EMMC_TOP_PSTATE_CDPL_SHIFT 18
  131. #define SD4_EMMC_TOP_PSTATE_CDPL_MASK 0x00040000
  132. #define SD4_EMMC_TOP_PSTATE_CSS_SHIFT 17
  133. #define SD4_EMMC_TOP_PSTATE_CSS_MASK 0x00020000
  134. #define SD4_EMMC_TOP_PSTATE_CINS_SHIFT 16
  135. #define SD4_EMMC_TOP_PSTATE_CINS_MASK 0x00010000
  136. #define SD4_EMMC_TOP_PSTATE_BREN_SHIFT 11
  137. #define SD4_EMMC_TOP_PSTATE_BREN_MASK 0x00000800
  138. #define SD4_EMMC_TOP_PSTATE_BWEN_SHIFT 10
  139. #define SD4_EMMC_TOP_PSTATE_BWEN_MASK 0x00000400
  140. #define SD4_EMMC_TOP_PSTATE_RXACT_SHIFT 9
  141. #define SD4_EMMC_TOP_PSTATE_RXACT_MASK 0x00000200
  142. #define SD4_EMMC_TOP_PSTATE_WXACT_SHIFT 8
  143. #define SD4_EMMC_TOP_PSTATE_WXACT_MASK 0x00000100
  144. #define SD4_EMMC_TOP_PSTATE_RETUNE_REQ_SHIFT 3
  145. #define SD4_EMMC_TOP_PSTATE_RETUNE_REQ_MASK 0x00000008
  146. #define SD4_EMMC_TOP_PSTATE_DATACT_SHIFT 2
  147. #define SD4_EMMC_TOP_PSTATE_DATACT_MASK 0x00000004
  148. #define SD4_EMMC_TOP_PSTATE_DATINH_SHIFT 1
  149. #define SD4_EMMC_TOP_PSTATE_DATINH_MASK 0x00000002
  150. #define SD4_EMMC_TOP_PSTATE_CMDINH_SHIFT 0
  151. #define SD4_EMMC_TOP_PSTATE_CMDINH_MASK 0x00000001
  152. #define SD4_EMMC_TOP_PSTATE_SD4_OFFSET 0x00000024
  153. #define SD4_EMMC_TOP_PSTATE_SD4_DEFAULT 0x01FC00F0
  154. #define SD4_EMMC_TOP_PSTATE_SD4_TYPE uint32_t
  155. #define SD4_EMMC_TOP_PSTATE_SD4_RESERVED_MASK 0x1E00F000
  156. #define SD4_EMMC_TOP_PSTATE_SD4_STBLDET_SHIFT 31
  157. #define SD4_EMMC_TOP_PSTATE_SD4_STBLDET_MASK 0x80000000
  158. #define SD4_EMMC_TOP_PSTATE_SD4_LANESYNC_SHIFT 30
  159. #define SD4_EMMC_TOP_PSTATE_SD4_LANESYNC_MASK 0x40000000
  160. #define SD4_EMMC_TOP_PSTATE_SD4_INDORMNTSTATE_SHIFT 29
  161. #define SD4_EMMC_TOP_PSTATE_SD4_INDORMNTSTATE_MASK 0x20000000
  162. #define SD4_EMMC_TOP_PSTATE_SD4_CLSL_SHIFT 24
  163. #define SD4_EMMC_TOP_PSTATE_SD4_CLSL_MASK 0x01000000
  164. #define SD4_EMMC_TOP_PSTATE_SD4_DLS3_0_SHIFT 20
  165. #define SD4_EMMC_TOP_PSTATE_SD4_DLS3_0_MASK 0x00F00000
  166. #define SD4_EMMC_TOP_PSTATE_SD4_WPSL_SHIFT 19
  167. #define SD4_EMMC_TOP_PSTATE_SD4_WPSL_MASK 0x00080000
  168. #define SD4_EMMC_TOP_PSTATE_SD4_CDPL_SHIFT 18
  169. #define SD4_EMMC_TOP_PSTATE_SD4_CDPL_MASK 0x00040000
  170. #define SD4_EMMC_TOP_PSTATE_SD4_CSS_SHIFT 17
  171. #define SD4_EMMC_TOP_PSTATE_SD4_CSS_MASK 0x00020000
  172. #define SD4_EMMC_TOP_PSTATE_SD4_CINS_SHIFT 16
  173. #define SD4_EMMC_TOP_PSTATE_SD4_CINS_MASK 0x00010000
  174. #define SD4_EMMC_TOP_PSTATE_SD4_BREN_SHIFT 11
  175. #define SD4_EMMC_TOP_PSTATE_SD4_BREN_MASK 0x00000800
  176. #define SD4_EMMC_TOP_PSTATE_SD4_BWEN_SHIFT 10
  177. #define SD4_EMMC_TOP_PSTATE_SD4_BWEN_MASK 0x00000400
  178. #define SD4_EMMC_TOP_PSTATE_SD4_RXACT_SHIFT 9
  179. #define SD4_EMMC_TOP_PSTATE_SD4_RXACT_MASK 0x00000200
  180. #define SD4_EMMC_TOP_PSTATE_SD4_WXACT_SHIFT 8
  181. #define SD4_EMMC_TOP_PSTATE_SD4_WXACT_MASK 0x00000100
  182. #define SD4_EMMC_TOP_PSTATE_SD4_DLS7_4_SHIFT 4
  183. #define SD4_EMMC_TOP_PSTATE_SD4_DLS7_4_MASK 0x000000F0
  184. #define SD4_EMMC_TOP_PSTATE_SD4_RETUNE_REQ_SHIFT 3
  185. #define SD4_EMMC_TOP_PSTATE_SD4_RETUNE_REQ_MASK 0x00000008
  186. #define SD4_EMMC_TOP_PSTATE_SD4_DATACT_SHIFT 2
  187. #define SD4_EMMC_TOP_PSTATE_SD4_DATACT_MASK 0x00000004
  188. #define SD4_EMMC_TOP_PSTATE_SD4_DATINH_SHIFT 1
  189. #define SD4_EMMC_TOP_PSTATE_SD4_DATINH_MASK 0x00000002
  190. #define SD4_EMMC_TOP_PSTATE_SD4_CMDINH_SHIFT 0
  191. #define SD4_EMMC_TOP_PSTATE_SD4_CMDINH_MASK 0x00000001
  192. #define SD4_EMMC_TOP_CTRL_OFFSET 0x00000028
  193. #define SD4_EMMC_TOP_CTRL_DEFAULT 0x00000000
  194. #define SD4_EMMC_TOP_CTRL_TYPE uint32_t
  195. #define SD4_EMMC_TOP_CTRL_RESERVED_MASK 0xF800E000
  196. #define SD4_EMMC_TOP_CTRL_WAKENRMV_SHIFT 26
  197. #define SD4_EMMC_TOP_CTRL_WAKENRMV_MASK 0x04000000
  198. #define SD4_EMMC_TOP_CTRL_WAKENINS_SHIFT 25
  199. #define SD4_EMMC_TOP_CTRL_WAKENINS_MASK 0x02000000
  200. #define SD4_EMMC_TOP_CTRL_WAKENIRQ_SHIFT 24
  201. #define SD4_EMMC_TOP_CTRL_WAKENIRQ_MASK 0x01000000
  202. #define SD4_EMMC_TOP_CTRL_BOOTACK_SHIFT 23
  203. #define SD4_EMMC_TOP_CTRL_BOOTACK_MASK 0x00800000
  204. #define SD4_EMMC_TOP_CTRL_ATLBOOTEN_SHIFT 22
  205. #define SD4_EMMC_TOP_CTRL_ATLBOOTEN_MASK 0x00400000
  206. #define SD4_EMMC_TOP_CTRL_BOOTEN_SHIFT 21
  207. #define SD4_EMMC_TOP_CTRL_BOOTEN_MASK 0x00200000
  208. #define SD4_EMMC_TOP_CTRL_SPIMODE_SHIFT 20
  209. #define SD4_EMMC_TOP_CTRL_SPIMODE_MASK 0x00100000
  210. #define SD4_EMMC_TOP_CTRL_BLKIRQ_SHIFT 19
  211. #define SD4_EMMC_TOP_CTRL_BLKIRQ_MASK 0x00080000
  212. #define SD4_EMMC_TOP_CTRL_RDWTCRTL_SHIFT 18
  213. #define SD4_EMMC_TOP_CTRL_RDWTCRTL_MASK 0x00040000
  214. #define SD4_EMMC_TOP_CTRL_CONTREQ_SHIFT 17
  215. #define SD4_EMMC_TOP_CTRL_CONTREQ_MASK 0x00020000
  216. #define SD4_EMMC_TOP_CTRL_BLKSTPREQ_SHIFT 16
  217. #define SD4_EMMC_TOP_CTRL_BLKSTPREQ_MASK 0x00010000
  218. #define SD4_EMMC_TOP_CTRL_HRESET_SHIFT 12
  219. #define SD4_EMMC_TOP_CTRL_HRESET_MASK 0x00001000
  220. #define SD4_EMMC_TOP_CTRL_SDVSELVDD1_SHIFT 9
  221. #define SD4_EMMC_TOP_CTRL_SDVSELVDD1_MASK 0x00000E00
  222. #define SD4_EMMC_TOP_CTRL_SDPWR_SHIFT 8
  223. #define SD4_EMMC_TOP_CTRL_SDPWR_MASK 0x00000100
  224. #define SD4_EMMC_TOP_CTRL_CDSD_SHIFT 7
  225. #define SD4_EMMC_TOP_CTRL_CDSD_MASK 0x00000080
  226. #define SD4_EMMC_TOP_CTRL_CDTL_SHIFT 6
  227. #define SD4_EMMC_TOP_CTRL_CDTL_MASK 0x00000040
  228. #define SD4_EMMC_TOP_CTRL_SDB_SHIFT 5
  229. #define SD4_EMMC_TOP_CTRL_SDB_MASK 0x00000020
  230. #define SD4_EMMC_TOP_CTRL_DMASEL_SHIFT 3
  231. #define SD4_EMMC_TOP_CTRL_DMASEL_MASK 0x00000018
  232. #define SD4_EMMC_TOP_CTRL_HSEN_SHIFT 2
  233. #define SD4_EMMC_TOP_CTRL_HSEN_MASK 0x00000004
  234. #define SD4_EMMC_TOP_CTRL_DXTW_SHIFT 1
  235. #define SD4_EMMC_TOP_CTRL_DXTW_MASK 0x00000002
  236. #define SD4_EMMC_TOP_CTRL_LEDCTL_SHIFT 0
  237. #define SD4_EMMC_TOP_CTRL_LEDCTL_MASK 0x00000001
  238. #define SD4_EMMC_TOP_CTRL_SD4_OFFSET 0x00000028
  239. #define SD4_EMMC_TOP_CTRL_SD4_DEFAULT 0x00000000
  240. #define SD4_EMMC_TOP_CTRL_SD4_TYPE uint32_t
  241. #define SD4_EMMC_TOP_CTRL_SD4_RESERVED_MASK 0xF8F00000
  242. #define SD4_EMMC_TOP_CTRL_SD4_WAKENRMV_SHIFT 26
  243. #define SD4_EMMC_TOP_CTRL_SD4_WAKENRMV_MASK 0x04000000
  244. #define SD4_EMMC_TOP_CTRL_SD4_WAKENINS_SHIFT 25
  245. #define SD4_EMMC_TOP_CTRL_SD4_WAKENINS_MASK 0x02000000
  246. #define SD4_EMMC_TOP_CTRL_SD4_WAKENIRQ_SHIFT 24
  247. #define SD4_EMMC_TOP_CTRL_SD4_WAKENIRQ_MASK 0x01000000
  248. #define SD4_EMMC_TOP_CTRL_SD4_BLKIRQ_SHIFT 19
  249. #define SD4_EMMC_TOP_CTRL_SD4_BLKIRQ_MASK 0x00080000
  250. #define SD4_EMMC_TOP_CTRL_SD4_RDWTCRTL_SHIFT 18
  251. #define SD4_EMMC_TOP_CTRL_SD4_RDWTCRTL_MASK 0x00040000
  252. #define SD4_EMMC_TOP_CTRL_SD4_CONTREQ_SHIFT 17
  253. #define SD4_EMMC_TOP_CTRL_SD4_CONTREQ_MASK 0x00020000
  254. #define SD4_EMMC_TOP_CTRL_SD4_BLKSTPREQ_SHIFT 16
  255. #define SD4_EMMC_TOP_CTRL_SD4_BLKSTPREQ_MASK 0x00010000
  256. #define SD4_EMMC_TOP_CTRL_SD4_SDVSELVDD2_SHIFT 13
  257. #define SD4_EMMC_TOP_CTRL_SD4_SDVSELVDD2_MASK 0x0000E000
  258. #define SD4_EMMC_TOP_CTRL_SD4_SDPWRVDD2_SHIFT 12
  259. #define SD4_EMMC_TOP_CTRL_SD4_SDPWRVDD2_MASK 0x00001000
  260. #define SD4_EMMC_TOP_CTRL_SD4_SDVSELVDD1_SHIFT 9
  261. #define SD4_EMMC_TOP_CTRL_SD4_SDVSELVDD1_MASK 0x00000E00
  262. #define SD4_EMMC_TOP_CTRL_SD4_SDPWR_SHIFT 8
  263. #define SD4_EMMC_TOP_CTRL_SD4_SDPWR_MASK 0x00000100
  264. #define SD4_EMMC_TOP_CTRL_SD4_CDSD_SHIFT 7
  265. #define SD4_EMMC_TOP_CTRL_SD4_CDSD_MASK 0x00000080
  266. #define SD4_EMMC_TOP_CTRL_SD4_CDTL_SHIFT 6
  267. #define SD4_EMMC_TOP_CTRL_SD4_CDTL_MASK 0x00000040
  268. #define SD4_EMMC_TOP_CTRL_SD4_SDB_SHIFT 5
  269. #define SD4_EMMC_TOP_CTRL_SD4_SDB_MASK 0x00000020
  270. #define SD4_EMMC_TOP_CTRL_SD4_DMASEL_SHIFT 3
  271. #define SD4_EMMC_TOP_CTRL_SD4_DMASEL_MASK 0x00000018
  272. #define SD4_EMMC_TOP_CTRL_SD4_HSEN_SHIFT 2
  273. #define SD4_EMMC_TOP_CTRL_SD4_HSEN_MASK 0x00000004
  274. #define SD4_EMMC_TOP_CTRL_SD4_DXTW_SHIFT 1
  275. #define SD4_EMMC_TOP_CTRL_SD4_DXTW_MASK 0x00000002
  276. #define SD4_EMMC_TOP_CTRL_SD4_LEDCTL_SHIFT 0
  277. #define SD4_EMMC_TOP_CTRL_SD4_LEDCTL_MASK 0x00000001
  278. #define SD4_EMMC_TOP_CTRL1_OFFSET 0x0000002C
  279. #define SD4_EMMC_TOP_CTRL1_DEFAULT 0x00000000
  280. #define SD4_EMMC_TOP_CTRL1_TYPE uint32_t
  281. #define SD4_EMMC_TOP_CTRL1_RESERVED_MASK 0xF8F00018
  282. #define SD4_EMMC_TOP_CTRL1_DATRST_SHIFT 26
  283. #define SD4_EMMC_TOP_CTRL1_DATRST_MASK 0x04000000
  284. #define SD4_EMMC_TOP_CTRL1_CMDRST_SHIFT 25
  285. #define SD4_EMMC_TOP_CTRL1_CMDRST_MASK 0x02000000
  286. #define SD4_EMMC_TOP_CTRL1_RST_SHIFT 24
  287. #define SD4_EMMC_TOP_CTRL1_RST_MASK 0x01000000
  288. #define SD4_EMMC_TOP_CTRL1_DTCNT_SHIFT 16
  289. #define SD4_EMMC_TOP_CTRL1_DTCNT_MASK 0x000F0000
  290. #define SD4_EMMC_TOP_CTRL1_SDCLKSEL_SHIFT 8
  291. #define SD4_EMMC_TOP_CTRL1_SDCLKSEL_MASK 0x0000FF00
  292. #define SD4_EMMC_TOP_CTRL1_SDCLKSEL_UP_SHIFT 6
  293. #define SD4_EMMC_TOP_CTRL1_SDCLKSEL_UP_MASK 0x000000C0
  294. #define SD4_EMMC_TOP_CTRL1_CLKGENSEL_SHIFT 5
  295. #define SD4_EMMC_TOP_CTRL1_CLKGENSEL_MASK 0x00000020
  296. #define SD4_EMMC_TOP_CTRL1_SDCLKEN_SHIFT 2
  297. #define SD4_EMMC_TOP_CTRL1_SDCLKEN_MASK 0x00000004
  298. #define SD4_EMMC_TOP_CTRL1_ICLKSTB_SHIFT 1
  299. #define SD4_EMMC_TOP_CTRL1_ICLKSTB_MASK 0x00000002
  300. #define SD4_EMMC_TOP_CTRL1_ICLKEN_SHIFT 0
  301. #define SD4_EMMC_TOP_CTRL1_ICLKEN_MASK 0x00000001
  302. #define SD4_EMMC_TOP_INTR_OFFSET 0x00000030
  303. #define SD4_EMMC_TOP_INTR_DEFAULT 0x00000000
  304. #define SD4_EMMC_TOP_INTR_TYPE uint32_t
  305. #define SD4_EMMC_TOP_INTR_RESERVED_MASK 0xEC000000
  306. #define SD4_EMMC_TOP_INTR_TRESPERR_SHIFT 28
  307. #define SD4_EMMC_TOP_INTR_TRESPERR_MASK 0x10000000
  308. #define SD4_EMMC_TOP_INTR_ADMAERR_SHIFT 25
  309. #define SD4_EMMC_TOP_INTR_ADMAERR_MASK 0x02000000
  310. #define SD4_EMMC_TOP_INTR_CMDERROR_SHIFT 24
  311. #define SD4_EMMC_TOP_INTR_CMDERROR_MASK 0x01000000
  312. #define SD4_EMMC_TOP_INTR_IERR_SHIFT 23
  313. #define SD4_EMMC_TOP_INTR_IERR_MASK 0x00800000
  314. #define SD4_EMMC_TOP_INTR_DEBERR_SHIFT 22
  315. #define SD4_EMMC_TOP_INTR_DEBERR_MASK 0x00400000
  316. #define SD4_EMMC_TOP_INTR_DCRCERR_SHIFT 21
  317. #define SD4_EMMC_TOP_INTR_DCRCERR_MASK 0x00200000
  318. #define SD4_EMMC_TOP_INTR_DTOERR_SHIFT 20
  319. #define SD4_EMMC_TOP_INTR_DTOERR_MASK 0x00100000
  320. #define SD4_EMMC_TOP_INTR_CMDIDXERR_SHIFT 19
  321. #define SD4_EMMC_TOP_INTR_CMDIDXERR_MASK 0x00080000
  322. #define SD4_EMMC_TOP_INTR_CEBERR_SHIFT 18
  323. #define SD4_EMMC_TOP_INTR_CEBERR_MASK 0x00040000
  324. #define SD4_EMMC_TOP_INTR_CCRCERR_SHIFT 17
  325. #define SD4_EMMC_TOP_INTR_CCRCERR_MASK 0x00020000
  326. #define SD4_EMMC_TOP_INTR_CTOERR_SHIFT 16
  327. #define SD4_EMMC_TOP_INTR_CTOERR_MASK 0x00010000
  328. #define SD4_EMMC_TOP_INTR_ERRIRQ_SHIFT 15
  329. #define SD4_EMMC_TOP_INTR_ERRIRQ_MASK 0x00008000
  330. #define SD4_EMMC_TOP_INTR_BTIRQ_SHIFT 14
  331. #define SD4_EMMC_TOP_INTR_BTIRQ_MASK 0x00004000
  332. #define SD4_EMMC_TOP_INTR_BTACKRX_SHIFT 13
  333. #define SD4_EMMC_TOP_INTR_BTACKRX_MASK 0x00002000
  334. #define SD4_EMMC_TOP_INTR_RETUNE_EVENT_SHIFT 12
  335. #define SD4_EMMC_TOP_INTR_RETUNE_EVENT_MASK 0x00001000
  336. #define SD4_EMMC_TOP_INTR_INT_C_SHIFT 11
  337. #define SD4_EMMC_TOP_INTR_INT_C_MASK 0x00000800
  338. #define SD4_EMMC_TOP_INTR_INT_B_SHIFT 10
  339. #define SD4_EMMC_TOP_INTR_INT_B_MASK 0x00000400
  340. #define SD4_EMMC_TOP_INTR_INT_A_SHIFT 9
  341. #define SD4_EMMC_TOP_INTR_INT_A_MASK 0x00000200
  342. #define SD4_EMMC_TOP_INTR_CRDIRQ_SHIFT 8
  343. #define SD4_EMMC_TOP_INTR_CRDIRQ_MASK 0x00000100
  344. #define SD4_EMMC_TOP_INTR_CRDRMV_SHIFT 7
  345. #define SD4_EMMC_TOP_INTR_CRDRMV_MASK 0x00000080
  346. #define SD4_EMMC_TOP_INTR_CRDINS_SHIFT 6
  347. #define SD4_EMMC_TOP_INTR_CRDINS_MASK 0x00000040
  348. #define SD4_EMMC_TOP_INTR_BRRDY_SHIFT 5
  349. #define SD4_EMMC_TOP_INTR_BRRDY_MASK 0x00000020
  350. #define SD4_EMMC_TOP_INTR_BWRDY_SHIFT 4
  351. #define SD4_EMMC_TOP_INTR_BWRDY_MASK 0x00000010
  352. #define SD4_EMMC_TOP_INTR_DMAIRQ_SHIFT 3
  353. #define SD4_EMMC_TOP_INTR_DMAIRQ_MASK 0x00000008
  354. #define SD4_EMMC_TOP_INTR_BLKENT_SHIFT 2
  355. #define SD4_EMMC_TOP_INTR_BLKENT_MASK 0x00000004
  356. #define SD4_EMMC_TOP_INTR_TXDONE_SHIFT 1
  357. #define SD4_EMMC_TOP_INTR_TXDONE_MASK 0x00000002
  358. #define SD4_EMMC_TOP_INTR_CMDDONE_SHIFT 0
  359. #define SD4_EMMC_TOP_INTR_CMDDONE_MASK 0x00000001
  360. #define SD4_EMMC_TOP_INTR_SD4_OFFSET 0x00000030
  361. #define SD4_EMMC_TOP_INTR_SD4_DEFAULT 0x00000000
  362. #define SD4_EMMC_TOP_INTR_SD4_TYPE uint32_t
  363. #define SD4_EMMC_TOP_INTR_SD4_RESERVED_MASK 0xF0006000
  364. #define SD4_EMMC_TOP_INTR_SD4_TRESPERR_SHIFT 27
  365. #define SD4_EMMC_TOP_INTR_SD4_TRESPERR_MASK 0x08000000
  366. #define SD4_EMMC_TOP_INTR_SD4_TUNEERR_SHIFT 26
  367. #define SD4_EMMC_TOP_INTR_SD4_TUNEERR_MASK 0x04000000
  368. #define SD4_EMMC_TOP_INTR_SD4_ADMAERR_SHIFT 25
  369. #define SD4_EMMC_TOP_INTR_SD4_ADMAERR_MASK 0x02000000
  370. #define SD4_EMMC_TOP_INTR_SD4_CMDERROR_SHIFT 24
  371. #define SD4_EMMC_TOP_INTR_SD4_CMDERROR_MASK 0x01000000
  372. #define SD4_EMMC_TOP_INTR_SD4_IERR_SHIFT 23
  373. #define SD4_EMMC_TOP_INTR_SD4_IERR_MASK 0x00800000
  374. #define SD4_EMMC_TOP_INTR_SD4_DEBERR_SHIFT 22
  375. #define SD4_EMMC_TOP_INTR_SD4_DEBERR_MASK 0x00400000
  376. #define SD4_EMMC_TOP_INTR_SD4_DCRCERR_SHIFT 21
  377. #define SD4_EMMC_TOP_INTR_SD4_DCRCERR_MASK 0x00200000
  378. #define SD4_EMMC_TOP_INTR_SD4_DTOERR_SHIFT 20
  379. #define SD4_EMMC_TOP_INTR_SD4_DTOERR_MASK 0x00100000
  380. #define SD4_EMMC_TOP_INTR_SD4_CMDIDXERR_SHIFT 19
  381. #define SD4_EMMC_TOP_INTR_SD4_CMDIDXERR_MASK 0x00080000
  382. #define SD4_EMMC_TOP_INTR_SD4_CEBERR_SHIFT 18
  383. #define SD4_EMMC_TOP_INTR_SD4_CEBERR_MASK 0x00040000
  384. #define SD4_EMMC_TOP_INTR_SD4_CCRCERR_SHIFT 17
  385. #define SD4_EMMC_TOP_INTR_SD4_CCRCERR_MASK 0x00020000
  386. #define SD4_EMMC_TOP_INTR_SD4_CTOERR_SHIFT 16
  387. #define SD4_EMMC_TOP_INTR_SD4_CTOERR_MASK 0x00010000
  388. #define SD4_EMMC_TOP_INTR_SD4_ERRIRQ_SHIFT 15
  389. #define SD4_EMMC_TOP_INTR_SD4_ERRIRQ_MASK 0x00008000
  390. #define SD4_EMMC_TOP_INTR_SD4_RETUNE_EVENT_SHIFT 12
  391. #define SD4_EMMC_TOP_INTR_SD4_RETUNE_EVENT_MASK 0x00001000
  392. #define SD4_EMMC_TOP_INTR_SD4_INT_C_SHIFT 11
  393. #define SD4_EMMC_TOP_INTR_SD4_INT_C_MASK 0x00000800
  394. #define SD4_EMMC_TOP_INTR_SD4_INT_B_SHIFT 10
  395. #define SD4_EMMC_TOP_INTR_SD4_INT_B_MASK 0x00000400
  396. #define SD4_EMMC_TOP_INTR_SD4_INT_A_SHIFT 9
  397. #define SD4_EMMC_TOP_INTR_SD4_INT_A_MASK 0x00000200
  398. #define SD4_EMMC_TOP_INTR_SD4_CRDIRQ_SHIFT 8
  399. #define SD4_EMMC_TOP_INTR_SD4_CRDIRQ_MASK 0x00000100
  400. #define SD4_EMMC_TOP_INTR_SD4_CRDRMV_SHIFT 7
  401. #define SD4_EMMC_TOP_INTR_SD4_CRDRMV_MASK 0x00000080
  402. #define SD4_EMMC_TOP_INTR_SD4_CRDINS_SHIFT 6
  403. #define SD4_EMMC_TOP_INTR_SD4_CRDINS_MASK 0x00000040
  404. #define SD4_EMMC_TOP_INTR_SD4_BRRDY_SHIFT 5
  405. #define SD4_EMMC_TOP_INTR_SD4_BRRDY_MASK 0x00000020
  406. #define SD4_EMMC_TOP_INTR_SD4_BWRDY_SHIFT 4
  407. #define SD4_EMMC_TOP_INTR_SD4_BWRDY_MASK 0x00000010
  408. #define SD4_EMMC_TOP_INTR_SD4_DMAIRQ_SHIFT 3
  409. #define SD4_EMMC_TOP_INTR_SD4_DMAIRQ_MASK 0x00000008
  410. #define SD4_EMMC_TOP_INTR_SD4_BLKENT_SHIFT 2
  411. #define SD4_EMMC_TOP_INTR_SD4_BLKENT_MASK 0x00000004
  412. #define SD4_EMMC_TOP_INTR_SD4_TXDONE_SHIFT 1
  413. #define SD4_EMMC_TOP_INTR_SD4_TXDONE_MASK 0x00000002
  414. #define SD4_EMMC_TOP_INTR_SD4_CMDDONE_SHIFT 0
  415. #define SD4_EMMC_TOP_INTR_SD4_CMDDONE_MASK 0x00000001
  416. #define SD4_EMMC_TOP_INTREN1_OFFSET 0x00000034
  417. #define SD4_EMMC_TOP_INTREN1_DEFAULT 0x00000000
  418. #define SD4_EMMC_TOP_INTREN1_TYPE uint32_t
  419. #define SD4_EMMC_TOP_INTREN1_RESERVED_MASK 0xEC000000
  420. #define SD4_EMMC_TOP_INTREN1_TRESPERREN_SHIFT 28
  421. #define SD4_EMMC_TOP_INTREN1_TRESPERREN_MASK 0x10000000
  422. #define SD4_EMMC_TOP_INTREN1_ADMAEREN_SHIFT 25
  423. #define SD4_EMMC_TOP_INTREN1_ADMAEREN_MASK 0x02000000
  424. #define SD4_EMMC_TOP_INTREN1_CMDERREN_SHIFT 24
  425. #define SD4_EMMC_TOP_INTREN1_CMDERREN_MASK 0x01000000
  426. #define SD4_EMMC_TOP_INTREN1_ILIMERREN_SHIFT 23
  427. #define SD4_EMMC_TOP_INTREN1_ILIMERREN_MASK 0x00800000
  428. #define SD4_EMMC_TOP_INTREN1_DEBERREN_SHIFT 22
  429. #define SD4_EMMC_TOP_INTREN1_DEBERREN_MASK 0x00400000
  430. #define SD4_EMMC_TOP_INTREN1_DCRCERREN_SHIFT 21
  431. #define SD4_EMMC_TOP_INTREN1_DCRCERREN_MASK 0x00200000
  432. #define SD4_EMMC_TOP_INTREN1_DTOERREN_SHIFT 20
  433. #define SD4_EMMC_TOP_INTREN1_DTOERREN_MASK 0x00100000
  434. #define SD4_EMMC_TOP_INTREN1_CIDXERREN_SHIFT 19
  435. #define SD4_EMMC_TOP_INTREN1_CIDXERREN_MASK 0x00080000
  436. #define SD4_EMMC_TOP_INTREN1_CEBERREN_SHIFT 18
  437. #define SD4_EMMC_TOP_INTREN1_CEBERREN_MASK 0x00040000
  438. #define SD4_EMMC_TOP_INTREN1_CMDCRCEN_SHIFT 17
  439. #define SD4_EMMC_TOP_INTREN1_CMDCRCEN_MASK 0x00020000
  440. #define SD4_EMMC_TOP_INTREN1_CMDTOEN_SHIFT 16
  441. #define SD4_EMMC_TOP_INTREN1_CMDTOEN_MASK 0x00010000
  442. #define SD4_EMMC_TOP_INTREN1_FIXZ_SHIFT 15
  443. #define SD4_EMMC_TOP_INTREN1_FIXZ_MASK 0x00008000
  444. #define SD4_EMMC_TOP_INTREN1_BTIRQEN_SHIFT 14
  445. #define SD4_EMMC_TOP_INTREN1_BTIRQEN_MASK 0x00004000
  446. #define SD4_EMMC_TOP_INTREN1_BTACKRXEN_SHIFT 13
  447. #define SD4_EMMC_TOP_INTREN1_BTACKRXEN_MASK 0x00002000
  448. #define SD4_EMMC_TOP_INTREN1_RETUNE_EVENTEN_SHIFT 12
  449. #define SD4_EMMC_TOP_INTREN1_RETUNE_EVENTEN_MASK 0x00001000
  450. #define SD4_EMMC_TOP_INTREN1_INT_C_EN_SHIFT 11
  451. #define SD4_EMMC_TOP_INTREN1_INT_C_EN_MASK 0x00000800
  452. #define SD4_EMMC_TOP_INTREN1_INT_B_EN_SHIFT 10
  453. #define SD4_EMMC_TOP_INTREN1_INT_B_EN_MASK 0x00000400
  454. #define SD4_EMMC_TOP_INTREN1_INT_A_EN_SHIFT 9
  455. #define SD4_EMMC_TOP_INTREN1_INT_A_EN_MASK 0x00000200
  456. #define SD4_EMMC_TOP_INTREN1_CIRQEN_SHIFT 8
  457. #define SD4_EMMC_TOP_INTREN1_CIRQEN_MASK 0x00000100
  458. #define SD4_EMMC_TOP_INTREN1_CRDRMVEN_SHIFT 7
  459. #define SD4_EMMC_TOP_INTREN1_CRDRMVEN_MASK 0x00000080
  460. #define SD4_EMMC_TOP_INTREN1_CRDINSEN_SHIFT 6
  461. #define SD4_EMMC_TOP_INTREN1_CRDINSEN_MASK 0x00000040
  462. #define SD4_EMMC_TOP_INTREN1_BUFRREN_SHIFT 5
  463. #define SD4_EMMC_TOP_INTREN1_BUFRREN_MASK 0x00000020
  464. #define SD4_EMMC_TOP_INTREN1_BUFWREN_SHIFT 4
  465. #define SD4_EMMC_TOP_INTREN1_BUFWREN_MASK 0x00000010
  466. #define SD4_EMMC_TOP_INTREN1_DMAIRQEN_SHIFT 3
  467. #define SD4_EMMC_TOP_INTREN1_DMAIRQEN_MASK 0x00000008
  468. #define SD4_EMMC_TOP_INTREN1_BLKEN_SHIFT 2
  469. #define SD4_EMMC_TOP_INTREN1_BLKEN_MASK 0x00000004
  470. #define SD4_EMMC_TOP_INTREN1_TXDONEEN_SHIFT 1
  471. #define SD4_EMMC_TOP_INTREN1_TXDONEEN_MASK 0x00000002
  472. #define SD4_EMMC_TOP_INTREN1_CMDDONEEN_SHIFT 0
  473. #define SD4_EMMC_TOP_INTREN1_CMDDONEEN_MASK 0x00000001
  474. #define SD4_EMMC_TOP_INTREN1_SD4_OFFSET 0x00000034
  475. #define SD4_EMMC_TOP_INTREN1_SD4_DEFAULT 0x00000000
  476. #define SD4_EMMC_TOP_INTREN1_SD4_TYPE uint32_t
  477. #define SD4_EMMC_TOP_INTREN1_SD4_RESERVED_MASK 0x00006000
  478. #define SD4_EMMC_TOP_INTREN1_SD4_VNDRERREN_SHIFT 28
  479. #define SD4_EMMC_TOP_INTREN1_SD4_VNDRERREN_MASK 0xF0000000
  480. #define SD4_EMMC_TOP_INTREN1_SD4_TRESPERREN_SHIFT 27
  481. #define SD4_EMMC_TOP_INTREN1_SD4_TRESPERREN_MASK 0x08000000
  482. #define SD4_EMMC_TOP_INTREN1_SD4_TUNEERREN_SHIFT 26
  483. #define SD4_EMMC_TOP_INTREN1_SD4_TUNEERREN_MASK 0x04000000
  484. #define SD4_EMMC_TOP_INTREN1_SD4_ADMAEREN_SHIFT 25
  485. #define SD4_EMMC_TOP_INTREN1_SD4_ADMAEREN_MASK 0x02000000
  486. #define SD4_EMMC_TOP_INTREN1_SD4_CMDERREN_SHIFT 24
  487. #define SD4_EMMC_TOP_INTREN1_SD4_CMDERREN_MASK 0x01000000
  488. #define SD4_EMMC_TOP_INTREN1_SD4_ILIMERREN_SHIFT 23
  489. #define SD4_EMMC_TOP_INTREN1_SD4_ILIMERREN_MASK 0x00800000
  490. #define SD4_EMMC_TOP_INTREN1_SD4_DEBERREN_SHIFT 22
  491. #define SD4_EMMC_TOP_INTREN1_SD4_DEBERREN_MASK 0x00400000
  492. #define SD4_EMMC_TOP_INTREN1_SD4_DCRCERREN_SHIFT 21
  493. #define SD4_EMMC_TOP_INTREN1_SD4_DCRCERREN_MASK 0x00200000
  494. #define SD4_EMMC_TOP_INTREN1_SD4_DTOERREN_SHIFT 20
  495. #define SD4_EMMC_TOP_INTREN1_SD4_DTOERREN_MASK 0x00100000
  496. #define SD4_EMMC_TOP_INTREN1_SD4_CIDXERREN_SHIFT 19
  497. #define SD4_EMMC_TOP_INTREN1_SD4_CIDXERREN_MASK 0x00080000
  498. #define SD4_EMMC_TOP_INTREN1_SD4_CEBERREN_SHIFT 18
  499. #define SD4_EMMC_TOP_INTREN1_SD4_CEBERREN_MASK 0x00040000
  500. #define SD4_EMMC_TOP_INTREN1_SD4_CMDCRCEN_SHIFT 17
  501. #define SD4_EMMC_TOP_INTREN1_SD4_CMDCRCEN_MASK 0x00020000
  502. #define SD4_EMMC_TOP_INTREN1_SD4_CMDTOEN_SHIFT 16
  503. #define SD4_EMMC_TOP_INTREN1_SD4_CMDTOEN_MASK 0x00010000
  504. #define SD4_EMMC_TOP_INTREN1_SD4_FIXZ_SHIFT 15
  505. #define SD4_EMMC_TOP_INTREN1_SD4_FIXZ_MASK 0x00008000
  506. #define SD4_EMMC_TOP_INTREN1_SD4_RETUNE_EVENTEN_SHIFT 12
  507. #define SD4_EMMC_TOP_INTREN1_SD4_RETUNE_EVENTEN_MASK 0x00001000
  508. #define SD4_EMMC_TOP_INTREN1_SD4_INT_C_EN_SHIFT 11
  509. #define SD4_EMMC_TOP_INTREN1_SD4_INT_C_EN_MASK 0x00000800
  510. #define SD4_EMMC_TOP_INTREN1_SD4_INT_B_EN_SHIFT 10
  511. #define SD4_EMMC_TOP_INTREN1_SD4_INT_B_EN_MASK 0x00000400
  512. #define SD4_EMMC_TOP_INTREN1_SD4_INT_A_EN_SHIFT 9
  513. #define SD4_EMMC_TOP_INTREN1_SD4_INT_A_EN_MASK 0x00000200
  514. #define SD4_EMMC_TOP_INTREN1_SD4_CIRQEN_SHIFT 8
  515. #define SD4_EMMC_TOP_INTREN1_SD4_CIRQEN_MASK 0x00000100
  516. #define SD4_EMMC_TOP_INTREN1_SD4_CRDRMVEN_SHIFT 7
  517. #define SD4_EMMC_TOP_INTREN1_SD4_CRDRMVEN_MASK 0x00000080
  518. #define SD4_EMMC_TOP_INTREN1_SD4_CRDINSEN_SHIFT 6
  519. #define SD4_EMMC_TOP_INTREN1_SD4_CRDINSEN_MASK 0x00000040
  520. #define SD4_EMMC_TOP_INTREN1_SD4_BUFRREN_SHIFT 5
  521. #define SD4_EMMC_TOP_INTREN1_SD4_BUFRREN_MASK 0x00000020
  522. #define SD4_EMMC_TOP_INTREN1_SD4_BUFWREN_SHIFT 4
  523. #define SD4_EMMC_TOP_INTREN1_SD4_BUFWREN_MASK 0x00000010
  524. #define SD4_EMMC_TOP_INTREN1_SD4_DMAIRQEN_SHIFT 3
  525. #define SD4_EMMC_TOP_INTREN1_SD4_DMAIRQEN_MASK 0x00000008
  526. #define SD4_EMMC_TOP_INTREN1_SD4_BLKEN_SHIFT 2
  527. #define SD4_EMMC_TOP_INTREN1_SD4_BLKEN_MASK 0x00000004
  528. #define SD4_EMMC_TOP_INTREN1_SD4_TXDONEEN_SHIFT 1
  529. #define SD4_EMMC_TOP_INTREN1_SD4_TXDONEEN_MASK 0x00000002
  530. #define SD4_EMMC_TOP_INTREN1_SD4_CMDDONEEN_SHIFT 0
  531. #define SD4_EMMC_TOP_INTREN1_SD4_CMDDONEEN_MASK 0x00000001
  532. #define SD4_EMMC_TOP_INTREN2_OFFSET 0x00000038
  533. #define SD4_EMMC_TOP_INTREN2_DEFAULT 0x00000000
  534. #define SD4_EMMC_TOP_INTREN2_TYPE uint32_t
  535. #define SD4_EMMC_TOP_INTREN2_RESERVED_MASK 0xEC000000
  536. #define SD4_EMMC_TOP_INTREN2_TRESPERRSEN_SHIFT 28
  537. #define SD4_EMMC_TOP_INTREN2_TRESPERRSEN_MASK 0x10000000
  538. #define SD4_EMMC_TOP_INTREN2_ADMASIGEN_SHIFT 25
  539. #define SD4_EMMC_TOP_INTREN2_ADMASIGEN_MASK 0x02000000
  540. #define SD4_EMMC_TOP_INTREN2_CMDSIGEN_SHIFT 24
  541. #define SD4_EMMC_TOP_INTREN2_CMDSIGEN_MASK 0x01000000
  542. #define SD4_EMMC_TOP_INTREN2_ILIMSIGEN_SHIFT 23
  543. #define SD4_EMMC_TOP_INTREN2_ILIMSIGEN_MASK 0x00800000
  544. #define SD4_EMMC_TOP_INTREN2_DEBSIGEN_SHIFT 22
  545. #define SD4_EMMC_TOP_INTREN2_DEBSIGEN_MASK 0x00400000
  546. #define SD4_EMMC_TOP_INTREN2_DCRCSIGEN_SHIFT 21
  547. #define SD4_EMMC_TOP_INTREN2_DCRCSIGEN_MASK 0x00200000
  548. #define SD4_EMMC_TOP_INTREN2_DTOSIGEN_SHIFT 20
  549. #define SD4_EMMC_TOP_INTREN2_DTOSIGEN_MASK 0x00100000
  550. #define SD4_EMMC_TOP_INTREN2_CIDXSIGEN_SHIFT 19
  551. #define SD4_EMMC_TOP_INTREN2_CIDXSIGEN_MASK 0x00080000
  552. #define SD4_EMMC_TOP_INTREN2_CEBSIGEN_SHIFT 18
  553. #define SD4_EMMC_TOP_INTREN2_CEBSIGEN_MASK 0x00040000
  554. #define SD4_EMMC_TOP_INTREN2_CMDCRCSIGEN_SHIFT 17
  555. #define SD4_EMMC_TOP_INTREN2_CMDCRCSIGEN_MASK 0x00020000
  556. #define SD4_EMMC_TOP_INTREN2_CMDTOSIGEN_SHIFT 16
  557. #define SD4_EMMC_TOP_INTREN2_CMDTOSIGEN_MASK 0x00010000
  558. #define SD4_EMMC_TOP_INTREN2_FIXZERO_SHIFT 15
  559. #define SD4_EMMC_TOP_INTREN2_FIXZERO_MASK 0x00008000
  560. #define SD4_EMMC_TOP_INTREN2_BTIRQSEN_SHIFT 14
  561. #define SD4_EMMC_TOP_INTREN2_BTIRQSEN_MASK 0x00004000
  562. #define SD4_EMMC_TOP_INTREN2_BTACKRXSEN_SHIFT 13
  563. #define SD4_EMMC_TOP_INTREN2_BTACKRXSEN_MASK 0x00002000
  564. #define SD4_EMMC_TOP_INTREN2_RETUNE_EVENTSIGEN_SHIFT 12
  565. #define SD4_EMMC_TOP_INTREN2_RETUNE_EVENTSIGEN_MASK 0x00001000
  566. #define SD4_EMMC_TOP_INTREN2_INT_C_SIGEN_SHIFT 11
  567. #define SD4_EMMC_TOP_INTREN2_INT_C_SIGEN_MASK 0x00000800
  568. #define SD4_EMMC_TOP_INTREN2_INT_B_SIGEN_SHIFT 10
  569. #define SD4_EMMC_TOP_INTREN2_INT_B_SIGEN_MASK 0x00000400
  570. #define SD4_EMMC_TOP_INTREN2_INT_A_SIGEN_SHIFT 9
  571. #define SD4_EMMC_TOP_INTREN2_INT_A_SIGEN_MASK 0x00000200
  572. #define SD4_EMMC_TOP_INTREN2_CRDIRQEN_SHIFT 8
  573. #define SD4_EMMC_TOP_INTREN2_CRDIRQEN_MASK 0x00000100
  574. #define SD4_EMMC_TOP_INTREN2_CRDRVMEN_SHIFT 7
  575. #define SD4_EMMC_TOP_INTREN2_CRDRVMEN_MASK 0x00000080
  576. #define SD4_EMMC_TOP_INTREN2_CRDINSEN_SHIFT 6
  577. #define SD4_EMMC_TOP_INTREN2_CRDINSEN_MASK 0x00000040
  578. #define SD4_EMMC_TOP_INTREN2_BUFRRDYEN_SHIFT 5
  579. #define SD4_EMMC_TOP_INTREN2_BUFRRDYEN_MASK 0x00000020
  580. #define SD4_EMMC_TOP_INTREN2_BUFWRDYEN_SHIFT 4
  581. #define SD4_EMMC_TOP_INTREN2_BUFWRDYEN_MASK 0x00000010
  582. #define SD4_EMMC_TOP_INTREN2_DMAIRQEN_SHIFT 3
  583. #define SD4_EMMC_TOP_INTREN2_DMAIRQEN_MASK 0x00000008
  584. #define SD4_EMMC_TOP_INTREN2_BLKGAPEN_SHIFT 2
  585. #define SD4_EMMC_TOP_INTREN2_BLKGAPEN_MASK 0x00000004
  586. #define SD4_EMMC_TOP_INTREN2_TXDONE_SHIFT 1
  587. #define SD4_EMMC_TOP_INTREN2_TXDONE_MASK 0x00000002
  588. #define SD4_EMMC_TOP_INTREN2_CMDDONE_SHIFT 0
  589. #define SD4_EMMC_TOP_INTREN2_CMDDONE_MASK 0x00000001
  590. #define SD4_EMMC_TOP_INTREN2_SD4_OFFSET 0x00000038
  591. #define SD4_EMMC_TOP_INTREN2_SD4_DEFAULT 0x00000000
  592. #define SD4_EMMC_TOP_INTREN2_SD4_TYPE uint32_t
  593. #define SD4_EMMC_TOP_INTREN2_SD4_RESERVED_MASK 0xF0006000
  594. #define SD4_EMMC_TOP_INTREN2_SD4_TRESPERRSEN_SHIFT 27
  595. #define SD4_EMMC_TOP_INTREN2_SD4_TRESPERRSEN_MASK 0x08000000
  596. #define SD4_EMMC_TOP_INTREN2_SD4_TUNERRSIGEN_SHIFT 26
  597. #define SD4_EMMC_TOP_INTREN2_SD4_TUNERRSIGEN_MASK 0x04000000
  598. #define SD4_EMMC_TOP_INTREN2_SD4_ADMASIGEN_SHIFT 25
  599. #define SD4_EMMC_TOP_INTREN2_SD4_ADMASIGEN_MASK 0x02000000
  600. #define SD4_EMMC_TOP_INTREN2_SD4_CMDSIGEN_SHIFT 24
  601. #define SD4_EMMC_TOP_INTREN2_SD4_CMDSIGEN_MASK 0x01000000
  602. #define SD4_EMMC_TOP_INTREN2_SD4_ILIMSIGEN_SHIFT 23
  603. #define SD4_EMMC_TOP_INTREN2_SD4_ILIMSIGEN_MASK 0x00800000
  604. #define SD4_EMMC_TOP_INTREN2_SD4_DEBSIGEN_SHIFT 22
  605. #define SD4_EMMC_TOP_INTREN2_SD4_DEBSIGEN_MASK 0x00400000
  606. #define SD4_EMMC_TOP_INTREN2_SD4_DCRCSIGEN_SHIFT 21
  607. #define SD4_EMMC_TOP_INTREN2_SD4_DCRCSIGEN_MASK 0x00200000
  608. #define SD4_EMMC_TOP_INTREN2_SD4_DTOSIGEN_SHIFT 20
  609. #define SD4_EMMC_TOP_INTREN2_SD4_DTOSIGEN_MASK 0x00100000
  610. #define SD4_EMMC_TOP_INTREN2_SD4_CIDXSIGEN_SHIFT 19
  611. #define SD4_EMMC_TOP_INTREN2_SD4_CIDXSIGEN_MASK 0x00080000
  612. #define SD4_EMMC_TOP_INTREN2_SD4_CEBSIGEN_SHIFT 18
  613. #define SD4_EMMC_TOP_INTREN2_SD4_CEBSIGEN_MASK 0x00040000
  614. #define SD4_EMMC_TOP_INTREN2_SD4_CMDCRCSIGEN_SHIFT 17
  615. #define SD4_EMMC_TOP_INTREN2_SD4_CMDCRCSIGEN_MASK 0x00020000
  616. #define SD4_EMMC_TOP_INTREN2_SD4_CMDTOSIGEN_SHIFT 16
  617. #define SD4_EMMC_TOP_INTREN2_SD4_CMDTOSIGEN_MASK 0x00010000
  618. #define SD4_EMMC_TOP_INTREN2_SD4_FIXZERO_SHIFT 15
  619. #define SD4_EMMC_TOP_INTREN2_SD4_FIXZERO_MASK 0x00008000
  620. #define SD4_EMMC_TOP_INTREN2_SD4_RETUNE_EVENTSIGEN_SHIFT 12
  621. #define SD4_EMMC_TOP_INTREN2_SD4_RETUNE_EVENTSIGEN_MASK 0x00001000
  622. #define SD4_EMMC_TOP_INTREN2_SD4_INT_C_SIGEN_SHIFT 11
  623. #define SD4_EMMC_TOP_INTREN2_SD4_INT_C_SIGEN_MASK 0x00000800
  624. #define SD4_EMMC_TOP_INTREN2_SD4_INT_B_SIGEN_SHIFT 10
  625. #define SD4_EMMC_TOP_INTREN2_SD4_INT_B_SIGEN_MASK 0x00000400
  626. #define SD4_EMMC_TOP_INTREN2_SD4_INT_A_SIGEN_SHIFT 9
  627. #define SD4_EMMC_TOP_INTREN2_SD4_INT_A_SIGEN_MASK 0x00000200
  628. #define SD4_EMMC_TOP_INTREN2_SD4_CRDIRQEN_SHIFT 8
  629. #define SD4_EMMC_TOP_INTREN2_SD4_CRDIRQEN_MASK 0x00000100
  630. #define SD4_EMMC_TOP_INTREN2_SD4_CRDRVMEN_SHIFT 7
  631. #define SD4_EMMC_TOP_INTREN2_SD4_CRDRVMEN_MASK 0x00000080
  632. #define SD4_EMMC_TOP_INTREN2_SD4_CRDINSEN_SHIFT 6
  633. #define SD4_EMMC_TOP_INTREN2_SD4_CRDINSEN_MASK 0x00000040
  634. #define SD4_EMMC_TOP_INTREN2_SD4_BUFRRDYEN_SHIFT 5
  635. #define SD4_EMMC_TOP_INTREN2_SD4_BUFRRDYEN_MASK 0x00000020
  636. #define SD4_EMMC_TOP_INTREN2_SD4_BUFWRDYEN_SHIFT 4
  637. #define SD4_EMMC_TOP_INTREN2_SD4_BUFWRDYEN_MASK 0x00000010
  638. #define SD4_EMMC_TOP_INTREN2_SD4_DMAIRQEN_SHIFT 3
  639. #define SD4_EMMC_TOP_INTREN2_SD4_DMAIRQEN_MASK 0x00000008
  640. #define SD4_EMMC_TOP_INTREN2_SD4_BLKGAPEN_SHIFT 2
  641. #define SD4_EMMC_TOP_INTREN2_SD4_BLKGAPEN_MASK 0x00000004
  642. #define SD4_EMMC_TOP_INTREN2_SD4_TXDONE_SHIFT 1
  643. #define SD4_EMMC_TOP_INTREN2_SD4_TXDONE_MASK 0x00000002
  644. #define SD4_EMMC_TOP_INTREN2_SD4_CMDDONE_SHIFT 0
  645. #define SD4_EMMC_TOP_INTREN2_SD4_CMDDONE_MASK 0x00000001
  646. #define SD4_EMMC_TOP_ERRSTAT_OFFSET 0x0000003C
  647. #define SD4_EMMC_TOP_ERRSTAT_DEFAULT 0x00000000
  648. #define SD4_EMMC_TOP_ERRSTAT_TYPE uint32_t
  649. #define SD4_EMMC_TOP_ERRSTAT_RESERVED_MASK 0x3F00FF60
  650. #define SD4_EMMC_TOP_ERRSTAT_PRESETEN_SHIFT 31
  651. #define SD4_EMMC_TOP_ERRSTAT_PRESETEN_MASK 0x80000000
  652. #define SD4_EMMC_TOP_ERRSTAT_ASYNC_INTREN_SHIFT 30
  653. #define SD4_EMMC_TOP_ERRSTAT_ASYNC_INTREN_MASK 0x40000000
  654. #define SD4_EMMC_TOP_ERRSTAT_SAMPLECLOCKSEL_SHIFT 23
  655. #define SD4_EMMC_TOP_ERRSTAT_SAMPLECLOCKSEL_MASK 0x00800000
  656. #define SD4_EMMC_TOP_ERRSTAT_EXECTUNE_SHIFT 22
  657. #define SD4_EMMC_TOP_ERRSTAT_EXECTUNE_MASK 0x00400000
  658. #define SD4_EMMC_TOP_ERRSTAT_DRVSTRESEL_SHIFT 20
  659. #define SD4_EMMC_TOP_ERRSTAT_DRVSTRESEL_MASK 0x00300000
  660. #define SD4_EMMC_TOP_ERRSTAT_EN1P8V_SHIFT 19
  661. #define SD4_EMMC_TOP_ERRSTAT_EN1P8V_MASK 0x00080000
  662. #define SD4_EMMC_TOP_ERRSTAT_UHSMODESEL_SHIFT 16
  663. #define SD4_EMMC_TOP_ERRSTAT_UHSMODESEL_MASK 0x00070000
  664. #define SD4_EMMC_TOP_ERRSTAT_NOCMD_SHIFT 7
  665. #define SD4_EMMC_TOP_ERRSTAT_NOCMD_MASK 0x00000080
  666. #define SD4_EMMC_TOP_ERRSTAT_CMDIDXERR_SHIFT 4
  667. #define SD4_EMMC_TOP_ERRSTAT_CMDIDXERR_MASK 0x00000010
  668. #define SD4_EMMC_TOP_ERRSTAT_CMDENDERR_SHIFT 3
  669. #define SD4_EMMC_TOP_ERRSTAT_CMDENDERR_MASK 0x00000008
  670. #define SD4_EMMC_TOP_ERRSTAT_CMDCRCERR_SHIFT 2
  671. #define SD4_EMMC_TOP_ERRSTAT_CMDCRCERR_MASK 0x00000004
  672. #define SD4_EMMC_TOP_ERRSTAT_CMDTOERR_SHIFT 1
  673. #define SD4_EMMC_TOP_ERRSTAT_CMDTOERR_MASK 0x00000002
  674. #define SD4_EMMC_TOP_ERRSTAT_CMDNOEXEC_SHIFT 0
  675. #define SD4_EMMC_TOP_ERRSTAT_CMDNOEXEC_MASK 0x00000001
  676. #define SD4_EMMC_TOP_ERRSTAT_SD4_OFFSET 0x0000003C
  677. #define SD4_EMMC_TOP_ERRSTAT_SD4_DEFAULT 0x00000000
  678. #define SD4_EMMC_TOP_ERRSTAT_SD4_TYPE uint32_t
  679. #define SD4_EMMC_TOP_ERRSTAT_SD4_RESERVED_MASK 0x0E00FF40
  680. #define SD4_EMMC_TOP_ERRSTAT_SD4_PRESETEN_SHIFT 31
  681. #define SD4_EMMC_TOP_ERRSTAT_SD4_PRESETEN_MASK 0x80000000
  682. #define SD4_EMMC_TOP_ERRSTAT_SD4_ASYNC_INTREN_SHIFT 30
  683. #define SD4_EMMC_TOP_ERRSTAT_SD4_ASYNC_INTREN_MASK 0x40000000
  684. #define SD4_EMMC_TOP_ERRSTAT_SD4_ADDR64_SHIFT 29
  685. #define SD4_EMMC_TOP_ERRSTAT_SD4_ADDR64_MASK 0x20000000
  686. #define SD4_EMMC_TOP_ERRSTAT_SD4_HOSTVER4_00_SHIFT 28
  687. #define SD4_EMMC_TOP_ERRSTAT_SD4_HOSTVER4_00_MASK 0x10000000
  688. #define SD4_EMMC_TOP_ERRSTAT_SD4_UHS2INTFEN_SHIFT 24
  689. #define SD4_EMMC_TOP_ERRSTAT_SD4_UHS2INTFEN_MASK 0x01000000
  690. #define SD4_EMMC_TOP_ERRSTAT_SD4_SAMPLECLOCKSEL_SHIFT 23
  691. #define SD4_EMMC_TOP_ERRSTAT_SD4_SAMPLECLOCKSEL_MASK 0x00800000
  692. #define SD4_EMMC_TOP_ERRSTAT_SD4_EXECTUNE_SHIFT 22
  693. #define SD4_EMMC_TOP_ERRSTAT_SD4_EXECTUNE_MASK 0x00400000
  694. #define SD4_EMMC_TOP_ERRSTAT_SD4_DRVSTRESEL_SHIFT 20
  695. #define SD4_EMMC_TOP_ERRSTAT_SD4_DRVSTRESEL_MASK 0x00300000
  696. #define SD4_EMMC_TOP_ERRSTAT_SD4_EN1P8V_SHIFT 19
  697. #define SD4_EMMC_TOP_ERRSTAT_SD4_EN1P8V_MASK 0x00080000
  698. #define SD4_EMMC_TOP_ERRSTAT_SD4_UHSMODESEL_SHIFT 16
  699. #define SD4_EMMC_TOP_ERRSTAT_SD4_UHSMODESEL_MASK 0x00070000
  700. #define SD4_EMMC_TOP_ERRSTAT_SD4_NOCMD_SHIFT 7
  701. #define SD4_EMMC_TOP_ERRSTAT_SD4_NOCMD_MASK 0x00000080
  702. #define SD4_EMMC_TOP_ERRSTAT_SD4_CMDRESPERR_SHIFT 5
  703. #define SD4_EMMC_TOP_ERRSTAT_SD4_CMDRESPERR_MASK 0x00000020
  704. #define SD4_EMMC_TOP_ERRSTAT_SD4_CMDIDXERR_SHIFT 4
  705. #define SD4_EMMC_TOP_ERRSTAT_SD4_CMDIDXERR_MASK 0x00000010
  706. #define SD4_EMMC_TOP_ERRSTAT_SD4_CMDENDERR_SHIFT 3
  707. #define SD4_EMMC_TOP_ERRSTAT_SD4_CMDENDERR_MASK 0x00000008
  708. #define SD4_EMMC_TOP_ERRSTAT_SD4_CMDCRCERR_SHIFT 2
  709. #define SD4_EMMC_TOP_ERRSTAT_SD4_CMDCRCERR_MASK 0x00000004
  710. #define SD4_EMMC_TOP_ERRSTAT_SD4_CMDTOERR_SHIFT 1
  711. #define SD4_EMMC_TOP_ERRSTAT_SD4_CMDTOERR_MASK 0x00000002
  712. #define SD4_EMMC_TOP_ERRSTAT_SD4_CMDNOEXEC_SHIFT 0
  713. #define SD4_EMMC_TOP_ERRSTAT_SD4_CMDNOEXEC_MASK 0x00000001
  714. #define SD4_EMMC_TOP_CAPABILITIES1_OFFSET 0x00000040
  715. #define SD4_EMMC_TOP_CAPABILITIES1_DEFAULT 0x17EFD0B0
  716. #define SD4_EMMC_TOP_CAPABILITIES1_TYPE uint32_t
  717. #define SD4_EMMC_TOP_CAPABILITIES1_RESERVED_MASK 0x08100040
  718. #define SD4_EMMC_TOP_CAPABILITIES1_SLOTTYPE_SHIFT 30
  719. #define SD4_EMMC_TOP_CAPABILITIES1_SLOTTYPE_MASK 0xC0000000
  720. #define SD4_EMMC_TOP_CAPABILITIES1_ASYNCHIRQ_SHIFT 29
  721. #define SD4_EMMC_TOP_CAPABILITIES1_ASYNCHIRQ_MASK 0x20000000
  722. #define SD4_EMMC_TOP_CAPABILITIES1_SYSBUS64_SHIFT 28
  723. #define SD4_EMMC_TOP_CAPABILITIES1_SYSBUS64_MASK 0x10000000
  724. #define SD4_EMMC_TOP_CAPABILITIES1_V18_SHIFT 26
  725. #define SD4_EMMC_TOP_CAPABILITIES1_V18_MASK 0x04000000
  726. #define SD4_EMMC_TOP_CAPABILITIES1_V3_SHIFT 25
  727. #define SD4_EMMC_TOP_CAPABILITIES1_V3_MASK 0x02000000
  728. #define SD4_EMMC_TOP_CAPABILITIES1_V33_SHIFT 24
  729. #define SD4_EMMC_TOP_CAPABILITIES1_V33_MASK 0x01000000
  730. #define SD4_EMMC_TOP_CAPABILITIES1_SUPRSM_SHIFT 23
  731. #define SD4_EMMC_TOP_CAPABILITIES1_SUPRSM_MASK 0x00800000
  732. #define SD4_EMMC_TOP_CAPABILITIES1_SDMA_SHIFT 22
  733. #define SD4_EMMC_TOP_CAPABILITIES1_SDMA_MASK 0x00400000
  734. #define SD4_EMMC_TOP_CAPABILITIES1_HSPEED_SHIFT 21
  735. #define SD4_EMMC_TOP_CAPABILITIES1_HSPEED_MASK 0x00200000
  736. #define SD4_EMMC_TOP_CAPABILITIES1_ADMA2_SHIFT 19
  737. #define SD4_EMMC_TOP_CAPABILITIES1_ADMA2_MASK 0x00080000
  738. #define SD4_EMMC_TOP_CAPABILITIES1_EXTBUSMED_SHIFT 18
  739. #define SD4_EMMC_TOP_CAPABILITIES1_EXTBUSMED_MASK 0x00040000
  740. #define SD4_EMMC_TOP_CAPABILITIES1_MAXBLK_SHIFT 16
  741. #define SD4_EMMC_TOP_CAPABILITIES1_MAXBLK_MASK 0x00030000
  742. #define SD4_EMMC_TOP_CAPABILITIES1_BCLK_SHIFT 8
  743. #define SD4_EMMC_TOP_CAPABILITIES1_BCLK_MASK 0x0000FF00
  744. #define SD4_EMMC_TOP_CAPABILITIES1_TOUT_SHIFT 7
  745. #define SD4_EMMC_TOP_CAPABILITIES1_TOUT_MASK 0x00000080
  746. #define SD4_EMMC_TOP_CAPABILITIES1_TOUTFREQ_SHIFT 0
  747. #define SD4_EMMC_TOP_CAPABILITIES1_TOUTFREQ_MASK 0x0000003F
  748. #define SD4_EMMC_TOP_CAPABILITIES1_SD4_OFFSET 0x00000040
  749. #define SD4_EMMC_TOP_CAPABILITIES1_SD4_DEFAULT 0x10E934B4
  750. #define SD4_EMMC_TOP_CAPABILITIES1_SD4_TYPE uint32_t
  751. #define SD4_EMMC_TOP_CAPABILITIES1_SD4_RESERVED_MASK 0x08100040
  752. #define SD4_EMMC_TOP_CAPABILITIES1_SD4_SLOTTYPE_SHIFT 30
  753. #define SD4_EMMC_TOP_CAPABILITIES1_SD4_SLOTTYPE_MASK 0xC0000000
  754. #define SD4_EMMC_TOP_CAPABILITIES1_SD4_ASYNCHIRQ_SHIFT 29
  755. #define SD4_EMMC_TOP_CAPABILITIES1_SD4_ASYNCHIRQ_MASK 0x20000000
  756. #define SD4_EMMC_TOP_CAPABILITIES1_SD4_SYSBUS64_SHIFT 28
  757. #define SD4_EMMC_TOP_CAPABILITIES1_SD4_SYSBUS64_MASK 0x10000000
  758. #define SD4_EMMC_TOP_CAPABILITIES1_SD4_V18_SHIFT 26
  759. #define SD4_EMMC_TOP_CAPABILITIES1_SD4_V18_MASK 0x04000000
  760. #define SD4_EMMC_TOP_CAPABILITIES1_SD4_V3_SHIFT 25
  761. #define SD4_EMMC_TOP_CAPABILITIES1_SD4_V3_MASK 0x02000000
  762. #define SD4_EMMC_TOP_CAPABILITIES1_SD4_V33_SHIFT 24
  763. #define SD4_EMMC_TOP_CAPABILITIES1_SD4_V33_MASK 0x01000000
  764. #define SD4_EMMC_TOP_CAPABILITIES1_SD4_SUPRSM_SHIFT 23
  765. #define SD4_EMMC_TOP_CAPABILITIES1_SD4_SUPRSM_MASK 0x00800000
  766. #define SD4_EMMC_TOP_CAPABILITIES1_SD4_SDMA_SHIFT 22
  767. #define SD4_EMMC_TOP_CAPABILITIES1_SD4_SDMA_MASK 0x00400000
  768. #define SD4_EMMC_TOP_CAPABILITIES1_SD4_HSPEED_SHIFT 21
  769. #define SD4_EMMC_TOP_CAPABILITIES1_SD4_HSPEED_MASK 0x00200000
  770. #define SD4_EMMC_TOP_CAPABILITIES1_SD4_ADMA2_SHIFT 19
  771. #define SD4_EMMC_TOP_CAPABILITIES1_SD4_ADMA2_MASK 0x00080000
  772. #define SD4_EMMC_TOP_CAPABILITIES1_SD4_EXTBUSMED_SHIFT 18
  773. #define SD4_EMMC_TOP_CAPABILITIES1_SD4_EXTBUSMED_MASK 0x00040000
  774. #define SD4_EMMC_TOP_CAPABILITIES1_SD4_MAXBLK_SHIFT 16
  775. #define SD4_EMMC_TOP_CAPABILITIES1_SD4_MAXBLK_MASK 0x00030000
  776. #define SD4_EMMC_TOP_CAPABILITIES1_SD4_BCLK_SHIFT 8
  777. #define SD4_EMMC_TOP_CAPABILITIES1_SD4_BCLK_MASK 0x0000FF00
  778. #define SD4_EMMC_TOP_CAPABILITIES1_SD4_TOUT_SHIFT 7
  779. #define SD4_EMMC_TOP_CAPABILITIES1_SD4_TOUT_MASK 0x00000080
  780. #define SD4_EMMC_TOP_CAPABILITIES1_SD4_TOUTFREQ_SHIFT 0
  781. #define SD4_EMMC_TOP_CAPABILITIES1_SD4_TOUTFREQ_MASK 0x0000003F
  782. #define SD4_EMMC_TOP_CAPABILITIES2_OFFSET 0x00000044
  783. #define SD4_EMMC_TOP_CAPABILITIES2_DEFAULT 0x03002177
  784. #define SD4_EMMC_TOP_CAPABILITIES2_TYPE uint32_t
  785. #define SD4_EMMC_TOP_CAPABILITIES2_RESERVED_MASK 0xFC001088
  786. #define SD4_EMMC_TOP_CAPABILITIES2_SPIBLOCKMODE_SHIFT 25
  787. #define SD4_EMMC_TOP_CAPABILITIES2_SPIBLOCKMODE_MASK 0x02000000
  788. #define SD4_EMMC_TOP_CAPABILITIES2_SPIMODE_CAP_SHIFT 24
  789. #define SD4_EMMC_TOP_CAPABILITIES2_SPIMODE_CAP_MASK 0x01000000
  790. #define SD4_EMMC_TOP_CAPABILITIES2_CLOCKMULT_SHIFT 16
  791. #define SD4_EMMC_TOP_CAPABILITIES2_CLOCKMULT_MASK 0x00FF0000
  792. #define SD4_EMMC_TOP_CAPABILITIES2_RETUNE_MODE_SHIFT 14
  793. #define SD4_EMMC_TOP_CAPABILITIES2_RETUNE_MODE_MASK 0x0000C000
  794. #define SD4_EMMC_TOP_CAPABILITIES2_USETUNE_SDR50_SHIFT 13
  795. #define SD4_EMMC_TOP_CAPABILITIES2_USETUNE_SDR50_MASK 0x00002000
  796. #define SD4_EMMC_TOP_CAPABILITIES2_TMRCNT_RETUNE_SHIFT 8
  797. #define SD4_EMMC_TOP_CAPABILITIES2_TMRCNT_RETUNE_MASK 0x00000F00
  798. #define SD4_EMMC_TOP_CAPABILITIES2_DRVR_TYPED_SHIFT 6
  799. #define SD4_EMMC_TOP_CAPABILITIES2_DRVR_TYPED_MASK 0x00000040
  800. #define SD4_EMMC_TOP_CAPABILITIES2_DRVR_TYPEC_SHIFT 5
  801. #define SD4_EMMC_TOP_CAPABILITIES2_DRVR_TYPEC_MASK 0x00000020
  802. #define SD4_EMMC_TOP_CAPABILITIES2_DRVR_TYPEA_SHIFT 4
  803. #define SD4_EMMC_TOP_CAPABILITIES2_DRVR_TYPEA_MASK 0x00000010
  804. #define SD4_EMMC_TOP_CAPABILITIES2_DDR50_SHIFT 2
  805. #define SD4_EMMC_TOP_CAPABILITIES2_DDR50_MASK 0x00000004
  806. #define SD4_EMMC_TOP_CAPABILITIES2_SDR104_SHIFT 1
  807. #define SD4_EMMC_TOP_CAPABILITIES2_SDR104_MASK 0x00000002
  808. #define SD4_EMMC_TOP_CAPABILITIES2_SDR50_SHIFT 0
  809. #define SD4_EMMC_TOP_CAPABILITIES2_SDR50_MASK 0x00000001
  810. #define SD4_EMMC_TOP_CAPABILITIES2_SD4_OFFSET 0x00000044
  811. #define SD4_EMMC_TOP_CAPABILITIES2_SD4_DEFAULT 0x10000064
  812. #define SD4_EMMC_TOP_CAPABILITIES2_SD4_TYPE uint32_t
  813. #define SD4_EMMC_TOP_CAPABILITIES2_SD4_RESERVED_MASK 0xE7001080
  814. #define SD4_EMMC_TOP_CAPABILITIES2_SD4_VDD2_18_SHIFT 28
  815. #define SD4_EMMC_TOP_CAPABILITIES2_SD4_VDD2_18_MASK 0x10000000
  816. #define SD4_EMMC_TOP_CAPABILITIES2_SD4_ADMA3_SHIFT 27
  817. #define SD4_EMMC_TOP_CAPABILITIES2_SD4_ADMA3_MASK 0x08000000
  818. #define SD4_EMMC_TOP_CAPABILITIES2_SD4_CLOCKMULT_SHIFT 16
  819. #define SD4_EMMC_TOP_CAPABILITIES2_SD4_CLOCKMULT_MASK 0x00FF0000
  820. #define SD4_EMMC_TOP_CAPABILITIES2_SD4_RETUNE_MODE_SHIFT 14
  821. #define SD4_EMMC_TOP_CAPABILITIES2_SD4_RETUNE_MODE_MASK 0x0000C000
  822. #define SD4_EMMC_TOP_CAPABILITIES2_SD4_USETUNE_SDR50_SHIFT 13
  823. #define SD4_EMMC_TOP_CAPABILITIES2_SD4_USETUNE_SDR50_MASK 0x00002000
  824. #define SD4_EMMC_TOP_CAPABILITIES2_SD4_TMRCNT_RETUNE_SHIFT 8
  825. #define SD4_EMMC_TOP_CAPABILITIES2_SD4_TMRCNT_RETUNE_MASK 0x00000F00
  826. #define SD4_EMMC_TOP_CAPABILITIES2_SD4_DRVR_TYPED_SHIFT 6
  827. #define SD4_EMMC_TOP_CAPABILITIES2_SD4_DRVR_TYPED_MASK 0x00000040
  828. #define SD4_EMMC_TOP_CAPABILITIES2_SD4_DRVR_TYPEC_SHIFT 5
  829. #define SD4_EMMC_TOP_CAPABILITIES2_SD4_DRVR_TYPEC_MASK 0x00000020
  830. #define SD4_EMMC_TOP_CAPABILITIES2_SD4_DRVR_TYPEA_SHIFT 4
  831. #define SD4_EMMC_TOP_CAPABILITIES2_SD4_DRVR_TYPEA_MASK 0x00000010
  832. #define SD4_EMMC_TOP_CAPABILITIES2_SD4_UHS_II_SHIFT 3
  833. #define SD4_EMMC_TOP_CAPABILITIES2_SD4_UHS_II_MASK 0x00000008
  834. #define SD4_EMMC_TOP_CAPABILITIES2_SD4_DDR50_SHIFT 2
  835. #define SD4_EMMC_TOP_CAPABILITIES2_SD4_DDR50_MASK 0x00000004
  836. #define SD4_EMMC_TOP_CAPABILITIES2_SD4_SDR104_SHIFT 1
  837. #define SD4_EMMC_TOP_CAPABILITIES2_SD4_SDR104_MASK 0x00000002
  838. #define SD4_EMMC_TOP_CAPABILITIES2_SD4_SDR50_SHIFT 0
  839. #define SD4_EMMC_TOP_CAPABILITIES2_SD4_SDR50_MASK 0x00000001
  840. #define SD4_EMMC_TOP_MAX_A1_OFFSET 0x00000048
  841. #define SD4_EMMC_TOP_MAX_A1_DEFAULT 0x00000001
  842. #define SD4_EMMC_TOP_MAX_A1_TYPE uint32_t
  843. #define SD4_EMMC_TOP_MAX_A1_RESERVED_MASK 0xFF000000
  844. #define SD4_EMMC_TOP_MAX_A1_MAXA18_SHIFT 16
  845. #define SD4_EMMC_TOP_MAX_A1_MAXA18_MASK 0x00FF0000
  846. #define SD4_EMMC_TOP_MAX_A1_MAXA30_SHIFT 8
  847. #define SD4_EMMC_TOP_MAX_A1_MAXA30_MASK 0x0000FF00
  848. #define SD4_EMMC_TOP_MAX_A1_MAXA33_SHIFT 0
  849. #define SD4_EMMC_TOP_MAX_A1_MAXA33_MASK 0x000000FF
  850. #define SD4_EMMC_TOP_MAX_A2_OFFSET 0x0000004C
  851. #define SD4_EMMC_TOP_MAX_A2_DEFAULT 0x00000000
  852. #define SD4_EMMC_TOP_MAX_A2_TYPE uint32_t
  853. #define SD4_EMMC_TOP_MAX_A2_RESERVED_MASK 0xFFFFFFFF
  854. #define SD4_EMMC_TOP_MAX_A2_SD4_OFFSET 0x0000004C
  855. #define SD4_EMMC_TOP_MAX_A2_SD4_DEFAULT 0x00000001
  856. #define SD4_EMMC_TOP_MAX_A2_SD4_TYPE uint32_t
  857. #define SD4_EMMC_TOP_MAX_A2_SD4_RESERVED_MASK 0xFFFFFF00
  858. #define SD4_EMMC_TOP_MAX_A2_SD4_MAXAVDD2_SHIFT 0
  859. #define SD4_EMMC_TOP_MAX_A2_SD4_MAXAVDD2_MASK 0x000000FF
  860. #define SD4_EMMC_TOP_CMDENTSTAT_OFFSET 0x00000050
  861. #define SD4_EMMC_TOP_CMDENTSTAT_DEFAULT 0x00000000
  862. #define SD4_EMMC_TOP_CMDENTSTAT_TYPE uint32_t
  863. #define SD4_EMMC_TOP_CMDENTSTAT_RESERVED_MASK 0x2C00FF60
  864. #define SD4_EMMC_TOP_CMDENTSTAT_VSES_SHIFT 30
  865. #define SD4_EMMC_TOP_CMDENTSTAT_VSES_MASK 0xC0000000
  866. #define SD4_EMMC_TOP_CMDENTSTAT_TRERR_SHIFT 28
  867. #define SD4_EMMC_TOP_CMDENTSTAT_TRERR_MASK 0x10000000
  868. #define SD4_EMMC_TOP_CMDENTSTAT_ADMAERR_SHIFT 25
  869. #define SD4_EMMC_TOP_CMDENTSTAT_ADMAERR_MASK 0x02000000
  870. #define SD4_EMMC_TOP_CMDENTSTAT_ACMDERR_SHIFT 24
  871. #define SD4_EMMC_TOP_CMDENTSTAT_ACMDERR_MASK 0x01000000
  872. #define SD4_EMMC_TOP_CMDENTSTAT_ILERR_SHIFT 23
  873. #define SD4_EMMC_TOP_CMDENTSTAT_ILERR_MASK 0x00800000
  874. #define SD4_EMMC_TOP_CMDENTSTAT_DENDERR_SHIFT 22
  875. #define SD4_EMMC_TOP_CMDENTSTAT_DENDERR_MASK 0x00400000
  876. #define SD4_EMMC_TOP_CMDENTSTAT_DCRCERR_SHIFT 21
  877. #define SD4_EMMC_TOP_CMDENTSTAT_DCRCERR_MASK 0x00200000
  878. #define SD4_EMMC_TOP_CMDENTSTAT_DTOUTERR_SHIFT 20
  879. #define SD4_EMMC_TOP_CMDENTSTAT_DTOUTERR_MASK 0x00100000
  880. #define SD4_EMMC_TOP_CMDENTSTAT_CIDXERR_SHIFT 19
  881. #define SD4_EMMC_TOP_CMDENTSTAT_CIDXERR_MASK 0x00080000
  882. #define SD4_EMMC_TOP_CMDENTSTAT_CENDERR_SHIFT 18
  883. #define SD4_EMMC_TOP_CMDENTSTAT_CENDERR_MASK 0x00040000
  884. #define SD4_EMMC_TOP_CMDENTSTAT_CCRCERR_SHIFT 17
  885. #define SD4_EMMC_TOP_CMDENTSTAT_CCRCERR_MASK 0x00020000
  886. #define SD4_EMMC_TOP_CMDENTSTAT_CTOUTERR_SHIFT 16
  887. #define SD4_EMMC_TOP_CMDENTSTAT_CTOUTERR_MASK 0x00010000
  888. #define SD4_EMMC_TOP_CMDENTSTAT_NOFRCENT_SHIFT 7
  889. #define SD4_EMMC_TOP_CMDENTSTAT_NOFRCENT_MASK 0x00000080
  890. #define SD4_EMMC_TOP_CMDENTSTAT_IDXERR_SHIFT 4
  891. #define SD4_EMMC_TOP_CMDENTSTAT_IDXERR_MASK 0x00000010
  892. #define SD4_EMMC_TOP_CMDENTSTAT_EBITERR_SHIFT 3
  893. #define SD4_EMMC_TOP_CMDENTSTAT_EBITERR_MASK 0x00000008
  894. #define SD4_EMMC_TOP_CMDENTSTAT_CRCERR_SHIFT 2
  895. #define SD4_EMMC_TOP_CMDENTSTAT_CRCERR_MASK 0x00000004
  896. #define SD4_EMMC_TOP_CMDENTSTAT_TOUTERR_SHIFT 1
  897. #define SD4_EMMC_TOP_CMDENTSTAT_TOUTERR_MASK 0x00000002
  898. #define SD4_EMMC_TOP_CMDENTSTAT_AUTONOEX_SHIFT 0
  899. #define SD4_EMMC_TOP_CMDENTSTAT_AUTONOEX_MASK 0x00000001
  900. #define SD4_EMMC_TOP_CMDENTSTAT_SD4_OFFSET 0x00000050
  901. #define SD4_EMMC_TOP_CMDENTSTAT_SD4_DEFAULT 0x00000000
  902. #define SD4_EMMC_TOP_CMDENTSTAT_SD4_TYPE uint32_t
  903. #define SD4_EMMC_TOP_CMDENTSTAT_SD4_RESERVED_MASK 0x0000FF40
  904. #define SD4_EMMC_TOP_CMDENTSTAT_SD4_VSES_SHIFT 28
  905. #define SD4_EMMC_TOP_CMDENTSTAT_SD4_VSES_MASK 0xF0000000
  906. #define SD4_EMMC_TOP_CMDENTSTAT_SD4_TRESPERR_SHIFT 27
  907. #define SD4_EMMC_TOP_CMDENTSTAT_SD4_TRESPERR_MASK 0x08000000
  908. #define SD4_EMMC_TOP_CMDENTSTAT_SD4_TUNERR_SHIFT 26
  909. #define SD4_EMMC_TOP_CMDENTSTAT_SD4_TUNERR_MASK 0x04000000
  910. #define SD4_EMMC_TOP_CMDENTSTAT_SD4_ADMAERR_SHIFT 25
  911. #define SD4_EMMC_TOP_CMDENTSTAT_SD4_ADMAERR_MASK 0x02000000
  912. #define SD4_EMMC_TOP_CMDENTSTAT_SD4_ACMDERR_SHIFT 24
  913. #define SD4_EMMC_TOP_CMDENTSTAT_SD4_ACMDERR_MASK 0x01000000
  914. #define SD4_EMMC_TOP_CMDENTSTAT_SD4_ILERR_SHIFT 23
  915. #define SD4_EMMC_TOP_CMDENTSTAT_SD4_ILERR_MASK 0x00800000
  916. #define SD4_EMMC_TOP_CMDENTSTAT_SD4_DENDERR_SHIFT 22
  917. #define SD4_EMMC_TOP_CMDENTSTAT_SD4_DENDERR_MASK 0x00400000
  918. #define SD4_EMMC_TOP_CMDENTSTAT_SD4_DCRCERR_SHIFT 21
  919. #define SD4_EMMC_TOP_CMDENTSTAT_SD4_DCRCERR_MASK 0x00200000
  920. #define SD4_EMMC_TOP_CMDENTSTAT_SD4_DTOUTERR_SHIFT 20
  921. #define SD4_EMMC_TOP_CMDENTSTAT_SD4_DTOUTERR_MASK 0x00100000
  922. #define SD4_EMMC_TOP_CMDENTSTAT_SD4_CIDXERR_SHIFT 19
  923. #define SD4_EMMC_TOP_CMDENTSTAT_SD4_CIDXERR_MASK 0x00080000
  924. #define SD4_EMMC_TOP_CMDENTSTAT_SD4_CENDERR_SHIFT 18
  925. #define SD4_EMMC_TOP_CMDENTSTAT_SD4_CENDERR_MASK 0x00040000
  926. #define SD4_EMMC_TOP_CMDENTSTAT_SD4_CCRCERR_SHIFT 17
  927. #define SD4_EMMC_TOP_CMDENTSTAT_SD4_CCRCERR_MASK 0x00020000
  928. #define SD4_EMMC_TOP_CMDENTSTAT_SD4_CTOUTERR_SHIFT 16
  929. #define SD4_EMMC_TOP_CMDENTSTAT_SD4_CTOUTERR_MASK 0x00010000
  930. #define SD4_EMMC_TOP_CMDENTSTAT_SD4_NOFRCENT_SHIFT 7
  931. #define SD4_EMMC_TOP_CMDENTSTAT_SD4_NOFRCENT_MASK 0x00000080
  932. #define SD4_EMMC_TOP_CMDENTSTAT_SD4_RESPERR_SHIFT 5
  933. #define SD4_EMMC_TOP_CMDENTSTAT_SD4_RESPERR_MASK 0x00000020
  934. #define SD4_EMMC_TOP_CMDENTSTAT_SD4_IDXERR_SHIFT 4
  935. #define SD4_EMMC_TOP_CMDENTSTAT_SD4_IDXERR_MASK 0x00000010
  936. #define SD4_EMMC_TOP_CMDENTSTAT_SD4_EBITERR_SHIFT 3
  937. #define SD4_EMMC_TOP_CMDENTSTAT_SD4_EBITERR_MASK 0x00000008
  938. #define SD4_EMMC_TOP_CMDENTSTAT_SD4_CRCERR_SHIFT 2
  939. #define SD4_EMMC_TOP_CMDENTSTAT_SD4_CRCERR_MASK 0x00000004
  940. #define SD4_EMMC_TOP_CMDENTSTAT_SD4_TOUTERR_SHIFT 1
  941. #define SD4_EMMC_TOP_CMDENTSTAT_SD4_TOUTERR_MASK 0x00000002
  942. #define SD4_EMMC_TOP_CMDENTSTAT_SD4_AUTONOEX_SHIFT 0
  943. #define SD4_EMMC_TOP_CMDENTSTAT_SD4_AUTONOEX_MASK 0x00000001
  944. #define SD4_EMMC_TOP_ADMAERR_OFFSET 0x00000054
  945. #define SD4_EMMC_TOP_ADMAERR_DEFAULT 0x00000000
  946. #define SD4_EMMC_TOP_ADMAERR_TYPE uint32_t
  947. #define SD4_EMMC_TOP_ADMAERR_RESERVED_MASK 0xFFFFFFF8
  948. #define SD4_EMMC_TOP_ADMAERR_ADMALERR_SHIFT 2
  949. #define SD4_EMMC_TOP_ADMAERR_ADMALERR_MASK 0x00000004
  950. #define SD4_EMMC_TOP_ADMAERR_ADMAERR_SHIFT 0
  951. #define SD4_EMMC_TOP_ADMAERR_ADMAERR_MASK 0x00000003
  952. #define SD4_EMMC_TOP_ADMAADDR0_OFFSET 0x00000058
  953. #define SD4_EMMC_TOP_ADMAADDR0_DEFAULT 0x00000000
  954. #define SD4_EMMC_TOP_ADMAADDR0_TYPE uint32_t
  955. #define SD4_EMMC_TOP_ADMAADDR0_RESERVED_MASK 0x00000000
  956. #define SD4_EMMC_TOP_ADMAADDR0_ADMAADDR0_SHIFT 0
  957. #define SD4_EMMC_TOP_ADMAADDR0_ADMAADDR0_MASK 0xFFFFFFFF
  958. #define SD4_EMMC_TOP_ADMAADDR1_OFFSET 0x0000005C
  959. #define SD4_EMMC_TOP_ADMAADDR1_DEFAULT 0x00000000
  960. #define SD4_EMMC_TOP_ADMAADDR1_TYPE uint32_t
  961. #define SD4_EMMC_TOP_ADMAADDR1_RESERVED_MASK 0x00000000
  962. #define SD4_EMMC_TOP_ADMAADDR1_ADMAADDR1_SHIFT 0
  963. #define SD4_EMMC_TOP_ADMAADDR1_ADMAADDR1_MASK 0xFFFFFFFF
  964. #define SD4_EMMC_TOP_PRESETVAL1_OFFSET 0x00000060
  965. #define SD4_EMMC_TOP_PRESETVAL1_DEFAULT 0x00000000
  966. #define SD4_EMMC_TOP_PRESETVAL1_TYPE uint32_t
  967. #define SD4_EMMC_TOP_PRESETVAL1_RESERVED_MASK 0x38003800
  968. #define SD4_EMMC_TOP_PRESETVAL1_DRVS_SEL_DFS_SHIFT 30
  969. #define SD4_EMMC_TOP_PRESETVAL1_DRVS_SEL_DFS_MASK 0xC0000000
  970. #define SD4_EMMC_TOP_PRESETVAL1_CLKGENSEL_DFS_SHIFT 26
  971. #define SD4_EMMC_TOP_PRESETVAL1_CLKGENSEL_DFS_MASK 0x04000000
  972. #define SD4_EMMC_TOP_PRESETVAL1_FREQ_SEL_DFS_SHIFT 16
  973. #define SD4_EMMC_TOP_PRESETVAL1_FREQ_SEL_DFS_MASK 0x03FF0000
  974. #define SD4_EMMC_TOP_PRESETVAL1_DRVS_SEL_INIT_SHIFT 14
  975. #define SD4_EMMC_TOP_PRESETVAL1_DRVS_SEL_INIT_MASK 0x0000C000
  976. #define SD4_EMMC_TOP_PRESETVAL1_CLKGENSEL_INIT_SHIFT 10
  977. #define SD4_EMMC_TOP_PRESETVAL1_CLKGENSEL_INIT_MASK 0x00000400
  978. #define SD4_EMMC_TOP_PRESETVAL1_FREQ_SEL_INIT_SHIFT 0
  979. #define SD4_EMMC_TOP_PRESETVAL1_FREQ_SEL_INIT_MASK 0x000003FF
  980. #define SD4_EMMC_TOP_PRESETVAL2_OFFSET 0x00000064
  981. #define SD4_EMMC_TOP_PRESETVAL2_DEFAULT 0x00000000
  982. #define SD4_EMMC_TOP_PRESETVAL2_TYPE uint32_t
  983. #define SD4_EMMC_TOP_PRESETVAL2_RESERVED_MASK 0x38003800
  984. #define SD4_EMMC_TOP_PRESETVAL2_DRVS_SEL_SDR12_SHIFT 30
  985. #define SD4_EMMC_TOP_PRESETVAL2_DRVS_SEL_SDR12_MASK 0xC0000000
  986. #define SD4_EMMC_TOP_PRESETVAL2_CLKGENSEL_SDR12_SHIFT 26
  987. #define SD4_EMMC_TOP_PRESETVAL2_CLKGENSEL_SDR12_MASK 0x04000000
  988. #define SD4_EMMC_TOP_PRESETVAL2_FREQ_SEL_SDR12_SHIFT 16
  989. #define SD4_EMMC_TOP_PRESETVAL2_FREQ_SEL_SDR12_MASK 0x03FF0000
  990. #define SD4_EMMC_TOP_PRESETVAL2_DRVS_SEL_HS_SHIFT 14
  991. #define SD4_EMMC_TOP_PRESETVAL2_DRVS_SEL_HS_MASK 0x0000C000
  992. #define SD4_EMMC_TOP_PRESETVAL2_CLKGENSEL_HS_SHIFT 10
  993. #define SD4_EMMC_TOP_PRESETVAL2_CLKGENSEL_HS_MASK 0x00000400
  994. #define SD4_EMMC_TOP_PRESETVAL2_FREQ_SEL_HS_SHIFT 0
  995. #define SD4_EMMC_TOP_PRESETVAL2_FREQ_SEL_HS_MASK 0x000003FF
  996. #define SD4_EMMC_TOP_PRESETVAL3_OFFSET 0x00000068
  997. #define SD4_EMMC_TOP_PRESETVAL3_DEFAULT 0x00000000
  998. #define SD4_EMMC_TOP_PRESETVAL3_TYPE uint32_t
  999. #define SD4_EMMC_TOP_PRESETVAL3_RESERVED_MASK 0x38003800
  1000. #define SD4_EMMC_TOP_PRESETVAL3_DRVS_SEL_SDR50_SHIFT 30
  1001. #define SD4_EMMC_TOP_PRESETVAL3_DRVS_SEL_SDR50_MASK 0xC0000000
  1002. #define SD4_EMMC_TOP_PRESETVAL3_CLKGENSEL_SDR50_SHIFT 26
  1003. #define SD4_EMMC_TOP_PRESETVAL3_CLKGENSEL_SDR50_MASK 0x04000000
  1004. #define SD4_EMMC_TOP_PRESETVAL3_FREQ_SEL_SDR50_SHIFT 16
  1005. #define SD4_EMMC_TOP_PRESETVAL3_FREQ_SEL_SDR50_MASK 0x03FF0000
  1006. #define SD4_EMMC_TOP_PRESETVAL3_DRVS_SEL_SDR25_SHIFT 14
  1007. #define SD4_EMMC_TOP_PRESETVAL3_DRVS_SEL_SDR25_MASK 0x0000C000
  1008. #define SD4_EMMC_TOP_PRESETVAL3_CLKGENSEL_SDR25_SHIFT 10
  1009. #define SD4_EMMC_TOP_PRESETVAL3_CLKGENSEL_SDR25_MASK 0x00000400
  1010. #define SD4_EMMC_TOP_PRESETVAL3_FREQ_SEL_SDR25_SHIFT 0
  1011. #define SD4_EMMC_TOP_PRESETVAL3_FREQ_SEL_SDR25_MASK 0x000003FF
  1012. #define SD4_EMMC_TOP_PRESETVAL4_OFFSET 0x0000006C
  1013. #define SD4_EMMC_TOP_PRESETVAL4_DEFAULT 0x00000000
  1014. #define SD4_EMMC_TOP_PRESETVAL4_TYPE uint32_t
  1015. #define SD4_EMMC_TOP_PRESETVAL4_RESERVED_MASK 0x38003800
  1016. #define SD4_EMMC_TOP_PRESETVAL4_DRVS_SEL_DDR50_SHIFT 30
  1017. #define SD4_EMMC_TOP_PRESETVAL4_DRVS_SEL_DDR50_MASK 0xC0000000
  1018. #define SD4_EMMC_TOP_PRESETVAL4_CLKGENSEL_DDR50_SHIFT 26
  1019. #define SD4_EMMC_TOP_PRESETVAL4_CLKGENSEL_DDR50_MASK 0x04000000
  1020. #define SD4_EMMC_TOP_PRESETVAL4_FREQ_SEL_DDR50_SHIFT 16
  1021. #define SD4_EMMC_TOP_PRESETVAL4_FREQ_SEL_DDR50_MASK 0x03FF0000
  1022. #define SD4_EMMC_TOP_PRESETVAL4_DRVS_SEL_SDR104_SHIFT 14
  1023. #define SD4_EMMC_TOP_PRESETVAL4_DRVS_SEL_SDR104_MASK 0x0000C000
  1024. #define SD4_EMMC_TOP_PRESETVAL4_CLKGENSEL_SDR104_SHIFT 10
  1025. #define SD4_EMMC_TOP_PRESETVAL4_CLKGENSEL_SDR104_MASK 0x00000400
  1026. #define SD4_EMMC_TOP_PRESETVAL4_FREQ_SEL_SDR104_SHIFT 0
  1027. #define SD4_EMMC_TOP_PRESETVAL4_FREQ_SEL_SDR104_MASK 0x000003FF
  1028. #define SD4_EMMC_TOP_BOOTTIMEOUT_OFFSET 0x00000070
  1029. #define SD4_EMMC_TOP_BOOTTIMEOUT_DEFAULT 0x00000000
  1030. #define SD4_EMMC_TOP_BOOTTIMEOUT_TYPE uint32_t
  1031. #define SD4_EMMC_TOP_BOOTTIMEOUT_RESERVED_MASK 0x00000000
  1032. #define SD4_EMMC_TOP_BOOTTIMEOUT_BOOTDATATIMEOUTCTRVALUE_SHIFT 0
  1033. #define SD4_EMMC_TOP_BOOTTIMEOUT_BOOTDATATIMEOUTCTRVALUE_MASK 0xFFFFFFFF
  1034. #define SD4_EMMC_TOP_DBGSEL_OFFSET 0x00000074
  1035. #define SD4_EMMC_TOP_DBGSEL_DEFAULT 0x00000000
  1036. #define SD4_EMMC_TOP_DBGSEL_TYPE uint32_t
  1037. #define SD4_EMMC_TOP_DBGSEL_RESERVED_MASK 0xFFFFFFFE
  1038. #define SD4_EMMC_TOP_DBGSEL_DBGSEL_SHIFT 0
  1039. #define SD4_EMMC_TOP_DBGSEL_DBGSEL_MASK 0x00000001
  1040. #define SD4_EMMC_TOP_UHS2_PRESETVAL_OFFSET 0x00000074
  1041. #define SD4_EMMC_TOP_UHS2_PRESETVAL_DEFAULT 0x00000000
  1042. #define SD4_EMMC_TOP_UHS2_PRESETVAL_TYPE uint32_t
  1043. #define SD4_EMMC_TOP_UHS2_PRESETVAL_RESERVED_MASK 0xFFFF3800
  1044. #define SD4_EMMC_TOP_UHS2_PRESETVAL_DRVSTRVAL_SHIFT 14
  1045. #define SD4_EMMC_TOP_UHS2_PRESETVAL_DRVSTRVAL_MASK 0x0000C000
  1046. #define SD4_EMMC_TOP_UHS2_PRESETVAL_CLKGENSELVAL_SHIFT 10
  1047. #define SD4_EMMC_TOP_UHS2_PRESETVAL_CLKGENSELVAL_MASK 0x00000400
  1048. #define SD4_EMMC_TOP_UHS2_PRESETVAL_SDCLKFREQSELVAL_SHIFT 0
  1049. #define SD4_EMMC_TOP_UHS2_PRESETVAL_SDCLKFREQSELVAL_MASK 0x000003FF
  1050. #define SD4_EMMC_TOP_HCVERSIRQ_OFFSET 0x000000FC
  1051. #define SD4_EMMC_TOP_HCVERSIRQ_DEFAULT 0x10020000
  1052. #define SD4_EMMC_TOP_HCVERSIRQ_TYPE uint32_t
  1053. #define SD4_EMMC_TOP_HCVERSIRQ_RESERVED_MASK 0x0000FF00
  1054. #define SD4_EMMC_TOP_HCVERSIRQ_VENDVER_SHIFT 24
  1055. #define SD4_EMMC_TOP_HCVERSIRQ_VENDVER_MASK 0xFF000000
  1056. #define SD4_EMMC_TOP_HCVERSIRQ_SPECVER_SHIFT 16
  1057. #define SD4_EMMC_TOP_HCVERSIRQ_SPECVER_MASK 0x00FF0000
  1058. #define SD4_EMMC_TOP_HCVERSIRQ_SIRQ_SHIFT 0
  1059. #define SD4_EMMC_TOP_HCVERSIRQ_SIRQ_MASK 0x000000FF
  1060. #define SD4_EMMC_TOP_HCVERSIRQ_SD4_OFFSET 0x000000FC
  1061. #define SD4_EMMC_TOP_HCVERSIRQ_SD4_DEFAULT 0x01030000
  1062. #define SD4_EMMC_TOP_HCVERSIRQ_SD4_TYPE uint32_t
  1063. #define SD4_EMMC_TOP_HCVERSIRQ_SD4_RESERVED_MASK 0x0000FF00
  1064. #define SD4_EMMC_TOP_HCVERSIRQ_SD4_VENDVER_SHIFT 24
  1065. #define SD4_EMMC_TOP_HCVERSIRQ_SD4_VENDVER_MASK 0xFF000000
  1066. #define SD4_EMMC_TOP_HCVERSIRQ_SD4_SPECVER_SHIFT 16
  1067. #define SD4_EMMC_TOP_HCVERSIRQ_SD4_SPECVER_MASK 0x00FF0000
  1068. #define SD4_EMMC_TOP_HCVERSIRQ_SD4_SIRQ_SHIFT 0
  1069. #define SD4_EMMC_TOP_HCVERSIRQ_SD4_SIRQ_MASK 0x000000FF
  1070. #endif /* BRCM_RDB_SD4_EMMC_TOP_H */