ar6320def.h 43 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805
  1. /*
  2. * Copyright (c) 2011-2016 The Linux Foundation. All rights reserved.
  3. *
  4. * Previously licensed under the ISC license by Qualcomm Atheros, Inc.
  5. *
  6. *
  7. * Permission to use, copy, modify, and/or distribute this software for
  8. * any purpose with or without fee is hereby granted, provided that the
  9. * above copyright notice and this permission notice appear in all
  10. * copies.
  11. *
  12. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
  13. * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
  14. * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
  15. * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
  16. * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
  17. * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  18. * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  19. * PERFORMANCE OF THIS SOFTWARE.
  20. */
  21. /*
  22. * This file was originally distributed by Qualcomm Atheros, Inc.
  23. * under proprietary terms before Copyright ownership was assigned
  24. * to the Linux Foundation.
  25. */
  26. #ifndef _AR6320DEF_H_
  27. #define _AR6320DEF_H_
  28. /* Base Addresses */
  29. #define AR6320_RTC_SOC_BASE_ADDRESS 0x00000000
  30. #define AR6320_RTC_WMAC_BASE_ADDRESS 0x00001000
  31. #define AR6320_MAC_COEX_BASE_ADDRESS 0x0000f000
  32. #define AR6320_BT_COEX_BASE_ADDRESS 0x00002000
  33. #define AR6320_SOC_CORE_BASE_ADDRESS 0x0003a000
  34. #define AR6320_WLAN_UART_BASE_ADDRESS 0x0000c000
  35. #define AR6320_WLAN_SI_BASE_ADDRESS 0x00010000
  36. #define AR6320_WLAN_GPIO_BASE_ADDRESS 0x00005000
  37. #define AR6320_WLAN_ANALOG_INTF_BASE_ADDRESS 0x00006000
  38. #define AR6320_WLAN_MAC_BASE_ADDRESS 0x00010000
  39. #define AR6320_EFUSE_BASE_ADDRESS 0x00024000
  40. #define AR6320_FPGA_REG_BASE_ADDRESS 0x00039000
  41. #define AR6320_WLAN_UART2_BASE_ADDRESS 0x00054c00
  42. #define AR6320_DBI_BASE_ADDRESS 0x0003c000
  43. #define AR6320_SCRATCH_3_ADDRESS 0x0028
  44. #define AR6320_TARG_DRAM_START 0x00400000
  45. #define AR6320_SOC_SYSTEM_SLEEP_OFFSET 0x000000c0
  46. #define AR6320_SOC_RESET_CONTROL_OFFSET 0x00000000
  47. #define AR6320_SOC_CLOCK_CONTROL_OFFSET 0x00000028
  48. #define AR6320_SOC_CLOCK_CONTROL_SI0_CLK_MASK 0x00000001
  49. #define AR6320_SOC_RESET_CONTROL_SI0_RST_MASK 0x00000000
  50. #define AR6320_WLAN_GPIO_PIN0_ADDRESS 0x00000068
  51. #define AR6320_WLAN_GPIO_PIN1_ADDRESS 0x0000006c
  52. #define AR6320_WLAN_GPIO_PIN0_CONFIG_MASK 0x00007800
  53. #define AR6320_WLAN_GPIO_PIN1_CONFIG_MASK 0x00007800
  54. #define AR6320_SOC_CPU_CLOCK_OFFSET 0x00000020
  55. #define AR6320_SOC_LPO_CAL_OFFSET 0x000000e0
  56. #define AR6320_WLAN_GPIO_PIN10_ADDRESS 0x00000090
  57. #define AR6320_WLAN_GPIO_PIN11_ADDRESS 0x00000094
  58. #define AR6320_WLAN_GPIO_PIN12_ADDRESS 0x00000098
  59. #define AR6320_WLAN_GPIO_PIN13_ADDRESS 0x0000009c
  60. #define AR6320_SOC_CPU_CLOCK_STANDARD_LSB 0
  61. #define AR6320_SOC_CPU_CLOCK_STANDARD_MASK 0x00000003
  62. #define AR6320_SOC_LPO_CAL_ENABLE_LSB 20
  63. #define AR6320_SOC_LPO_CAL_ENABLE_MASK 0x00100000
  64. #define AR6320_WLAN_SYSTEM_SLEEP_DISABLE_LSB 0
  65. #define AR6320_WLAN_SYSTEM_SLEEP_DISABLE_MASK 0x00000001
  66. #define AR6320_WLAN_RESET_CONTROL_COLD_RST_MASK 0x00000008
  67. #define AR6320_WLAN_RESET_CONTROL_WARM_RST_MASK 0x00000004
  68. #define AR6320_SI_CONFIG_BIDIR_OD_DATA_LSB 18
  69. #define AR6320_SI_CONFIG_BIDIR_OD_DATA_MASK 0x00040000
  70. #define AR6320_SI_CONFIG_I2C_LSB 16
  71. #define AR6320_SI_CONFIG_I2C_MASK 0x00010000
  72. #define AR6320_SI_CONFIG_POS_SAMPLE_LSB 7
  73. #define AR6320_SI_CONFIG_POS_SAMPLE_MASK 0x00000080
  74. #define AR6320_SI_CONFIG_INACTIVE_CLK_LSB 4
  75. #define AR6320_SI_CONFIG_INACTIVE_CLK_MASK 0x00000010
  76. #define AR6320_SI_CONFIG_INACTIVE_DATA_LSB 5
  77. #define AR6320_SI_CONFIG_INACTIVE_DATA_MASK 0x00000020
  78. #define AR6320_SI_CONFIG_DIVIDER_LSB 0
  79. #define AR6320_SI_CONFIG_DIVIDER_MASK 0x0000000f
  80. #define AR6320_SI_CONFIG_OFFSET 0x00000000
  81. #define AR6320_SI_TX_DATA0_OFFSET 0x00000008
  82. #define AR6320_SI_TX_DATA1_OFFSET 0x0000000c
  83. #define AR6320_SI_RX_DATA0_OFFSET 0x00000010
  84. #define AR6320_SI_RX_DATA1_OFFSET 0x00000014
  85. #define AR6320_SI_CS_OFFSET 0x00000004
  86. #define AR6320_SI_CS_DONE_ERR_MASK 0x00000400
  87. #define AR6320_SI_CS_DONE_INT_MASK 0x00000200
  88. #define AR6320_SI_CS_START_LSB 8
  89. #define AR6320_SI_CS_START_MASK 0x00000100
  90. #define AR6320_SI_CS_RX_CNT_LSB 4
  91. #define AR6320_SI_CS_RX_CNT_MASK 0x000000f0
  92. #define AR6320_SI_CS_TX_CNT_LSB 0
  93. #define AR6320_SI_CS_TX_CNT_MASK 0x0000000f
  94. #define AR6320_SR_WR_INDEX_ADDRESS 0x003c
  95. #define AR6320_DST_WATERMARK_ADDRESS 0x0050
  96. #define AR6320_RX_MSDU_END_4_FIRST_MSDU_LSB 14
  97. #define AR6320_RX_MSDU_END_4_FIRST_MSDU_MASK 0x00004000
  98. #define AR6320_RX_MPDU_START_0_RETRY_LSB 14
  99. #define AR6320_RX_MPDU_START_0_RETRY_MASK 0x00004000
  100. #define AR6320_RX_MPDU_START_0_SEQ_NUM_LSB 16
  101. #define AR6320_RX_MPDU_START_0_SEQ_NUM_MASK 0x0fff0000
  102. #define AR6320_RX_MPDU_START_2_TID_LSB 28
  103. #define AR6320_RX_MPDU_START_2_TID_MASK 0xf0000000
  104. #if defined(HIF_PCI) || defined(HIF_SNOC) || defined(HIF_AHB)
  105. #define AR6320_SOC_PCIE_BASE_ADDRESS 0x00038000
  106. #define AR6320_CE_WRAPPER_BASE_ADDRESS 0x00034000
  107. #define AR6320_CE0_BASE_ADDRESS 0x00034400
  108. #define AR6320_CE1_BASE_ADDRESS 0x00034800
  109. #define AR6320_CE2_BASE_ADDRESS 0x00034c00
  110. #define AR6320_CE3_BASE_ADDRESS 0x00035000
  111. #define AR6320_CE4_BASE_ADDRESS 0x00035400
  112. #define AR6320_CE5_BASE_ADDRESS 0x00035800
  113. #define AR6320_CE6_BASE_ADDRESS 0x00035c00
  114. #define AR6320_CE7_BASE_ADDRESS 0x00036000
  115. #define AR6320_WLAN_ANALOG_INTF_PCIE_BASE_ADDRESS 0x00007800
  116. #define AR6320_CE_COUNT 8
  117. #define AR6320_CE_CTRL1_ADDRESS 0x0010
  118. #define AR6320_CE_CTRL1_DMAX_LENGTH_MASK 0x0000ffff
  119. #define AR6320_CE_WRAPPER_INTERRUPT_SUMMARY_ADDRESS 0x0000
  120. #define AR6320_CE_WRAPPER_INTERRUPT_SUMMARY_HOST_MSI_MASK 0x0000ff00
  121. #define AR6320_CE_WRAPPER_INTERRUPT_SUMMARY_HOST_MSI_LSB 8
  122. #define AR6320_CE_CTRL1_DMAX_LENGTH_LSB 0
  123. #define AR6320_CE_CTRL1_SRC_RING_BYTE_SWAP_EN_MASK 0x00010000
  124. #define AR6320_CE_CTRL1_DST_RING_BYTE_SWAP_EN_MASK 0x00020000
  125. #define AR6320_CE_CTRL1_SRC_RING_BYTE_SWAP_EN_LSB 16
  126. #define AR6320_CE_CTRL1_DST_RING_BYTE_SWAP_EN_LSB 17
  127. #define AR6320_SOC_RESET_CONTROL_PCIE_RST_SHORT_OVRD_MASK 0x00000020
  128. #define AR6320_SOC_RESET_CONTROL_PCIE_RST_SHORT_OVRD_LSB 5
  129. #define AR6320_PCIE_SOC_WAKE_RESET 0x00000000
  130. #define AR6320_PCIE_SOC_WAKE_ADDRESS 0x0004
  131. #define AR6320_PCIE_SOC_WAKE_V_MASK 0x00000001
  132. #define AR6320_MUX_ID_MASK 0x0000
  133. #define AR6320_TRANSACTION_ID_MASK 0x3fff
  134. #define AR6320_PCIE_LOCAL_BASE_ADDRESS 0x80000
  135. #define AR6320_FW_IND_HELPER 4
  136. #define AR6320_PCIE_INTR_ENABLE_ADDRESS 0x0008
  137. #define AR6320_PCIE_INTR_CLR_ADDRESS 0x0014
  138. #define AR6320_PCIE_INTR_FIRMWARE_MASK 0x00000400
  139. #define AR6320_PCIE_INTR_CE0_MASK 0x00000800
  140. #define AR6320_PCIE_INTR_CE_MASK_ALL 0x0007f800
  141. #define AR6320_PCIE_INTR_CAUSE_ADDRESS 0x000c
  142. #define AR6320_SOC_RESET_CONTROL_CE_RST_MASK 0x00000001
  143. #endif
  144. #define AR6320_RX_MPDU_START_2_PN_47_32_LSB 0
  145. #define AR6320_RX_MPDU_START_2_PN_47_32_MASK 0x0000ffff
  146. #define AR6320_RX_MSDU_END_1_KEY_ID_OCT_MASK 0x000000ff
  147. #define AR6320_RX_MSDU_END_1_KEY_ID_OCT_LSB 0
  148. #define AR6320_RX_MSDU_END_1_EXT_WAPI_PN_63_48_LSB 16
  149. #define AR6320_RX_MSDU_END_1_EXT_WAPI_PN_63_48_MASK 0xffff0000
  150. #define AR6320_RX_MSDU_END_4_LAST_MSDU_LSB 15
  151. #define AR6320_RX_MSDU_END_4_LAST_MSDU_MASK 0x00008000
  152. #define AR6320_RX_ATTENTION_0_MCAST_BCAST_LSB 2
  153. #define AR6320_RX_ATTENTION_0_MCAST_BCAST_MASK 0x00000004
  154. #define AR6320_RX_ATTENTION_0_FRAGMENT_LSB 13
  155. #define AR6320_RX_ATTENTION_0_FRAGMENT_MASK 0x00002000
  156. #define AR6320_RX_ATTENTION_0_MPDU_LENGTH_ERR_MASK 0x08000000
  157. #define AR6320_RX_FRAG_INFO_0_RING2_MORE_COUNT_LSB 16
  158. #define AR6320_RX_FRAG_INFO_0_RING2_MORE_COUNT_MASK 0x00ff0000
  159. #define AR6320_RX_MSDU_START_0_MSDU_LENGTH_LSB 0
  160. #define AR6320_RX_MSDU_START_0_MSDU_LENGTH_MASK 0x00003fff
  161. #define AR6320_RX_MSDU_START_2_DECAP_FORMAT_OFFSET 0x00000008
  162. #define AR6320_RX_MSDU_START_2_DECAP_FORMAT_LSB 8
  163. #define AR6320_RX_MSDU_START_2_DECAP_FORMAT_MASK 0x00000300
  164. #define AR6320_RX_MPDU_START_0_ENCRYPTED_LSB 13
  165. #define AR6320_RX_MPDU_START_0_ENCRYPTED_MASK 0x00002000
  166. #define AR6320_RX_ATTENTION_0_MORE_DATA_MASK 0x00000400
  167. #define AR6320_RX_ATTENTION_0_MSDU_DONE_MASK 0x80000000
  168. #define AR6320_RX_ATTENTION_0_TCP_UDP_CHKSUM_FAIL_MASK 0x00040000
  169. #define AR6320_DST_WR_INDEX_ADDRESS 0x0040
  170. #define AR6320_SRC_WATERMARK_ADDRESS 0x004c
  171. #define AR6320_SRC_WATERMARK_LOW_MASK 0xffff0000
  172. #define AR6320_SRC_WATERMARK_HIGH_MASK 0x0000ffff
  173. #define AR6320_DST_WATERMARK_LOW_MASK 0xffff0000
  174. #define AR6320_DST_WATERMARK_HIGH_MASK 0x0000ffff
  175. #define AR6320_CURRENT_SRRI_ADDRESS 0x0044
  176. #define AR6320_CURRENT_DRRI_ADDRESS 0x0048
  177. #define AR6320_HOST_IS_SRC_RING_HIGH_WATERMARK_MASK 0x00000002
  178. #define AR6320_HOST_IS_SRC_RING_LOW_WATERMARK_MASK 0x00000004
  179. #define AR6320_HOST_IS_DST_RING_HIGH_WATERMARK_MASK 0x00000008
  180. #define AR6320_HOST_IS_DST_RING_LOW_WATERMARK_MASK 0x00000010
  181. #define AR6320_HOST_IS_ADDRESS 0x0030
  182. #define AR6320_HOST_IS_COPY_COMPLETE_MASK 0x00000001
  183. #define AR6320_HOST_IE_ADDRESS 0x002c
  184. #define AR6320_HOST_IE_COPY_COMPLETE_MASK 0x00000001
  185. #define AR6320_SR_BA_ADDRESS 0x0000
  186. #define AR6320_SR_SIZE_ADDRESS 0x0004
  187. #define AR6320_DR_BA_ADDRESS 0x0008
  188. #define AR6320_DR_SIZE_ADDRESS 0x000c
  189. #define AR6320_MISC_IE_ADDRESS 0x0034
  190. #define AR6320_MISC_IS_AXI_ERR_MASK 0x00000400
  191. #define AR6320_MISC_IS_DST_ADDR_ERR_MASK 0x00000200
  192. #define AR6320_MISC_IS_SRC_LEN_ERR_MASK 0x00000100
  193. #define AR6320_MISC_IS_DST_MAX_LEN_VIO_MASK 0x00000080
  194. #define AR6320_MISC_IS_DST_RING_OVERFLOW_MASK 0x00000040
  195. #define AR6320_MISC_IS_SRC_RING_OVERFLOW_MASK 0x00000020
  196. #define AR6320_SRC_WATERMARK_LOW_LSB 16
  197. #define AR6320_SRC_WATERMARK_HIGH_LSB 0
  198. #define AR6320_DST_WATERMARK_LOW_LSB 16
  199. #define AR6320_DST_WATERMARK_HIGH_LSB 0
  200. #define AR6320_SOC_GLOBAL_RESET_ADDRESS 0x0008
  201. #define AR6320_RTC_STATE_ADDRESS 0x0000
  202. #define AR6320_RTC_STATE_COLD_RESET_MASK 0x00002000
  203. #define AR6320_RTC_STATE_V_MASK 0x00000007
  204. #define AR6320_RTC_STATE_V_LSB 0
  205. #define AR6320_RTC_STATE_V_ON 3
  206. #define AR6320_FW_IND_EVENT_PENDING 1
  207. #define AR6320_FW_IND_INITIALIZED 2
  208. #define AR6320_CPU_INTR_ADDRESS 0x0010
  209. #define AR6320_SOC_LF_TIMER_CONTROL0_ADDRESS 0x00000050
  210. #define AR6320_SOC_LF_TIMER_CONTROL0_ENABLE_MASK 0x00000004
  211. #define AR6320_SOC_RESET_CONTROL_ADDRESS 0x00000000
  212. #define AR6320_SOC_RESET_CONTROL_CPU_WARM_RST_MASK 0x00000040
  213. #define AR6320_CORE_CTRL_ADDRESS 0x0000
  214. #define AR6320_CORE_CTRL_CPU_INTR_MASK 0x00002000
  215. #define AR6320_LOCAL_SCRATCH_OFFSET 0x000000c0
  216. #define AR6320_CLOCK_GPIO_OFFSET 0xffffffff
  217. #define AR6320_CLOCK_GPIO_BT_CLK_OUT_EN_LSB 0
  218. #define AR6320_CLOCK_GPIO_BT_CLK_OUT_EN_MASK 0
  219. #define AR6320_SOC_CHIP_ID_ADDRESS 0x000000f0
  220. #define AR6320_SOC_CHIP_ID_VERSION_MASK 0xfffc0000
  221. #define AR6320_SOC_CHIP_ID_VERSION_LSB 18
  222. #define AR6320_SOC_CHIP_ID_REVISION_MASK 0x00000f00
  223. #define AR6320_SOC_CHIP_ID_REVISION_LSB 8
  224. #if defined(HIF_PCI) || defined(HIF_SNOC) || defined(HIF_AHB)
  225. #define AR6320_SOC_POWER_REG_OFFSET 0x0000010c
  226. /* Copy Engine Debug */
  227. #define AR6320_WLAN_DEBUG_INPUT_SEL_OFFSET 0x0000010c
  228. #define AR6320_WLAN_DEBUG_INPUT_SEL_SRC_MSB 3
  229. #define AR6320_WLAN_DEBUG_INPUT_SEL_SRC_LSB 0
  230. #define AR6320_WLAN_DEBUG_INPUT_SEL_SRC_MASK 0x0000000f
  231. #define AR6320_WLAN_DEBUG_CONTROL_OFFSET 0x00000108
  232. #define AR6320_WLAN_DEBUG_CONTROL_ENABLE_MSB 0
  233. #define AR6320_WLAN_DEBUG_CONTROL_ENABLE_LSB 0
  234. #define AR6320_WLAN_DEBUG_CONTROL_ENABLE_MASK 0x00000001
  235. #define AR6320_WLAN_DEBUG_OUT_OFFSET 0x00000110
  236. #define AR6320_WLAN_DEBUG_OUT_DATA_MSB 19
  237. #define AR6320_WLAN_DEBUG_OUT_DATA_LSB 0
  238. #define AR6320_WLAN_DEBUG_OUT_DATA_MASK 0x000fffff
  239. #define AR6320_AMBA_DEBUG_BUS_OFFSET 0x0000011c
  240. #define AR6320_AMBA_DEBUG_BUS_PCIE_DEBUG_SEL_MSB 13
  241. #define AR6320_AMBA_DEBUG_BUS_PCIE_DEBUG_SEL_LSB 8
  242. #define AR6320_AMBA_DEBUG_BUS_PCIE_DEBUG_SEL_MASK 0x00003f00
  243. #define AR6320_AMBA_DEBUG_BUS_SEL_MSB 4
  244. #define AR6320_AMBA_DEBUG_BUS_SEL_LSB 0
  245. #define AR6320_AMBA_DEBUG_BUS_SEL_MASK 0x0000001f
  246. #define AR6320_CE_WRAPPER_DEBUG_OFFSET 0x0008
  247. #define AR6320_CE_WRAPPER_DEBUG_SEL_MSB 5
  248. #define AR6320_CE_WRAPPER_DEBUG_SEL_LSB 0
  249. #define AR6320_CE_WRAPPER_DEBUG_SEL_MASK 0x0000003f
  250. #define AR6320_CE_DEBUG_OFFSET 0x0054
  251. #define AR6320_CE_DEBUG_SEL_MSB 5
  252. #define AR6320_CE_DEBUG_SEL_LSB 0
  253. #define AR6320_CE_DEBUG_SEL_MASK 0x0000003f
  254. /* End */
  255. /* PLL start */
  256. #define AR6320_EFUSE_OFFSET 0x0000032c
  257. #define AR6320_EFUSE_XTAL_SEL_MSB 10
  258. #define AR6320_EFUSE_XTAL_SEL_LSB 8
  259. #define AR6320_EFUSE_XTAL_SEL_MASK 0x00000700
  260. #define AR6320_BB_PLL_CONFIG_OFFSET 0x000002f4
  261. #define AR6320_BB_PLL_CONFIG_OUTDIV_MSB 20
  262. #define AR6320_BB_PLL_CONFIG_OUTDIV_LSB 18
  263. #define AR6320_BB_PLL_CONFIG_OUTDIV_MASK 0x001c0000
  264. #define AR6320_BB_PLL_CONFIG_FRAC_MSB 17
  265. #define AR6320_BB_PLL_CONFIG_FRAC_LSB 0
  266. #define AR6320_BB_PLL_CONFIG_FRAC_MASK 0x0003ffff
  267. #define AR6320_WLAN_PLL_SETTLE_TIME_MSB 10
  268. #define AR6320_WLAN_PLL_SETTLE_TIME_LSB 0
  269. #define AR6320_WLAN_PLL_SETTLE_TIME_MASK 0x000007ff
  270. #define AR6320_WLAN_PLL_SETTLE_OFFSET 0x0018
  271. #define AR6320_WLAN_PLL_SETTLE_SW_MASK 0x000007ff
  272. #define AR6320_WLAN_PLL_SETTLE_RSTMASK 0xffffffff
  273. #define AR6320_WLAN_PLL_SETTLE_RESET 0x00000400
  274. #define AR6320_WLAN_PLL_CONTROL_NOPWD_MSB 18
  275. #define AR6320_WLAN_PLL_CONTROL_NOPWD_LSB 18
  276. #define AR6320_WLAN_PLL_CONTROL_NOPWD_MASK 0x00040000
  277. #define AR6320_WLAN_PLL_CONTROL_BYPASS_MSB 16
  278. #define AR6320_WLAN_PLL_CONTROL_BYPASS_LSB 16
  279. #define AR6320_WLAN_PLL_CONTROL_BYPASS_MASK 0x00010000
  280. #define AR6320_WLAN_PLL_CONTROL_BYPASS_RESET 0x1
  281. #define AR6320_WLAN_PLL_CONTROL_CLK_SEL_MSB 15
  282. #define AR6320_WLAN_PLL_CONTROL_CLK_SEL_LSB 14
  283. #define AR6320_WLAN_PLL_CONTROL_CLK_SEL_MASK 0x0000c000
  284. #define AR6320_WLAN_PLL_CONTROL_CLK_SEL_RESET 0x0
  285. #define AR6320_WLAN_PLL_CONTROL_REFDIV_MSB 13
  286. #define AR6320_WLAN_PLL_CONTROL_REFDIV_LSB 10
  287. #define AR6320_WLAN_PLL_CONTROL_REFDIV_MASK 0x00003c00
  288. #define AR6320_WLAN_PLL_CONTROL_REFDIV_RESET 0x0
  289. #define AR6320_WLAN_PLL_CONTROL_DIV_MSB 9
  290. #define AR6320_WLAN_PLL_CONTROL_DIV_LSB 0
  291. #define AR6320_WLAN_PLL_CONTROL_DIV_MASK 0x000003ff
  292. #define AR6320_WLAN_PLL_CONTROL_DIV_RESET 0x11
  293. #define AR6320_WLAN_PLL_CONTROL_OFFSET 0x0014
  294. #define AR6320_WLAN_PLL_CONTROL_SW_MASK 0x001fffff
  295. #define AR6320_WLAN_PLL_CONTROL_RSTMASK 0xffffffff
  296. #define AR6320_WLAN_PLL_CONTROL_RESET 0x00010011
  297. #define AR6320_SOC_CORE_CLK_CTRL_OFFSET 0x00000114
  298. #define AR6320_SOC_CORE_CLK_CTRL_DIV_MSB 2
  299. #define AR6320_SOC_CORE_CLK_CTRL_DIV_LSB 0
  300. #define AR6320_SOC_CORE_CLK_CTRL_DIV_MASK 0x00000007
  301. #define AR6320_RTC_SYNC_STATUS_PLL_CHANGING_MSB 5
  302. #define AR6320_RTC_SYNC_STATUS_PLL_CHANGING_LSB 5
  303. #define AR6320_RTC_SYNC_STATUS_PLL_CHANGING_MASK 0x00000020
  304. #define AR6320_RTC_SYNC_STATUS_PLL_CHANGING_RESET 0x0
  305. #define AR6320_RTC_SYNC_STATUS_OFFSET 0x0244
  306. #define AR6320_SOC_CPU_CLOCK_OFFSET 0x00000020
  307. #define AR6320_SOC_CPU_CLOCK_STANDARD_MSB 1
  308. #define AR6320_SOC_CPU_CLOCK_STANDARD_LSB 0
  309. #define AR6320_SOC_CPU_CLOCK_STANDARD_MASK 0x00000003
  310. /* PLL end */
  311. #define AR6320_PCIE_INTR_CE_MASK(n) \
  312. (AR6320_PCIE_INTR_CE0_MASK << (n))
  313. #endif
  314. #define AR6320_DRAM_BASE_ADDRESS AR6320_TARG_DRAM_START
  315. #define AR6320_FW_INDICATOR_ADDRESS \
  316. (AR6320_SOC_CORE_BASE_ADDRESS + AR6320_SCRATCH_3_ADDRESS)
  317. #define AR6320_SYSTEM_SLEEP_OFFSET AR6320_SOC_SYSTEM_SLEEP_OFFSET
  318. #define AR6320_WLAN_SYSTEM_SLEEP_OFFSET 0x002c
  319. #define AR6320_WLAN_RESET_CONTROL_OFFSET AR6320_SOC_RESET_CONTROL_OFFSET
  320. #define AR6320_CLOCK_CONTROL_OFFSET AR6320_SOC_CLOCK_CONTROL_OFFSET
  321. #define AR6320_CLOCK_CONTROL_SI0_CLK_MASK AR6320_SOC_CLOCK_CONTROL_SI0_CLK_MASK
  322. #define AR6320_RESET_CONTROL_MBOX_RST_MASK 0x00000004
  323. #define AR6320_RESET_CONTROL_SI0_RST_MASK AR6320_SOC_RESET_CONTROL_SI0_RST_MASK
  324. #define AR6320_GPIO_BASE_ADDRESS AR6320_WLAN_GPIO_BASE_ADDRESS
  325. #define AR6320_GPIO_PIN0_OFFSET AR6320_WLAN_GPIO_PIN0_ADDRESS
  326. #define AR6320_GPIO_PIN1_OFFSET AR6320_WLAN_GPIO_PIN1_ADDRESS
  327. #define AR6320_GPIO_PIN0_CONFIG_MASK AR6320_WLAN_GPIO_PIN0_CONFIG_MASK
  328. #define AR6320_GPIO_PIN1_CONFIG_MASK AR6320_WLAN_GPIO_PIN1_CONFIG_MASK
  329. #define AR6320_SI_BASE_ADDRESS 0x00050000
  330. #define AR6320_CPU_CLOCK_OFFSET AR6320_SOC_CPU_CLOCK_OFFSET
  331. #define AR6320_LPO_CAL_OFFSET AR6320_SOC_LPO_CAL_OFFSET
  332. #define AR6320_GPIO_PIN10_OFFSET AR6320_WLAN_GPIO_PIN10_ADDRESS
  333. #define AR6320_GPIO_PIN11_OFFSET AR6320_WLAN_GPIO_PIN11_ADDRESS
  334. #define AR6320_GPIO_PIN12_OFFSET AR6320_WLAN_GPIO_PIN12_ADDRESS
  335. #define AR6320_GPIO_PIN13_OFFSET AR6320_WLAN_GPIO_PIN13_ADDRESS
  336. #define AR6320_CPU_CLOCK_STANDARD_LSB AR6320_SOC_CPU_CLOCK_STANDARD_LSB
  337. #define AR6320_CPU_CLOCK_STANDARD_MASK AR6320_SOC_CPU_CLOCK_STANDARD_MASK
  338. #define AR6320_LPO_CAL_ENABLE_LSB AR6320_SOC_LPO_CAL_ENABLE_LSB
  339. #define AR6320_LPO_CAL_ENABLE_MASK AR6320_SOC_LPO_CAL_ENABLE_MASK
  340. #define AR6320_ANALOG_INTF_BASE_ADDRESS AR6320_WLAN_ANALOG_INTF_BASE_ADDRESS
  341. #define AR6320_MBOX_BASE_ADDRESS 0x00008000
  342. #define AR6320_INT_STATUS_ENABLE_ERROR_LSB 7
  343. #define AR6320_INT_STATUS_ENABLE_ERROR_MASK 0x00000080
  344. #define AR6320_INT_STATUS_ENABLE_CPU_LSB 6
  345. #define AR6320_INT_STATUS_ENABLE_CPU_MASK 0x00000040
  346. #define AR6320_INT_STATUS_ENABLE_COUNTER_LSB 4
  347. #define AR6320_INT_STATUS_ENABLE_COUNTER_MASK 0x00000010
  348. #define AR6320_INT_STATUS_ENABLE_MBOX_DATA_LSB 0
  349. #define AR6320_INT_STATUS_ENABLE_MBOX_DATA_MASK 0x0000000f
  350. #define AR6320_ERROR_STATUS_ENABLE_RX_UNDERFLOW_LSB 17
  351. #define AR6320_ERROR_STATUS_ENABLE_RX_UNDERFLOW_MASK 0x00020000
  352. #define AR6320_ERROR_STATUS_ENABLE_TX_OVERFLOW_LSB 16
  353. #define AR6320_ERROR_STATUS_ENABLE_TX_OVERFLOW_MASK 0x00010000
  354. #define AR6320_COUNTER_INT_STATUS_ENABLE_BIT_LSB 24
  355. #define AR6320_COUNTER_INT_STATUS_ENABLE_BIT_MASK 0xff000000
  356. #define AR6320_INT_STATUS_ENABLE_ADDRESS 0x0828
  357. #define AR6320_CPU_INT_STATUS_ENABLE_BIT_LSB 8
  358. #define AR6320_CPU_INT_STATUS_ENABLE_BIT_MASK 0x0000ff00
  359. #define AR6320_HOST_INT_STATUS_ADDRESS 0x0800
  360. #define AR6320_CPU_INT_STATUS_ADDRESS 0x0801
  361. #define AR6320_ERROR_INT_STATUS_ADDRESS 0x0802
  362. #define AR6320_ERROR_INT_STATUS_WAKEUP_MASK 0x00040000
  363. #define AR6320_ERROR_INT_STATUS_WAKEUP_LSB 18
  364. #define AR6320_ERROR_INT_STATUS_RX_UNDERFLOW_MASK 0x00020000
  365. #define AR6320_ERROR_INT_STATUS_RX_UNDERFLOW_LSB 17
  366. #define AR6320_ERROR_INT_STATUS_TX_OVERFLOW_MASK 0x00010000
  367. #define AR6320_ERROR_INT_STATUS_TX_OVERFLOW_LSB 16
  368. #define AR6320_COUNT_DEC_ADDRESS 0x0840
  369. #define AR6320_HOST_INT_STATUS_CPU_MASK 0x00000040
  370. #define AR6320_HOST_INT_STATUS_CPU_LSB 6
  371. #define AR6320_HOST_INT_STATUS_ERROR_MASK 0x00000080
  372. #define AR6320_HOST_INT_STATUS_ERROR_LSB 7
  373. #define AR6320_HOST_INT_STATUS_COUNTER_MASK 0x00000010
  374. #define AR6320_HOST_INT_STATUS_COUNTER_LSB 4
  375. #define AR6320_RX_LOOKAHEAD_VALID_ADDRESS 0x0805
  376. #define AR6320_WINDOW_DATA_ADDRESS 0x0874
  377. #define AR6320_WINDOW_READ_ADDR_ADDRESS 0x087c
  378. #define AR6320_WINDOW_WRITE_ADDR_ADDRESS 0x0878
  379. #define AR6320_HOST_INT_STATUS_MBOX_DATA_MASK 0x0f
  380. #define AR6320_HOST_INT_STATUS_MBOX_DATA_LSB 0
  381. struct targetdef_s ar6320_targetdef = {
  382. .d_RTC_SOC_BASE_ADDRESS = AR6320_RTC_SOC_BASE_ADDRESS,
  383. .d_RTC_WMAC_BASE_ADDRESS = AR6320_RTC_WMAC_BASE_ADDRESS,
  384. .d_SYSTEM_SLEEP_OFFSET = AR6320_WLAN_SYSTEM_SLEEP_OFFSET,
  385. .d_WLAN_SYSTEM_SLEEP_OFFSET = AR6320_WLAN_SYSTEM_SLEEP_OFFSET,
  386. .d_WLAN_SYSTEM_SLEEP_DISABLE_LSB =
  387. AR6320_WLAN_SYSTEM_SLEEP_DISABLE_LSB,
  388. .d_WLAN_SYSTEM_SLEEP_DISABLE_MASK =
  389. AR6320_WLAN_SYSTEM_SLEEP_DISABLE_MASK,
  390. .d_CLOCK_CONTROL_OFFSET = AR6320_CLOCK_CONTROL_OFFSET,
  391. .d_CLOCK_CONTROL_SI0_CLK_MASK = AR6320_CLOCK_CONTROL_SI0_CLK_MASK,
  392. .d_RESET_CONTROL_OFFSET = AR6320_SOC_RESET_CONTROL_OFFSET,
  393. .d_RESET_CONTROL_MBOX_RST_MASK = AR6320_RESET_CONTROL_MBOX_RST_MASK,
  394. .d_RESET_CONTROL_SI0_RST_MASK = AR6320_RESET_CONTROL_SI0_RST_MASK,
  395. .d_WLAN_RESET_CONTROL_OFFSET = AR6320_WLAN_RESET_CONTROL_OFFSET,
  396. .d_WLAN_RESET_CONTROL_COLD_RST_MASK =
  397. AR6320_WLAN_RESET_CONTROL_COLD_RST_MASK,
  398. .d_WLAN_RESET_CONTROL_WARM_RST_MASK =
  399. AR6320_WLAN_RESET_CONTROL_WARM_RST_MASK,
  400. .d_GPIO_BASE_ADDRESS = AR6320_GPIO_BASE_ADDRESS,
  401. .d_GPIO_PIN0_OFFSET = AR6320_GPIO_PIN0_OFFSET,
  402. .d_GPIO_PIN1_OFFSET = AR6320_GPIO_PIN1_OFFSET,
  403. .d_GPIO_PIN0_CONFIG_MASK = AR6320_GPIO_PIN0_CONFIG_MASK,
  404. .d_GPIO_PIN1_CONFIG_MASK = AR6320_GPIO_PIN1_CONFIG_MASK,
  405. .d_SI_CONFIG_BIDIR_OD_DATA_LSB = AR6320_SI_CONFIG_BIDIR_OD_DATA_LSB,
  406. .d_SI_CONFIG_BIDIR_OD_DATA_MASK = AR6320_SI_CONFIG_BIDIR_OD_DATA_MASK,
  407. .d_SI_CONFIG_I2C_LSB = AR6320_SI_CONFIG_I2C_LSB,
  408. .d_SI_CONFIG_I2C_MASK = AR6320_SI_CONFIG_I2C_MASK,
  409. .d_SI_CONFIG_POS_SAMPLE_LSB = AR6320_SI_CONFIG_POS_SAMPLE_LSB,
  410. .d_SI_CONFIG_POS_SAMPLE_MASK = AR6320_SI_CONFIG_POS_SAMPLE_MASK,
  411. .d_SI_CONFIG_INACTIVE_CLK_LSB = AR6320_SI_CONFIG_INACTIVE_CLK_LSB,
  412. .d_SI_CONFIG_INACTIVE_CLK_MASK = AR6320_SI_CONFIG_INACTIVE_CLK_MASK,
  413. .d_SI_CONFIG_INACTIVE_DATA_LSB = AR6320_SI_CONFIG_INACTIVE_DATA_LSB,
  414. .d_SI_CONFIG_INACTIVE_DATA_MASK = AR6320_SI_CONFIG_INACTIVE_DATA_MASK,
  415. .d_SI_CONFIG_DIVIDER_LSB = AR6320_SI_CONFIG_DIVIDER_LSB,
  416. .d_SI_CONFIG_DIVIDER_MASK = AR6320_SI_CONFIG_DIVIDER_MASK,
  417. .d_SI_BASE_ADDRESS = AR6320_SI_BASE_ADDRESS,
  418. .d_SI_CONFIG_OFFSET = AR6320_SI_CONFIG_OFFSET,
  419. .d_SI_TX_DATA0_OFFSET = AR6320_SI_TX_DATA0_OFFSET,
  420. .d_SI_TX_DATA1_OFFSET = AR6320_SI_TX_DATA1_OFFSET,
  421. .d_SI_RX_DATA0_OFFSET = AR6320_SI_RX_DATA0_OFFSET,
  422. .d_SI_RX_DATA1_OFFSET = AR6320_SI_RX_DATA1_OFFSET,
  423. .d_SI_CS_OFFSET = AR6320_SI_CS_OFFSET,
  424. .d_SI_CS_DONE_ERR_MASK = AR6320_SI_CS_DONE_ERR_MASK,
  425. .d_SI_CS_DONE_INT_MASK = AR6320_SI_CS_DONE_INT_MASK,
  426. .d_SI_CS_START_LSB = AR6320_SI_CS_START_LSB,
  427. .d_SI_CS_START_MASK = AR6320_SI_CS_START_MASK,
  428. .d_SI_CS_RX_CNT_LSB = AR6320_SI_CS_RX_CNT_LSB,
  429. .d_SI_CS_RX_CNT_MASK = AR6320_SI_CS_RX_CNT_MASK,
  430. .d_SI_CS_TX_CNT_LSB = AR6320_SI_CS_TX_CNT_LSB,
  431. .d_SI_CS_TX_CNT_MASK = AR6320_SI_CS_TX_CNT_MASK,
  432. .d_BOARD_DATA_SZ = AR6320_BOARD_DATA_SZ,
  433. .d_BOARD_EXT_DATA_SZ = AR6320_BOARD_EXT_DATA_SZ,
  434. .d_MBOX_BASE_ADDRESS = AR6320_MBOX_BASE_ADDRESS,
  435. .d_LOCAL_SCRATCH_OFFSET = AR6320_LOCAL_SCRATCH_OFFSET,
  436. .d_CPU_CLOCK_OFFSET = AR6320_CPU_CLOCK_OFFSET,
  437. .d_LPO_CAL_OFFSET = AR6320_LPO_CAL_OFFSET,
  438. .d_GPIO_PIN10_OFFSET = AR6320_GPIO_PIN10_OFFSET,
  439. .d_GPIO_PIN11_OFFSET = AR6320_GPIO_PIN11_OFFSET,
  440. .d_GPIO_PIN12_OFFSET = AR6320_GPIO_PIN12_OFFSET,
  441. .d_GPIO_PIN13_OFFSET = AR6320_GPIO_PIN13_OFFSET,
  442. .d_CLOCK_GPIO_OFFSET = AR6320_CLOCK_GPIO_OFFSET,
  443. .d_CPU_CLOCK_STANDARD_LSB = AR6320_CPU_CLOCK_STANDARD_LSB,
  444. .d_CPU_CLOCK_STANDARD_MASK = AR6320_CPU_CLOCK_STANDARD_MASK,
  445. .d_LPO_CAL_ENABLE_LSB = AR6320_LPO_CAL_ENABLE_LSB,
  446. .d_LPO_CAL_ENABLE_MASK = AR6320_LPO_CAL_ENABLE_MASK,
  447. .d_CLOCK_GPIO_BT_CLK_OUT_EN_LSB = AR6320_CLOCK_GPIO_BT_CLK_OUT_EN_LSB,
  448. .d_CLOCK_GPIO_BT_CLK_OUT_EN_MASK =
  449. AR6320_CLOCK_GPIO_BT_CLK_OUT_EN_MASK,
  450. .d_ANALOG_INTF_BASE_ADDRESS = AR6320_ANALOG_INTF_BASE_ADDRESS,
  451. .d_WLAN_MAC_BASE_ADDRESS = AR6320_WLAN_MAC_BASE_ADDRESS,
  452. .d_FW_INDICATOR_ADDRESS = AR6320_FW_INDICATOR_ADDRESS,
  453. .d_DRAM_BASE_ADDRESS = AR6320_DRAM_BASE_ADDRESS,
  454. .d_SOC_CORE_BASE_ADDRESS = AR6320_SOC_CORE_BASE_ADDRESS,
  455. .d_CORE_CTRL_ADDRESS = AR6320_CORE_CTRL_ADDRESS,
  456. #if defined(HIF_PCI) || defined(HIF_SNOC) || defined(HIF_AHB)
  457. .d_MSI_NUM_REQUEST = MSI_NUM_REQUEST,
  458. .d_MSI_ASSIGN_FW = MSI_ASSIGN_FW,
  459. #endif
  460. .d_CORE_CTRL_CPU_INTR_MASK = AR6320_CORE_CTRL_CPU_INTR_MASK,
  461. .d_SR_WR_INDEX_ADDRESS = AR6320_SR_WR_INDEX_ADDRESS,
  462. .d_DST_WATERMARK_ADDRESS = AR6320_DST_WATERMARK_ADDRESS,
  463. /* htt_rx.c */
  464. .d_RX_MSDU_END_4_FIRST_MSDU_MASK =
  465. AR6320_RX_MSDU_END_4_FIRST_MSDU_MASK,
  466. .d_RX_MSDU_END_4_FIRST_MSDU_LSB = AR6320_RX_MSDU_END_4_FIRST_MSDU_LSB,
  467. .d_RX_MPDU_START_0_RETRY_LSB = AR6320_RX_MPDU_START_0_RETRY_LSB,
  468. .d_RX_MPDU_START_0_RETRY_MASK = AR6320_RX_MPDU_START_0_RETRY_MASK,
  469. .d_RX_MPDU_START_0_SEQ_NUM_MASK = AR6320_RX_MPDU_START_0_SEQ_NUM_MASK,
  470. .d_RX_MPDU_START_0_SEQ_NUM_LSB = AR6320_RX_MPDU_START_0_SEQ_NUM_LSB,
  471. .d_RX_MPDU_START_2_PN_47_32_LSB = AR6320_RX_MPDU_START_2_PN_47_32_LSB,
  472. .d_RX_MPDU_START_2_PN_47_32_MASK =
  473. AR6320_RX_MPDU_START_2_PN_47_32_MASK,
  474. .d_RX_MPDU_START_2_TID_LSB = AR6320_RX_MPDU_START_2_TID_LSB,
  475. .d_RX_MPDU_START_2_TID_MASK = AR6320_RX_MPDU_START_2_TID_MASK,
  476. .d_RX_MSDU_END_1_KEY_ID_OCT_MASK =
  477. AR6320_RX_MSDU_END_1_KEY_ID_OCT_MASK,
  478. .d_RX_MSDU_END_1_KEY_ID_OCT_LSB = AR6320_RX_MSDU_END_1_KEY_ID_OCT_LSB,
  479. .d_RX_MSDU_END_1_EXT_WAPI_PN_63_48_MASK =
  480. AR6320_RX_MSDU_END_1_EXT_WAPI_PN_63_48_MASK,
  481. .d_RX_MSDU_END_1_EXT_WAPI_PN_63_48_LSB =
  482. AR6320_RX_MSDU_END_1_EXT_WAPI_PN_63_48_LSB,
  483. .d_RX_MSDU_END_4_LAST_MSDU_MASK = AR6320_RX_MSDU_END_4_LAST_MSDU_MASK,
  484. .d_RX_MSDU_END_4_LAST_MSDU_LSB = AR6320_RX_MSDU_END_4_LAST_MSDU_LSB,
  485. .d_RX_ATTENTION_0_MCAST_BCAST_MASK =
  486. AR6320_RX_ATTENTION_0_MCAST_BCAST_MASK,
  487. .d_RX_ATTENTION_0_MCAST_BCAST_LSB =
  488. AR6320_RX_ATTENTION_0_MCAST_BCAST_LSB,
  489. .d_RX_ATTENTION_0_FRAGMENT_MASK = AR6320_RX_ATTENTION_0_FRAGMENT_MASK,
  490. .d_RX_ATTENTION_0_FRAGMENT_LSB = AR6320_RX_ATTENTION_0_FRAGMENT_LSB,
  491. .d_RX_ATTENTION_0_MPDU_LENGTH_ERR_MASK =
  492. AR6320_RX_ATTENTION_0_MPDU_LENGTH_ERR_MASK,
  493. .d_RX_FRAG_INFO_0_RING2_MORE_COUNT_MASK =
  494. AR6320_RX_FRAG_INFO_0_RING2_MORE_COUNT_MASK,
  495. .d_RX_FRAG_INFO_0_RING2_MORE_COUNT_LSB =
  496. AR6320_RX_FRAG_INFO_0_RING2_MORE_COUNT_LSB,
  497. .d_RX_MSDU_START_0_MSDU_LENGTH_MASK =
  498. AR6320_RX_MSDU_START_0_MSDU_LENGTH_MASK,
  499. .d_RX_MSDU_START_0_MSDU_LENGTH_LSB =
  500. AR6320_RX_MSDU_START_0_MSDU_LENGTH_LSB,
  501. .d_RX_MSDU_START_2_DECAP_FORMAT_OFFSET =
  502. AR6320_RX_MSDU_START_2_DECAP_FORMAT_OFFSET,
  503. .d_RX_MSDU_START_2_DECAP_FORMAT_MASK =
  504. AR6320_RX_MSDU_START_2_DECAP_FORMAT_MASK,
  505. .d_RX_MSDU_START_2_DECAP_FORMAT_LSB =
  506. AR6320_RX_MSDU_START_2_DECAP_FORMAT_LSB,
  507. .d_RX_MPDU_START_0_ENCRYPTED_MASK =
  508. AR6320_RX_MPDU_START_0_ENCRYPTED_MASK,
  509. .d_RX_MPDU_START_0_ENCRYPTED_LSB =
  510. AR6320_RX_MPDU_START_0_ENCRYPTED_LSB,
  511. .d_RX_ATTENTION_0_MORE_DATA_MASK =
  512. AR6320_RX_ATTENTION_0_MORE_DATA_MASK,
  513. .d_RX_ATTENTION_0_MSDU_DONE_MASK =
  514. AR6320_RX_ATTENTION_0_MSDU_DONE_MASK,
  515. .d_RX_ATTENTION_0_TCP_UDP_CHKSUM_FAIL_MASK =
  516. AR6320_RX_ATTENTION_0_TCP_UDP_CHKSUM_FAIL_MASK,
  517. #if defined(HIF_PCI) || defined(HIF_SNOC) || defined(HIF_AHB)
  518. .d_CE_COUNT = AR6320_CE_COUNT,
  519. .d_MSI_ASSIGN_CE_INITIAL = MSI_ASSIGN_CE_INITIAL,
  520. .d_PCIE_INTR_ENABLE_ADDRESS = AR6320_PCIE_INTR_ENABLE_ADDRESS,
  521. .d_PCIE_INTR_CLR_ADDRESS = AR6320_PCIE_INTR_CLR_ADDRESS,
  522. .d_PCIE_INTR_FIRMWARE_MASK = AR6320_PCIE_INTR_FIRMWARE_MASK,
  523. .d_PCIE_INTR_CE_MASK_ALL = AR6320_PCIE_INTR_CE_MASK_ALL,
  524. /* PLL start */
  525. .d_EFUSE_OFFSET = AR6320_EFUSE_OFFSET,
  526. .d_EFUSE_XTAL_SEL_MSB = AR6320_EFUSE_XTAL_SEL_MSB,
  527. .d_EFUSE_XTAL_SEL_LSB = AR6320_EFUSE_XTAL_SEL_LSB,
  528. .d_EFUSE_XTAL_SEL_MASK = AR6320_EFUSE_XTAL_SEL_MASK,
  529. .d_BB_PLL_CONFIG_OFFSET = AR6320_BB_PLL_CONFIG_OFFSET,
  530. .d_BB_PLL_CONFIG_OUTDIV_MSB = AR6320_BB_PLL_CONFIG_OUTDIV_MSB,
  531. .d_BB_PLL_CONFIG_OUTDIV_LSB = AR6320_BB_PLL_CONFIG_OUTDIV_LSB,
  532. .d_BB_PLL_CONFIG_OUTDIV_MASK = AR6320_BB_PLL_CONFIG_OUTDIV_MASK,
  533. .d_BB_PLL_CONFIG_FRAC_MSB = AR6320_BB_PLL_CONFIG_FRAC_MSB,
  534. .d_BB_PLL_CONFIG_FRAC_LSB = AR6320_BB_PLL_CONFIG_FRAC_LSB,
  535. .d_BB_PLL_CONFIG_FRAC_MASK = AR6320_BB_PLL_CONFIG_FRAC_MASK,
  536. .d_WLAN_PLL_SETTLE_TIME_MSB = AR6320_WLAN_PLL_SETTLE_TIME_MSB,
  537. .d_WLAN_PLL_SETTLE_TIME_LSB = AR6320_WLAN_PLL_SETTLE_TIME_LSB,
  538. .d_WLAN_PLL_SETTLE_TIME_MASK = AR6320_WLAN_PLL_SETTLE_TIME_MASK,
  539. .d_WLAN_PLL_SETTLE_OFFSET = AR6320_WLAN_PLL_SETTLE_OFFSET,
  540. .d_WLAN_PLL_SETTLE_SW_MASK = AR6320_WLAN_PLL_SETTLE_SW_MASK,
  541. .d_WLAN_PLL_SETTLE_RSTMASK = AR6320_WLAN_PLL_SETTLE_RSTMASK,
  542. .d_WLAN_PLL_SETTLE_RESET = AR6320_WLAN_PLL_SETTLE_RESET,
  543. .d_WLAN_PLL_CONTROL_NOPWD_MSB = AR6320_WLAN_PLL_CONTROL_NOPWD_MSB,
  544. .d_WLAN_PLL_CONTROL_NOPWD_LSB = AR6320_WLAN_PLL_CONTROL_NOPWD_LSB,
  545. .d_WLAN_PLL_CONTROL_NOPWD_MASK = AR6320_WLAN_PLL_CONTROL_NOPWD_MASK,
  546. .d_WLAN_PLL_CONTROL_BYPASS_MSB = AR6320_WLAN_PLL_CONTROL_BYPASS_MSB,
  547. .d_WLAN_PLL_CONTROL_BYPASS_LSB = AR6320_WLAN_PLL_CONTROL_BYPASS_LSB,
  548. .d_WLAN_PLL_CONTROL_BYPASS_MASK = AR6320_WLAN_PLL_CONTROL_BYPASS_MASK,
  549. .d_WLAN_PLL_CONTROL_BYPASS_RESET =
  550. AR6320_WLAN_PLL_CONTROL_BYPASS_RESET,
  551. .d_WLAN_PLL_CONTROL_CLK_SEL_MSB = AR6320_WLAN_PLL_CONTROL_CLK_SEL_MSB,
  552. .d_WLAN_PLL_CONTROL_CLK_SEL_LSB = AR6320_WLAN_PLL_CONTROL_CLK_SEL_LSB,
  553. .d_WLAN_PLL_CONTROL_CLK_SEL_MASK =
  554. AR6320_WLAN_PLL_CONTROL_CLK_SEL_MASK,
  555. .d_WLAN_PLL_CONTROL_CLK_SEL_RESET =
  556. AR6320_WLAN_PLL_CONTROL_CLK_SEL_RESET,
  557. .d_WLAN_PLL_CONTROL_REFDIV_MSB = AR6320_WLAN_PLL_CONTROL_REFDIV_MSB,
  558. .d_WLAN_PLL_CONTROL_REFDIV_LSB = AR6320_WLAN_PLL_CONTROL_REFDIV_LSB,
  559. .d_WLAN_PLL_CONTROL_REFDIV_MASK = AR6320_WLAN_PLL_CONTROL_REFDIV_MASK,
  560. .d_WLAN_PLL_CONTROL_REFDIV_RESET =
  561. AR6320_WLAN_PLL_CONTROL_REFDIV_RESET,
  562. .d_WLAN_PLL_CONTROL_DIV_MSB = AR6320_WLAN_PLL_CONTROL_DIV_MSB,
  563. .d_WLAN_PLL_CONTROL_DIV_LSB = AR6320_WLAN_PLL_CONTROL_DIV_LSB,
  564. .d_WLAN_PLL_CONTROL_DIV_MASK = AR6320_WLAN_PLL_CONTROL_DIV_MASK,
  565. .d_WLAN_PLL_CONTROL_DIV_RESET = AR6320_WLAN_PLL_CONTROL_DIV_RESET,
  566. .d_WLAN_PLL_CONTROL_OFFSET = AR6320_WLAN_PLL_CONTROL_OFFSET,
  567. .d_WLAN_PLL_CONTROL_SW_MASK = AR6320_WLAN_PLL_CONTROL_SW_MASK,
  568. .d_WLAN_PLL_CONTROL_RSTMASK = AR6320_WLAN_PLL_CONTROL_RSTMASK,
  569. .d_WLAN_PLL_CONTROL_RESET = AR6320_WLAN_PLL_CONTROL_RESET,
  570. .d_SOC_CORE_CLK_CTRL_OFFSET = AR6320_SOC_CORE_CLK_CTRL_OFFSET,
  571. .d_SOC_CORE_CLK_CTRL_DIV_MSB = AR6320_SOC_CORE_CLK_CTRL_DIV_MSB,
  572. .d_SOC_CORE_CLK_CTRL_DIV_LSB = AR6320_SOC_CORE_CLK_CTRL_DIV_LSB,
  573. .d_SOC_CORE_CLK_CTRL_DIV_MASK = AR6320_SOC_CORE_CLK_CTRL_DIV_MASK,
  574. .d_RTC_SYNC_STATUS_PLL_CHANGING_MSB =
  575. AR6320_RTC_SYNC_STATUS_PLL_CHANGING_MSB,
  576. .d_RTC_SYNC_STATUS_PLL_CHANGING_LSB =
  577. AR6320_RTC_SYNC_STATUS_PLL_CHANGING_LSB,
  578. .d_RTC_SYNC_STATUS_PLL_CHANGING_MASK =
  579. AR6320_RTC_SYNC_STATUS_PLL_CHANGING_MASK,
  580. .d_RTC_SYNC_STATUS_PLL_CHANGING_RESET =
  581. AR6320_RTC_SYNC_STATUS_PLL_CHANGING_RESET,
  582. .d_RTC_SYNC_STATUS_OFFSET = AR6320_RTC_SYNC_STATUS_OFFSET,
  583. .d_SOC_CPU_CLOCK_OFFSET = AR6320_SOC_CPU_CLOCK_OFFSET,
  584. .d_SOC_CPU_CLOCK_STANDARD_MSB = AR6320_SOC_CPU_CLOCK_STANDARD_MSB,
  585. .d_SOC_CPU_CLOCK_STANDARD_LSB = AR6320_SOC_CPU_CLOCK_STANDARD_LSB,
  586. .d_SOC_CPU_CLOCK_STANDARD_MASK = AR6320_SOC_CPU_CLOCK_STANDARD_MASK,
  587. /* PLL end */
  588. .d_SOC_POWER_REG_OFFSET = AR6320_SOC_POWER_REG_OFFSET,
  589. .d_PCIE_INTR_CAUSE_ADDRESS = AR6320_PCIE_INTR_CAUSE_ADDRESS,
  590. .d_SOC_RESET_CONTROL_ADDRESS = AR6320_SOC_RESET_CONTROL_ADDRESS,
  591. .d_SOC_RESET_CONTROL_PCIE_RST_SHORT_OVRD_MASK =
  592. AR6320_SOC_RESET_CONTROL_PCIE_RST_SHORT_OVRD_MASK,
  593. .d_SOC_RESET_CONTROL_PCIE_RST_SHORT_OVRD_LSB =
  594. AR6320_SOC_RESET_CONTROL_PCIE_RST_SHORT_OVRD_LSB,
  595. .d_SOC_RESET_CONTROL_CE_RST_MASK =
  596. AR6320_SOC_RESET_CONTROL_CE_RST_MASK,
  597. .d_SOC_RESET_CONTROL_CPU_WARM_RST_MASK =
  598. AR6320_SOC_RESET_CONTROL_CPU_WARM_RST_MASK,
  599. .d_CPU_INTR_ADDRESS = AR6320_CPU_INTR_ADDRESS,
  600. .d_SOC_LF_TIMER_CONTROL0_ADDRESS =
  601. AR6320_SOC_LF_TIMER_CONTROL0_ADDRESS,
  602. .d_SOC_LF_TIMER_CONTROL0_ENABLE_MASK =
  603. AR6320_SOC_LF_TIMER_CONTROL0_ENABLE_MASK,
  604. .d_WLAN_DEBUG_INPUT_SEL_OFFSET = AR6320_WLAN_DEBUG_INPUT_SEL_OFFSET,
  605. .d_WLAN_DEBUG_INPUT_SEL_SRC_MSB = AR6320_WLAN_DEBUG_INPUT_SEL_SRC_MSB,
  606. .d_WLAN_DEBUG_INPUT_SEL_SRC_LSB = AR6320_WLAN_DEBUG_INPUT_SEL_SRC_LSB,
  607. .d_WLAN_DEBUG_INPUT_SEL_SRC_MASK =
  608. AR6320_WLAN_DEBUG_INPUT_SEL_SRC_MASK,
  609. .d_WLAN_DEBUG_CONTROL_OFFSET = AR6320_WLAN_DEBUG_CONTROL_OFFSET,
  610. .d_WLAN_DEBUG_CONTROL_ENABLE_MSB =
  611. AR6320_WLAN_DEBUG_CONTROL_ENABLE_MSB,
  612. .d_WLAN_DEBUG_CONTROL_ENABLE_LSB =
  613. AR6320_WLAN_DEBUG_CONTROL_ENABLE_LSB,
  614. .d_WLAN_DEBUG_CONTROL_ENABLE_MASK =
  615. AR6320_WLAN_DEBUG_CONTROL_ENABLE_MASK,
  616. .d_WLAN_DEBUG_OUT_OFFSET = AR6320_WLAN_DEBUG_OUT_OFFSET,
  617. .d_WLAN_DEBUG_OUT_DATA_MSB = AR6320_WLAN_DEBUG_OUT_DATA_MSB,
  618. .d_WLAN_DEBUG_OUT_DATA_LSB = AR6320_WLAN_DEBUG_OUT_DATA_LSB,
  619. .d_WLAN_DEBUG_OUT_DATA_MASK = AR6320_WLAN_DEBUG_OUT_DATA_MASK,
  620. .d_AMBA_DEBUG_BUS_OFFSET = AR6320_AMBA_DEBUG_BUS_OFFSET,
  621. .d_AMBA_DEBUG_BUS_PCIE_DEBUG_SEL_MSB =
  622. AR6320_AMBA_DEBUG_BUS_PCIE_DEBUG_SEL_MSB,
  623. .d_AMBA_DEBUG_BUS_PCIE_DEBUG_SEL_LSB =
  624. AR6320_AMBA_DEBUG_BUS_PCIE_DEBUG_SEL_LSB,
  625. .d_AMBA_DEBUG_BUS_PCIE_DEBUG_SEL_MASK =
  626. AR6320_AMBA_DEBUG_BUS_PCIE_DEBUG_SEL_MASK,
  627. .d_AMBA_DEBUG_BUS_SEL_MSB = AR6320_AMBA_DEBUG_BUS_SEL_MSB,
  628. .d_AMBA_DEBUG_BUS_SEL_LSB = AR6320_AMBA_DEBUG_BUS_SEL_LSB,
  629. .d_AMBA_DEBUG_BUS_SEL_MASK = AR6320_AMBA_DEBUG_BUS_SEL_MASK,
  630. #endif
  631. /* chip id start */
  632. .d_SOC_CHIP_ID_ADDRESS = AR6320_SOC_CHIP_ID_ADDRESS,
  633. .d_SOC_CHIP_ID_VERSION_MASK = AR6320_SOC_CHIP_ID_VERSION_MASK,
  634. .d_SOC_CHIP_ID_VERSION_LSB = AR6320_SOC_CHIP_ID_VERSION_LSB,
  635. .d_SOC_CHIP_ID_REVISION_MASK = AR6320_SOC_CHIP_ID_REVISION_MASK,
  636. .d_SOC_CHIP_ID_REVISION_LSB = AR6320_SOC_CHIP_ID_REVISION_LSB,
  637. /* chip id end */
  638. };
  639. struct hostdef_s ar6320_hostdef = {
  640. .d_INT_STATUS_ENABLE_ERROR_LSB = AR6320_INT_STATUS_ENABLE_ERROR_LSB,
  641. .d_INT_STATUS_ENABLE_ERROR_MASK = AR6320_INT_STATUS_ENABLE_ERROR_MASK,
  642. .d_INT_STATUS_ENABLE_CPU_LSB = AR6320_INT_STATUS_ENABLE_CPU_LSB,
  643. .d_INT_STATUS_ENABLE_CPU_MASK = AR6320_INT_STATUS_ENABLE_CPU_MASK,
  644. .d_INT_STATUS_ENABLE_COUNTER_LSB =
  645. AR6320_INT_STATUS_ENABLE_COUNTER_LSB,
  646. .d_INT_STATUS_ENABLE_COUNTER_MASK =
  647. AR6320_INT_STATUS_ENABLE_COUNTER_MASK,
  648. .d_INT_STATUS_ENABLE_MBOX_DATA_LSB =
  649. AR6320_INT_STATUS_ENABLE_MBOX_DATA_LSB,
  650. .d_INT_STATUS_ENABLE_MBOX_DATA_MASK =
  651. AR6320_INT_STATUS_ENABLE_MBOX_DATA_MASK,
  652. .d_ERROR_STATUS_ENABLE_RX_UNDERFLOW_LSB =
  653. AR6320_ERROR_STATUS_ENABLE_RX_UNDERFLOW_LSB,
  654. .d_ERROR_STATUS_ENABLE_RX_UNDERFLOW_MASK =
  655. AR6320_ERROR_STATUS_ENABLE_RX_UNDERFLOW_MASK,
  656. .d_ERROR_STATUS_ENABLE_TX_OVERFLOW_LSB =
  657. AR6320_ERROR_STATUS_ENABLE_TX_OVERFLOW_LSB,
  658. .d_ERROR_STATUS_ENABLE_TX_OVERFLOW_MASK =
  659. AR6320_ERROR_STATUS_ENABLE_TX_OVERFLOW_MASK,
  660. .d_COUNTER_INT_STATUS_ENABLE_BIT_LSB =
  661. AR6320_COUNTER_INT_STATUS_ENABLE_BIT_LSB,
  662. .d_COUNTER_INT_STATUS_ENABLE_BIT_MASK =
  663. AR6320_COUNTER_INT_STATUS_ENABLE_BIT_MASK,
  664. .d_INT_STATUS_ENABLE_ADDRESS = AR6320_INT_STATUS_ENABLE_ADDRESS,
  665. .d_CPU_INT_STATUS_ENABLE_BIT_LSB =
  666. AR6320_CPU_INT_STATUS_ENABLE_BIT_LSB,
  667. .d_CPU_INT_STATUS_ENABLE_BIT_MASK =
  668. AR6320_CPU_INT_STATUS_ENABLE_BIT_MASK,
  669. .d_HOST_INT_STATUS_ADDRESS = AR6320_HOST_INT_STATUS_ADDRESS,
  670. .d_CPU_INT_STATUS_ADDRESS = AR6320_CPU_INT_STATUS_ADDRESS,
  671. .d_ERROR_INT_STATUS_ADDRESS = AR6320_ERROR_INT_STATUS_ADDRESS,
  672. .d_ERROR_INT_STATUS_WAKEUP_MASK = AR6320_ERROR_INT_STATUS_WAKEUP_MASK,
  673. .d_ERROR_INT_STATUS_WAKEUP_LSB = AR6320_ERROR_INT_STATUS_WAKEUP_LSB,
  674. .d_ERROR_INT_STATUS_RX_UNDERFLOW_MASK =
  675. AR6320_ERROR_INT_STATUS_RX_UNDERFLOW_MASK,
  676. .d_ERROR_INT_STATUS_RX_UNDERFLOW_LSB =
  677. AR6320_ERROR_INT_STATUS_RX_UNDERFLOW_LSB,
  678. .d_ERROR_INT_STATUS_TX_OVERFLOW_MASK =
  679. AR6320_ERROR_INT_STATUS_TX_OVERFLOW_MASK,
  680. .d_ERROR_INT_STATUS_TX_OVERFLOW_LSB =
  681. AR6320_ERROR_INT_STATUS_TX_OVERFLOW_LSB,
  682. .d_COUNT_DEC_ADDRESS = AR6320_COUNT_DEC_ADDRESS,
  683. .d_HOST_INT_STATUS_CPU_MASK = AR6320_HOST_INT_STATUS_CPU_MASK,
  684. .d_HOST_INT_STATUS_CPU_LSB = AR6320_HOST_INT_STATUS_CPU_LSB,
  685. .d_HOST_INT_STATUS_ERROR_MASK = AR6320_HOST_INT_STATUS_ERROR_MASK,
  686. .d_HOST_INT_STATUS_ERROR_LSB = AR6320_HOST_INT_STATUS_ERROR_LSB,
  687. .d_HOST_INT_STATUS_COUNTER_MASK = AR6320_HOST_INT_STATUS_COUNTER_MASK,
  688. .d_HOST_INT_STATUS_COUNTER_LSB = AR6320_HOST_INT_STATUS_COUNTER_LSB,
  689. .d_RX_LOOKAHEAD_VALID_ADDRESS = AR6320_RX_LOOKAHEAD_VALID_ADDRESS,
  690. .d_WINDOW_DATA_ADDRESS = AR6320_WINDOW_DATA_ADDRESS,
  691. .d_WINDOW_READ_ADDR_ADDRESS = AR6320_WINDOW_READ_ADDR_ADDRESS,
  692. .d_WINDOW_WRITE_ADDR_ADDRESS = AR6320_WINDOW_WRITE_ADDR_ADDRESS,
  693. .d_SOC_GLOBAL_RESET_ADDRESS = AR6320_SOC_GLOBAL_RESET_ADDRESS,
  694. .d_RTC_STATE_ADDRESS = AR6320_RTC_STATE_ADDRESS,
  695. .d_RTC_STATE_COLD_RESET_MASK = AR6320_RTC_STATE_COLD_RESET_MASK,
  696. #if defined(HIF_PCI) || defined(HIF_SNOC) || defined(HIF_AHB)
  697. .d_PCIE_LOCAL_BASE_ADDRESS = AR6320_PCIE_LOCAL_BASE_ADDRESS,
  698. .d_PCIE_SOC_WAKE_RESET = AR6320_PCIE_SOC_WAKE_RESET,
  699. .d_PCIE_SOC_WAKE_ADDRESS = AR6320_PCIE_SOC_WAKE_ADDRESS,
  700. .d_PCIE_SOC_WAKE_V_MASK = AR6320_PCIE_SOC_WAKE_V_MASK,
  701. .d_MUX_ID_MASK = AR6320_MUX_ID_MASK,
  702. .d_TRANSACTION_ID_MASK = AR6320_TRANSACTION_ID_MASK,
  703. .d_FW_IND_HELPER = AR6320_FW_IND_HELPER,
  704. .d_PCIE_SOC_RDY_STATUS_ADDRESS = PCIE_SOC_RDY_STATUS_ADDRESS,
  705. .d_PCIE_SOC_RDY_STATUS_BAR_MASK = PCIE_SOC_RDY_STATUS_BAR_MASK,
  706. .d_SOC_PCIE_BASE_ADDRESS = SOC_PCIE_BASE_ADDRESS,
  707. .d_MSI_MAGIC_ADR_ADDRESS = MSI_MAGIC_ADR_ADDRESS,
  708. .d_MSI_MAGIC_ADDRESS = MSI_MAGIC_ADDRESS,
  709. .d_HOST_CE_COUNT = 8,
  710. .d_ENABLE_MSI = 0,
  711. #endif
  712. .d_RTC_STATE_V_MASK = AR6320_RTC_STATE_V_MASK,
  713. .d_RTC_STATE_V_LSB = AR6320_RTC_STATE_V_LSB,
  714. .d_FW_IND_EVENT_PENDING = AR6320_FW_IND_EVENT_PENDING,
  715. .d_FW_IND_INITIALIZED = AR6320_FW_IND_INITIALIZED,
  716. .d_RTC_STATE_V_ON = AR6320_RTC_STATE_V_ON,
  717. #if defined(SDIO_3_0)
  718. .d_HOST_INT_STATUS_MBOX_DATA_MASK =
  719. AR6320_HOST_INT_STATUS_MBOX_DATA_MASK,
  720. .d_HOST_INT_STATUS_MBOX_DATA_LSB =
  721. AR6320_HOST_INT_STATUS_MBOX_DATA_LSB,
  722. #endif
  723. };
  724. #if defined(HIF_PCI) || defined(HIF_SNOC) || defined(HIF_AHB)
  725. struct ce_reg_def ar6320_ce_targetdef = {
  726. /* copy_engine.c */
  727. .d_DST_WR_INDEX_ADDRESS = AR6320_DST_WR_INDEX_ADDRESS,
  728. .d_SRC_WATERMARK_ADDRESS = AR6320_SRC_WATERMARK_ADDRESS,
  729. .d_SRC_WATERMARK_LOW_MASK = AR6320_SRC_WATERMARK_LOW_MASK,
  730. .d_SRC_WATERMARK_HIGH_MASK = AR6320_SRC_WATERMARK_HIGH_MASK,
  731. .d_DST_WATERMARK_LOW_MASK = AR6320_DST_WATERMARK_LOW_MASK,
  732. .d_DST_WATERMARK_HIGH_MASK = AR6320_DST_WATERMARK_HIGH_MASK,
  733. .d_CURRENT_SRRI_ADDRESS = AR6320_CURRENT_SRRI_ADDRESS,
  734. .d_CURRENT_DRRI_ADDRESS = AR6320_CURRENT_DRRI_ADDRESS,
  735. .d_HOST_IS_SRC_RING_HIGH_WATERMARK_MASK =
  736. AR6320_HOST_IS_SRC_RING_HIGH_WATERMARK_MASK,
  737. .d_HOST_IS_SRC_RING_LOW_WATERMARK_MASK =
  738. AR6320_HOST_IS_SRC_RING_LOW_WATERMARK_MASK,
  739. .d_HOST_IS_DST_RING_HIGH_WATERMARK_MASK =
  740. AR6320_HOST_IS_DST_RING_HIGH_WATERMARK_MASK,
  741. .d_HOST_IS_DST_RING_LOW_WATERMARK_MASK =
  742. AR6320_HOST_IS_DST_RING_LOW_WATERMARK_MASK,
  743. .d_HOST_IS_ADDRESS = AR6320_HOST_IS_ADDRESS,
  744. .d_HOST_IS_COPY_COMPLETE_MASK = AR6320_HOST_IS_COPY_COMPLETE_MASK,
  745. .d_CE_WRAPPER_BASE_ADDRESS = AR6320_CE_WRAPPER_BASE_ADDRESS,
  746. .d_CE_WRAPPER_INTERRUPT_SUMMARY_ADDRESS =
  747. AR6320_CE_WRAPPER_INTERRUPT_SUMMARY_ADDRESS,
  748. .d_HOST_IE_ADDRESS = AR6320_HOST_IE_ADDRESS,
  749. .d_HOST_IE_COPY_COMPLETE_MASK = AR6320_HOST_IE_COPY_COMPLETE_MASK,
  750. .d_SR_BA_ADDRESS = AR6320_SR_BA_ADDRESS,
  751. .d_SR_SIZE_ADDRESS = AR6320_SR_SIZE_ADDRESS,
  752. .d_CE_CTRL1_ADDRESS = AR6320_CE_CTRL1_ADDRESS,
  753. .d_CE_CTRL1_DMAX_LENGTH_MASK = AR6320_CE_CTRL1_DMAX_LENGTH_MASK,
  754. .d_DR_BA_ADDRESS = AR6320_DR_BA_ADDRESS,
  755. .d_DR_SIZE_ADDRESS = AR6320_DR_SIZE_ADDRESS,
  756. .d_MISC_IE_ADDRESS = AR6320_MISC_IE_ADDRESS,
  757. .d_MISC_IS_AXI_ERR_MASK = AR6320_MISC_IS_AXI_ERR_MASK,
  758. .d_MISC_IS_DST_ADDR_ERR_MASK = AR6320_MISC_IS_DST_ADDR_ERR_MASK,
  759. .d_MISC_IS_SRC_LEN_ERR_MASK = AR6320_MISC_IS_SRC_LEN_ERR_MASK,
  760. .d_MISC_IS_DST_MAX_LEN_VIO_MASK = AR6320_MISC_IS_DST_MAX_LEN_VIO_MASK,
  761. .d_MISC_IS_DST_RING_OVERFLOW_MASK =
  762. AR6320_MISC_IS_DST_RING_OVERFLOW_MASK,
  763. .d_MISC_IS_SRC_RING_OVERFLOW_MASK =
  764. AR6320_MISC_IS_SRC_RING_OVERFLOW_MASK,
  765. .d_SRC_WATERMARK_LOW_LSB = AR6320_SRC_WATERMARK_LOW_LSB,
  766. .d_SRC_WATERMARK_HIGH_LSB = AR6320_SRC_WATERMARK_HIGH_LSB,
  767. .d_DST_WATERMARK_LOW_LSB = AR6320_DST_WATERMARK_LOW_LSB,
  768. .d_DST_WATERMARK_HIGH_LSB = AR6320_DST_WATERMARK_HIGH_LSB,
  769. .d_CE_WRAPPER_INTERRUPT_SUMMARY_HOST_MSI_MASK =
  770. AR6320_CE_WRAPPER_INTERRUPT_SUMMARY_HOST_MSI_MASK,
  771. .d_CE_WRAPPER_INTERRUPT_SUMMARY_HOST_MSI_LSB =
  772. AR6320_CE_WRAPPER_INTERRUPT_SUMMARY_HOST_MSI_LSB,
  773. .d_CE_CTRL1_DMAX_LENGTH_LSB = AR6320_CE_CTRL1_DMAX_LENGTH_LSB,
  774. .d_CE_CTRL1_SRC_RING_BYTE_SWAP_EN_MASK =
  775. AR6320_CE_CTRL1_SRC_RING_BYTE_SWAP_EN_MASK,
  776. .d_CE_CTRL1_DST_RING_BYTE_SWAP_EN_MASK =
  777. AR6320_CE_CTRL1_DST_RING_BYTE_SWAP_EN_MASK,
  778. .d_CE_CTRL1_SRC_RING_BYTE_SWAP_EN_LSB =
  779. AR6320_CE_CTRL1_SRC_RING_BYTE_SWAP_EN_LSB,
  780. .d_CE_CTRL1_DST_RING_BYTE_SWAP_EN_LSB =
  781. AR6320_CE_CTRL1_DST_RING_BYTE_SWAP_EN_LSB,
  782. .d_CE_WRAPPER_DEBUG_OFFSET = AR6320_CE_WRAPPER_DEBUG_OFFSET,
  783. .d_CE_WRAPPER_DEBUG_SEL_MSB = AR6320_CE_WRAPPER_DEBUG_SEL_MSB,
  784. .d_CE_WRAPPER_DEBUG_SEL_LSB = AR6320_CE_WRAPPER_DEBUG_SEL_LSB,
  785. .d_CE_WRAPPER_DEBUG_SEL_MASK = AR6320_CE_WRAPPER_DEBUG_SEL_MASK,
  786. .d_CE_DEBUG_OFFSET = AR6320_CE_DEBUG_OFFSET,
  787. .d_CE_DEBUG_SEL_MSB = AR6320_CE_DEBUG_SEL_MSB,
  788. .d_CE_DEBUG_SEL_LSB = AR6320_CE_DEBUG_SEL_LSB,
  789. .d_CE_DEBUG_SEL_MASK = AR6320_CE_DEBUG_SEL_MASK,
  790. .d_CE0_BASE_ADDRESS = AR6320_CE0_BASE_ADDRESS,
  791. .d_CE1_BASE_ADDRESS = AR6320_CE1_BASE_ADDRESS,
  792. };
  793. #endif
  794. #endif