ar6320v2def.h 44 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824
  1. /*
  2. * Copyright (c) 2013-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 _AR6320V2DEF_H_
  27. #define _AR6320V2DEF_H_
  28. /* Base Addresses */
  29. #define AR6320V2_RTC_SOC_BASE_ADDRESS 0x00000800
  30. #define AR6320V2_RTC_WMAC_BASE_ADDRESS 0x00001000
  31. #define AR6320V2_MAC_COEX_BASE_ADDRESS 0x0000f000
  32. #define AR6320V2_BT_COEX_BASE_ADDRESS 0x00002000
  33. #define AR6320V2_SOC_PCIE_BASE_ADDRESS 0x00038000
  34. #define AR6320V2_SOC_CORE_BASE_ADDRESS 0x0003a000
  35. #define AR6320V2_WLAN_UART_BASE_ADDRESS 0x0000c000
  36. #define AR6320V2_WLAN_SI_BASE_ADDRESS 0x00010000
  37. #define AR6320V2_WLAN_GPIO_BASE_ADDRESS 0x00005000
  38. #define AR6320V2_WLAN_ANALOG_INTF_BASE_ADDRESS 0x00006000
  39. #define AR6320V2_WLAN_MAC_BASE_ADDRESS 0x00010000
  40. #define AR6320V2_EFUSE_BASE_ADDRESS 0x00024000
  41. #define AR6320V2_FPGA_REG_BASE_ADDRESS 0x00039000
  42. #define AR6320V2_WLAN_UART2_BASE_ADDRESS 0x00054c00
  43. #define AR6320V2_DBI_BASE_ADDRESS 0x0003c000
  44. #define AR6320V2_SCRATCH_3_ADDRESS 0x0028
  45. #define AR6320V2_TARG_DRAM_START 0x00400000
  46. #define AR6320V2_SOC_SYSTEM_SLEEP_OFFSET 0x000000c0
  47. #define AR6320V2_SOC_RESET_CONTROL_OFFSET 0x00000000
  48. #define AR6320V2_SOC_CLOCK_CONTROL_OFFSET 0x00000028
  49. #define AR6320V2_SOC_CLOCK_CONTROL_SI0_CLK_MASK 0x00000001
  50. #define AR6320V2_SOC_RESET_CONTROL_SI0_RST_MASK 0x00000000
  51. #define AR6320V2_WLAN_GPIO_PIN0_ADDRESS 0x00000068
  52. #define AR6320V2_WLAN_GPIO_PIN1_ADDRESS 0x0000006c
  53. #define AR6320V2_WLAN_GPIO_PIN0_CONFIG_MASK 0x00007800
  54. #define AR6320V2_WLAN_GPIO_PIN1_CONFIG_MASK 0x00007800
  55. #define AR6320V2_SOC_CPU_CLOCK_OFFSET 0x00000020
  56. #define AR6320V2_SOC_LPO_CAL_OFFSET 0x000000e0
  57. #define AR6320V2_WLAN_GPIO_PIN10_ADDRESS 0x00000090
  58. #define AR6320V2_WLAN_GPIO_PIN11_ADDRESS 0x00000094
  59. #define AR6320V2_WLAN_GPIO_PIN12_ADDRESS 0x00000098
  60. #define AR6320V2_WLAN_GPIO_PIN13_ADDRESS 0x0000009c
  61. #define AR6320V2_SOC_CPU_CLOCK_STANDARD_LSB 0
  62. #define AR6320V2_SOC_CPU_CLOCK_STANDARD_MASK 0x00000003
  63. #define AR6320V2_SOC_LPO_CAL_ENABLE_LSB 20
  64. #define AR6320V2_SOC_LPO_CAL_ENABLE_MASK 0x00100000
  65. #define AR6320V2_WLAN_SYSTEM_SLEEP_DISABLE_LSB 0
  66. #define AR6320V2_WLAN_SYSTEM_SLEEP_DISABLE_MASK 0x00000001
  67. #define AR6320V2_WLAN_RESET_CONTROL_COLD_RST_MASK 0x00000008
  68. #define AR6320V2_WLAN_RESET_CONTROL_WARM_RST_MASK 0x00000004
  69. #define AR6320V2_SI_CONFIG_BIDIR_OD_DATA_LSB 18
  70. #define AR6320V2_SI_CONFIG_BIDIR_OD_DATA_MASK 0x00040000
  71. #define AR6320V2_SI_CONFIG_I2C_LSB 16
  72. #define AR6320V2_SI_CONFIG_I2C_MASK 0x00010000
  73. #define AR6320V2_SI_CONFIG_POS_SAMPLE_LSB 7
  74. #define AR6320V2_SI_CONFIG_POS_SAMPLE_MASK 0x00000080
  75. #define AR6320V2_SI_CONFIG_INACTIVE_CLK_LSB 4
  76. #define AR6320V2_SI_CONFIG_INACTIVE_CLK_MASK 0x00000010
  77. #define AR6320V2_SI_CONFIG_INACTIVE_DATA_LSB 5
  78. #define AR6320V2_SI_CONFIG_INACTIVE_DATA_MASK 0x00000020
  79. #define AR6320V2_SI_CONFIG_DIVIDER_LSB 0
  80. #define AR6320V2_SI_CONFIG_DIVIDER_MASK 0x0000000f
  81. #define AR6320V2_SI_CONFIG_OFFSET 0x00000000
  82. #define AR6320V2_SI_TX_DATA0_OFFSET 0x00000008
  83. #define AR6320V2_SI_TX_DATA1_OFFSET 0x0000000c
  84. #define AR6320V2_SI_RX_DATA0_OFFSET 0x00000010
  85. #define AR6320V2_SI_RX_DATA1_OFFSET 0x00000014
  86. #define AR6320V2_SI_CS_OFFSET 0x00000004
  87. #define AR6320V2_SI_CS_DONE_ERR_MASK 0x00000400
  88. #define AR6320V2_SI_CS_DONE_INT_MASK 0x00000200
  89. #define AR6320V2_SI_CS_START_LSB 8
  90. #define AR6320V2_SI_CS_START_MASK 0x00000100
  91. #define AR6320V2_SI_CS_RX_CNT_LSB 4
  92. #define AR6320V2_SI_CS_RX_CNT_MASK 0x000000f0
  93. #define AR6320V2_SI_CS_TX_CNT_LSB 0
  94. #define AR6320V2_SI_CS_TX_CNT_MASK 0x0000000f
  95. #define AR6320V2_CE_COUNT 8
  96. #define AR6320V2_SR_WR_INDEX_ADDRESS 0x003c
  97. #define AR6320V2_DST_WATERMARK_ADDRESS 0x0050
  98. #define AR6320V2_RX_MSDU_END_4_FIRST_MSDU_LSB 14
  99. #define AR6320V2_RX_MSDU_END_4_FIRST_MSDU_MASK 0x00004000
  100. #define AR6320V2_RX_MPDU_START_0_RETRY_LSB 14
  101. #define AR6320V2_RX_MPDU_START_0_RETRY_MASK 0x00004000
  102. #define AR6320V2_RX_MPDU_START_0_SEQ_NUM_LSB 16
  103. #define AR6320V2_RX_MPDU_START_0_SEQ_NUM_MASK 0x0fff0000
  104. #define AR6320V2_RX_MPDU_START_2_PN_47_32_LSB 0
  105. #define AR6320V2_RX_MPDU_START_2_PN_47_32_MASK 0x0000ffff
  106. #define AR6320V2_RX_MPDU_START_2_TID_LSB 28
  107. #define AR6320V2_RX_MPDU_START_2_TID_MASK 0xf0000000
  108. #define AR6320V2_RX_MSDU_END_1_EXT_WAPI_PN_63_48_LSB 16
  109. #define AR6320V2_RX_MSDU_END_1_EXT_WAPI_PN_63_48_MASK 0xffff0000
  110. #define AR6320V2_RX_MSDU_END_4_LAST_MSDU_LSB 15
  111. #define AR6320V2_RX_MSDU_END_4_LAST_MSDU_MASK 0x00008000
  112. #define AR6320V2_RX_ATTENTION_0_MCAST_BCAST_LSB 2
  113. #define AR6320V2_RX_ATTENTION_0_MCAST_BCAST_MASK 0x00000004
  114. #define AR6320V2_RX_ATTENTION_0_FRAGMENT_LSB 13
  115. #define AR6320V2_RX_ATTENTION_0_FRAGMENT_MASK 0x00002000
  116. #define AR6320V2_RX_ATTENTION_0_MPDU_LENGTH_ERR_MASK 0x08000000
  117. #define AR6320V2_RX_FRAG_INFO_0_RING2_MORE_COUNT_LSB 16
  118. #define AR6320V2_RX_FRAG_INFO_0_RING2_MORE_COUNT_MASK 0x00ff0000
  119. #define AR6320V2_RX_MSDU_START_0_MSDU_LENGTH_LSB 0
  120. #define AR6320V2_RX_MSDU_START_0_MSDU_LENGTH_MASK 0x00003fff
  121. #define AR6320V2_RX_MSDU_START_2_DECAP_FORMAT_OFFSET 0x00000008
  122. #define AR6320V2_RX_MSDU_START_2_DECAP_FORMAT_LSB 8
  123. #define AR6320V2_RX_MSDU_START_2_DECAP_FORMAT_MASK 0x00000300
  124. #define AR6320V2_RX_MPDU_START_0_ENCRYPTED_LSB 13
  125. #define AR6320V2_RX_MPDU_START_0_ENCRYPTED_MASK 0x00002000
  126. #define AR6320V2_RX_ATTENTION_0_MORE_DATA_MASK 0x00000400
  127. #define AR6320V2_RX_ATTENTION_0_MSDU_DONE_MASK 0x80000000
  128. #define AR6320V2_RX_ATTENTION_0_TCP_UDP_CHKSUM_FAIL_MASK 0x00040000
  129. #define AR6320V2_DST_WR_INDEX_ADDRESS 0x0040
  130. #define AR6320V2_SRC_WATERMARK_ADDRESS 0x004c
  131. #define AR6320V2_SRC_WATERMARK_LOW_MASK 0xffff0000
  132. #define AR6320V2_SRC_WATERMARK_HIGH_MASK 0x0000ffff
  133. #define AR6320V2_DST_WATERMARK_LOW_MASK 0xffff0000
  134. #define AR6320V2_DST_WATERMARK_HIGH_MASK 0x0000ffff
  135. #define AR6320V2_CURRENT_SRRI_ADDRESS 0x0044
  136. #define AR6320V2_CURRENT_DRRI_ADDRESS 0x0048
  137. #define AR6320V2_HOST_IS_SRC_RING_HIGH_WATERMARK_MASK 0x00000002
  138. #define AR6320V2_HOST_IS_SRC_RING_LOW_WATERMARK_MASK 0x00000004
  139. #define AR6320V2_HOST_IS_DST_RING_HIGH_WATERMARK_MASK 0x00000008
  140. #define AR6320V2_HOST_IS_DST_RING_LOW_WATERMARK_MASK 0x00000010
  141. #define AR6320V2_HOST_IS_ADDRESS 0x0030
  142. #define AR6320V2_HOST_IS_COPY_COMPLETE_MASK 0x00000001
  143. #define AR6320V2_HOST_IE_ADDRESS 0x002c
  144. #define AR6320V2_HOST_IE_COPY_COMPLETE_MASK 0x00000001
  145. #define AR6320V2_SR_BA_ADDRESS 0x0000
  146. #define AR6320V2_SR_SIZE_ADDRESS 0x0004
  147. #define AR6320V2_DR_BA_ADDRESS 0x0008
  148. #define AR6320V2_DR_SIZE_ADDRESS 0x000c
  149. #define AR6320V2_MISC_IE_ADDRESS 0x0034
  150. #define AR6320V2_MISC_IS_AXI_ERR_MASK 0x00000400
  151. #define AR6320V2_MISC_IS_DST_ADDR_ERR_MASK 0x00000200
  152. #define AR6320V2_MISC_IS_SRC_LEN_ERR_MASK 0x00000100
  153. #define AR6320V2_MISC_IS_DST_MAX_LEN_VIO_MASK 0x00000080
  154. #define AR6320V2_MISC_IS_DST_RING_OVERFLOW_MASK 0x00000040
  155. #define AR6320V2_MISC_IS_SRC_RING_OVERFLOW_MASK 0x00000020
  156. #define AR6320V2_SRC_WATERMARK_LOW_LSB 16
  157. #define AR6320V2_SRC_WATERMARK_HIGH_LSB 0
  158. #define AR6320V2_DST_WATERMARK_LOW_LSB 16
  159. #define AR6320V2_DST_WATERMARK_HIGH_LSB 0
  160. #define AR6320V2_SOC_GLOBAL_RESET_ADDRESS 0x0008
  161. #define AR6320V2_RTC_STATE_ADDRESS 0x0000
  162. #define AR6320V2_RTC_STATE_COLD_RESET_MASK 0x00002000
  163. #define AR6320V2_RTC_STATE_V_MASK 0x00000007
  164. #define AR6320V2_RTC_STATE_V_LSB 0
  165. #define AR6320V2_RTC_STATE_V_ON 3
  166. #define AR6320V2_FW_IND_EVENT_PENDING 1
  167. #define AR6320V2_FW_IND_INITIALIZED 2
  168. #define AR6320V2_CPU_INTR_ADDRESS 0x0010
  169. #define AR6320V2_SOC_LF_TIMER_CONTROL0_ADDRESS 0x00000050
  170. #define AR6320V2_SOC_LF_TIMER_CONTROL0_ENABLE_MASK 0x00000004
  171. #define AR6320V2_SOC_RESET_CONTROL_ADDRESS 0x00000000
  172. #define AR6320V2_SOC_RESET_CONTROL_CPU_WARM_RST_MASK 0x00000040
  173. #define AR6320V2_CORE_CTRL_ADDRESS 0x0000
  174. #define AR6320V2_CORE_CTRL_CPU_INTR_MASK 0x00002000
  175. #define AR6320V2_LOCAL_SCRATCH_OFFSET 0x000000c0
  176. #define AR6320V2_CLOCK_GPIO_OFFSET 0xffffffff
  177. #define AR6320V2_CLOCK_GPIO_BT_CLK_OUT_EN_LSB 0
  178. #define AR6320V2_CLOCK_GPIO_BT_CLK_OUT_EN_MASK 0
  179. #define AR6320V2_SOC_CHIP_ID_ADDRESS 0x000000f0
  180. #define AR6320V2_SOC_CHIP_ID_VERSION_MASK 0xfffc0000
  181. #define AR6320V2_SOC_CHIP_ID_VERSION_LSB 18
  182. #define AR6320V2_SOC_CHIP_ID_REVISION_MASK 0x00000f00
  183. #define AR6320V2_SOC_CHIP_ID_REVISION_LSB 8
  184. #if defined(HIF_PCI) || defined(HIF_SNOC) || defined(HIF_AHB)
  185. #define AR6320V2_CE_WRAPPER_BASE_ADDRESS 0x00034000
  186. #define AR6320V2_CE0_BASE_ADDRESS 0x00034400
  187. #define AR6320V2_CE1_BASE_ADDRESS 0x00034800
  188. #define AR6320V2_CE2_BASE_ADDRESS 0x00034c00
  189. #define AR6320V2_CE3_BASE_ADDRESS 0x00035000
  190. #define AR6320V2_CE4_BASE_ADDRESS 0x00035400
  191. #define AR6320V2_CE5_BASE_ADDRESS 0x00035800
  192. #define AR6320V2_CE6_BASE_ADDRESS 0x00035c00
  193. #define AR6320V2_CE7_BASE_ADDRESS 0x00036000
  194. #define AR6320V2_WLAN_ANALOG_INTF_PCIE_BASE_ADDRESS 0x00007800
  195. #define AR6320V2_CE_CTRL1_ADDRESS 0x0010
  196. #define AR6320V2_CE_CTRL1_DMAX_LENGTH_MASK 0x0000ffff
  197. #define AR6320V2_CE_WRAPPER_INTERRUPT_SUMMARY_ADDRESS 0x0000
  198. #define AR6320V2_CE_WRAPPER_INTERRUPT_SUMMARY_HOST_MSI_MASK 0x0000ff00
  199. #define AR6320V2_CE_WRAPPER_INTERRUPT_SUMMARY_HOST_MSI_LSB 8
  200. #define AR6320V2_CE_CTRL1_DMAX_LENGTH_LSB 0
  201. #define AR6320V2_CE_CTRL1_SRC_RING_BYTE_SWAP_EN_MASK 0x00010000
  202. #define AR6320V2_CE_CTRL1_DST_RING_BYTE_SWAP_EN_MASK 0x00020000
  203. #define AR6320V2_CE_CTRL1_SRC_RING_BYTE_SWAP_EN_LSB 16
  204. #define AR6320V2_CE_CTRL1_DST_RING_BYTE_SWAP_EN_LSB 17
  205. #define AR6320V2_SOC_RESET_CONTROL_PCIE_RST_SHORT_OVRD_MASK 0x00000020
  206. #define AR6320V2_SOC_RESET_CONTROL_PCIE_RST_SHORT_OVRD_LSB 5
  207. #define AR6320V2_PCIE_SOC_WAKE_RESET 0x00000000
  208. #define AR6320V2_PCIE_SOC_WAKE_ADDRESS 0x0004
  209. #define AR6320V2_PCIE_SOC_WAKE_V_MASK 0x00000001
  210. #define AR6320V2_MUX_ID_MASK 0x0000
  211. #define AR6320V2_TRANSACTION_ID_MASK 0x3fff
  212. #define AR6320V2_PCIE_LOCAL_BASE_ADDRESS 0x80000
  213. #define AR6320V2_FW_IND_HELPER 4
  214. #define AR6320V2_PCIE_INTR_ENABLE_ADDRESS 0x0008
  215. #define AR6320V2_PCIE_INTR_CLR_ADDRESS 0x0014
  216. #define AR6320V2_PCIE_INTR_FIRMWARE_MASK 0x00000400
  217. #define AR6320V2_PCIE_INTR_CE0_MASK 0x00000800
  218. #define AR6320V2_PCIE_INTR_CE_MASK_ALL 0x0007f800
  219. #define AR6320V2_PCIE_INTR_CAUSE_ADDRESS 0x000c
  220. #define AR6320V2_SOC_RESET_CONTROL_CE_RST_MASK 0x00000001
  221. #define AR6320V2_SOC_POWER_REG_OFFSET 0x0000010c
  222. /* Copy Engine Debug */
  223. #define AR6320V2_WLAN_DEBUG_INPUT_SEL_OFFSET 0x0000010c
  224. #define AR6320V2_WLAN_DEBUG_INPUT_SEL_SRC_MSB 3
  225. #define AR6320V2_WLAN_DEBUG_INPUT_SEL_SRC_LSB 0
  226. #define AR6320V2_WLAN_DEBUG_INPUT_SEL_SRC_MASK 0x0000000f
  227. #define AR6320V2_WLAN_DEBUG_CONTROL_OFFSET 0x00000108
  228. #define AR6320V2_WLAN_DEBUG_CONTROL_ENABLE_MSB 0
  229. #define AR6320V2_WLAN_DEBUG_CONTROL_ENABLE_LSB 0
  230. #define AR6320V2_WLAN_DEBUG_CONTROL_ENABLE_MASK 0x00000001
  231. #define AR6320V2_WLAN_DEBUG_OUT_OFFSET 0x00000110
  232. #define AR6320V2_WLAN_DEBUG_OUT_DATA_MSB 19
  233. #define AR6320V2_WLAN_DEBUG_OUT_DATA_LSB 0
  234. #define AR6320V2_WLAN_DEBUG_OUT_DATA_MASK 0x000fffff
  235. #define AR6320V2_AMBA_DEBUG_BUS_OFFSET 0x0000011c
  236. #define AR6320V2_AMBA_DEBUG_BUS_PCIE_DEBUG_SEL_MSB 13
  237. #define AR6320V2_AMBA_DEBUG_BUS_PCIE_DEBUG_SEL_LSB 8
  238. #define AR6320V2_AMBA_DEBUG_BUS_PCIE_DEBUG_SEL_MASK 0x00003f00
  239. #define AR6320V2_AMBA_DEBUG_BUS_SEL_MSB 4
  240. #define AR6320V2_AMBA_DEBUG_BUS_SEL_LSB 0
  241. #define AR6320V2_AMBA_DEBUG_BUS_SEL_MASK 0x0000001f
  242. #define AR6320V2_CE_WRAPPER_DEBUG_OFFSET 0x0008
  243. #define AR6320V2_CE_WRAPPER_DEBUG_SEL_MSB 5
  244. #define AR6320V2_CE_WRAPPER_DEBUG_SEL_LSB 0
  245. #define AR6320V2_CE_WRAPPER_DEBUG_SEL_MASK 0x0000003f
  246. #define AR6320V2_CE_DEBUG_OFFSET 0x0054
  247. #define AR6320V2_CE_DEBUG_SEL_MSB 5
  248. #define AR6320V2_CE_DEBUG_SEL_LSB 0
  249. #define AR6320V2_CE_DEBUG_SEL_MASK 0x0000003f
  250. /* End */
  251. /* PLL start */
  252. #define AR6320V2_EFUSE_OFFSET 0x0000032c
  253. #define AR6320V2_EFUSE_XTAL_SEL_MSB 10
  254. #define AR6320V2_EFUSE_XTAL_SEL_LSB 8
  255. #define AR6320V2_EFUSE_XTAL_SEL_MASK 0x00000700
  256. #define AR6320V2_BB_PLL_CONFIG_OFFSET 0x000002f4
  257. #define AR6320V2_BB_PLL_CONFIG_OUTDIV_MSB 20
  258. #define AR6320V2_BB_PLL_CONFIG_OUTDIV_LSB 18
  259. #define AR6320V2_BB_PLL_CONFIG_OUTDIV_MASK 0x001c0000
  260. #define AR6320V2_BB_PLL_CONFIG_FRAC_MSB 17
  261. #define AR6320V2_BB_PLL_CONFIG_FRAC_LSB 0
  262. #define AR6320V2_BB_PLL_CONFIG_FRAC_MASK 0x0003ffff
  263. #define AR6320V2_WLAN_PLL_SETTLE_TIME_MSB 10
  264. #define AR6320V2_WLAN_PLL_SETTLE_TIME_LSB 0
  265. #define AR6320V2_WLAN_PLL_SETTLE_TIME_MASK 0x000007ff
  266. #define AR6320V2_WLAN_PLL_SETTLE_OFFSET 0x0018
  267. #define AR6320V2_WLAN_PLL_SETTLE_SW_MASK 0x000007ff
  268. #define AR6320V2_WLAN_PLL_SETTLE_RSTMASK 0xffffffff
  269. #define AR6320V2_WLAN_PLL_SETTLE_RESET 0x00000400
  270. #define AR6320V2_WLAN_PLL_CONTROL_NOPWD_MSB 18
  271. #define AR6320V2_WLAN_PLL_CONTROL_NOPWD_LSB 18
  272. #define AR6320V2_WLAN_PLL_CONTROL_NOPWD_MASK 0x00040000
  273. #define AR6320V2_WLAN_PLL_CONTROL_BYPASS_MSB 16
  274. #define AR6320V2_WLAN_PLL_CONTROL_BYPASS_LSB 16
  275. #define AR6320V2_WLAN_PLL_CONTROL_BYPASS_MASK 0x00010000
  276. #define AR6320V2_WLAN_PLL_CONTROL_BYPASS_RESET 0x1
  277. #define AR6320V2_WLAN_PLL_CONTROL_CLK_SEL_MSB 15
  278. #define AR6320V2_WLAN_PLL_CONTROL_CLK_SEL_LSB 14
  279. #define AR6320V2_WLAN_PLL_CONTROL_CLK_SEL_MASK 0x0000c000
  280. #define AR6320V2_WLAN_PLL_CONTROL_CLK_SEL_RESET 0x0
  281. #define AR6320V2_WLAN_PLL_CONTROL_REFDIV_MSB 13
  282. #define AR6320V2_WLAN_PLL_CONTROL_REFDIV_LSB 10
  283. #define AR6320V2_WLAN_PLL_CONTROL_REFDIV_MASK 0x00003c00
  284. #define AR6320V2_WLAN_PLL_CONTROL_REFDIV_RESET 0x0
  285. #define AR6320V2_WLAN_PLL_CONTROL_DIV_MSB 9
  286. #define AR6320V2_WLAN_PLL_CONTROL_DIV_LSB 0
  287. #define AR6320V2_WLAN_PLL_CONTROL_DIV_MASK 0x000003ff
  288. #define AR6320V2_WLAN_PLL_CONTROL_DIV_RESET 0x11
  289. #define AR6320V2_WLAN_PLL_CONTROL_OFFSET 0x0014
  290. #define AR6320V2_WLAN_PLL_CONTROL_SW_MASK 0x001fffff
  291. #define AR6320V2_WLAN_PLL_CONTROL_RSTMASK 0xffffffff
  292. #define AR6320V2_WLAN_PLL_CONTROL_RESET 0x00010011
  293. #define AR6320V2_SOC_CORE_CLK_CTRL_OFFSET 0x00000114
  294. #define AR6320V2_SOC_CORE_CLK_CTRL_DIV_MSB 2
  295. #define AR6320V2_SOC_CORE_CLK_CTRL_DIV_LSB 0
  296. #define AR6320V2_SOC_CORE_CLK_CTRL_DIV_MASK 0x00000007
  297. #define AR6320V2_RTC_SYNC_STATUS_PLL_CHANGING_MSB 5
  298. #define AR6320V2_RTC_SYNC_STATUS_PLL_CHANGING_LSB 5
  299. #define AR6320V2_RTC_SYNC_STATUS_PLL_CHANGING_MASK 0x00000020
  300. #define AR6320V2_RTC_SYNC_STATUS_PLL_CHANGING_RESET 0x0
  301. #define AR6320V2_RTC_SYNC_STATUS_OFFSET 0x0244
  302. #define AR6320V2_SOC_CPU_CLOCK_OFFSET 0x00000020
  303. #define AR6320V2_SOC_CPU_CLOCK_STANDARD_MSB 1
  304. #define AR6320V2_SOC_CPU_CLOCK_STANDARD_LSB 0
  305. #define AR6320V2_SOC_CPU_CLOCK_STANDARD_MASK 0x00000003
  306. /* PLL end */
  307. #define AR6320V2_PCIE_INTR_CE_MASK(n) \
  308. (AR6320V2_PCIE_INTR_CE0_MASK << (n))
  309. #endif
  310. #define AR6320V2_DRAM_BASE_ADDRESS AR6320V2_TARG_DRAM_START
  311. #define AR6320V2_FW_INDICATOR_ADDRESS \
  312. (AR6320V2_SOC_CORE_BASE_ADDRESS + AR6320V2_SCRATCH_3_ADDRESS)
  313. #define AR6320V2_SYSTEM_SLEEP_OFFSET AR6320V2_SOC_SYSTEM_SLEEP_OFFSET
  314. #define AR6320V2_WLAN_SYSTEM_SLEEP_OFFSET 0x002c
  315. #define AR6320V2_WLAN_RESET_CONTROL_OFFSET AR6320V2_SOC_RESET_CONTROL_OFFSET
  316. #define AR6320V2_CLOCK_CONTROL_OFFSET AR6320V2_SOC_CLOCK_CONTROL_OFFSET
  317. #define AR6320V2_CLOCK_CONTROL_SI0_CLK_MASK \
  318. AR6320V2_SOC_CLOCK_CONTROL_SI0_CLK_MASK
  319. #define AR6320V2_RESET_CONTROL_MBOX_RST_MASK 0x00000004
  320. #define AR6320V2_RESET_CONTROL_SI0_RST_MASK \
  321. AR6320V2_SOC_RESET_CONTROL_SI0_RST_MASK
  322. #define AR6320V2_GPIO_BASE_ADDRESS AR6320V2_WLAN_GPIO_BASE_ADDRESS
  323. #define AR6320V2_GPIO_PIN0_OFFSET AR6320V2_WLAN_GPIO_PIN0_ADDRESS
  324. #define AR6320V2_GPIO_PIN1_OFFSET AR6320V2_WLAN_GPIO_PIN1_ADDRESS
  325. #define AR6320V2_GPIO_PIN0_CONFIG_MASK AR6320V2_WLAN_GPIO_PIN0_CONFIG_MASK
  326. #define AR6320V2_GPIO_PIN1_CONFIG_MASK AR6320V2_WLAN_GPIO_PIN1_CONFIG_MASK
  327. #define AR6320V2_SI_BASE_ADDRESS 0x00050000
  328. #define AR6320V2_CPU_CLOCK_OFFSET AR6320V2_SOC_CPU_CLOCK_OFFSET
  329. #define AR6320V2_LPO_CAL_OFFSET AR6320V2_SOC_LPO_CAL_OFFSET
  330. #define AR6320V2_GPIO_PIN10_OFFSET AR6320V2_WLAN_GPIO_PIN10_ADDRESS
  331. #define AR6320V2_GPIO_PIN11_OFFSET AR6320V2_WLAN_GPIO_PIN11_ADDRESS
  332. #define AR6320V2_GPIO_PIN12_OFFSET AR6320V2_WLAN_GPIO_PIN12_ADDRESS
  333. #define AR6320V2_GPIO_PIN13_OFFSET AR6320V2_WLAN_GPIO_PIN13_ADDRESS
  334. #define AR6320V2_CPU_CLOCK_STANDARD_LSB AR6320V2_SOC_CPU_CLOCK_STANDARD_LSB
  335. #define AR6320V2_CPU_CLOCK_STANDARD_MASK AR6320V2_SOC_CPU_CLOCK_STANDARD_MASK
  336. #define AR6320V2_LPO_CAL_ENABLE_LSB AR6320V2_SOC_LPO_CAL_ENABLE_LSB
  337. #define AR6320V2_LPO_CAL_ENABLE_MASK AR6320V2_SOC_LPO_CAL_ENABLE_MASK
  338. #define AR6320V2_ANALOG_INTF_BASE_ADDRESS \
  339. AR6320V2_WLAN_ANALOG_INTF_BASE_ADDRESS
  340. #define AR6320V2_MBOX_BASE_ADDRESS 0x00008000
  341. #define AR6320V2_INT_STATUS_ENABLE_ERROR_LSB 7
  342. #define AR6320V2_INT_STATUS_ENABLE_ERROR_MASK 0x00000080
  343. #define AR6320V2_INT_STATUS_ENABLE_CPU_LSB 6
  344. #define AR6320V2_INT_STATUS_ENABLE_CPU_MASK 0x00000040
  345. #define AR6320V2_INT_STATUS_ENABLE_COUNTER_LSB 4
  346. #define AR6320V2_INT_STATUS_ENABLE_COUNTER_MASK 0x00000010
  347. #define AR6320V2_INT_STATUS_ENABLE_MBOX_DATA_LSB 0
  348. #define AR6320V2_INT_STATUS_ENABLE_MBOX_DATA_MASK 0x0000000f
  349. #define AR6320V2_ERROR_STATUS_ENABLE_RX_UNDERFLOW_LSB 17
  350. #define AR6320V2_ERROR_STATUS_ENABLE_RX_UNDERFLOW_MASK 0x00020000
  351. #define AR6320V2_ERROR_STATUS_ENABLE_TX_OVERFLOW_LSB 16
  352. #define AR6320V2_ERROR_STATUS_ENABLE_TX_OVERFLOW_MASK 0x00010000
  353. #define AR6320V2_COUNTER_INT_STATUS_ENABLE_BIT_LSB 24
  354. #define AR6320V2_COUNTER_INT_STATUS_ENABLE_BIT_MASK 0xff000000
  355. #define AR6320V2_INT_STATUS_ENABLE_ADDRESS 0x0828
  356. #define AR6320V2_CPU_INT_STATUS_ENABLE_BIT_LSB 8
  357. #define AR6320V2_CPU_INT_STATUS_ENABLE_BIT_MASK 0x0000ff00
  358. #define AR6320V2_HOST_INT_STATUS_ADDRESS 0x0800
  359. #define AR6320V2_CPU_INT_STATUS_ADDRESS 0x0801
  360. #define AR6320V2_ERROR_INT_STATUS_ADDRESS 0x0802
  361. #define AR6320V2_ERROR_INT_STATUS_WAKEUP_MASK 0x00040000
  362. #define AR6320V2_ERROR_INT_STATUS_WAKEUP_LSB 18
  363. #define AR6320V2_ERROR_INT_STATUS_RX_UNDERFLOW_MASK 0x00020000
  364. #define AR6320V2_ERROR_INT_STATUS_RX_UNDERFLOW_LSB 17
  365. #define AR6320V2_ERROR_INT_STATUS_TX_OVERFLOW_MASK 0x00010000
  366. #define AR6320V2_ERROR_INT_STATUS_TX_OVERFLOW_LSB 16
  367. #define AR6320V2_COUNT_DEC_ADDRESS 0x0840
  368. #define AR6320V2_HOST_INT_STATUS_CPU_MASK 0x00000040
  369. #define AR6320V2_HOST_INT_STATUS_CPU_LSB 6
  370. #define AR6320V2_HOST_INT_STATUS_ERROR_MASK 0x00000080
  371. #define AR6320V2_HOST_INT_STATUS_ERROR_LSB 7
  372. #define AR6320V2_HOST_INT_STATUS_COUNTER_MASK 0x00000010
  373. #define AR6320V2_HOST_INT_STATUS_COUNTER_LSB 4
  374. #define AR6320V2_RX_LOOKAHEAD_VALID_ADDRESS 0x0805
  375. #define AR6320V2_WINDOW_DATA_ADDRESS 0x0874
  376. #define AR6320V2_WINDOW_READ_ADDR_ADDRESS 0x087c
  377. #define AR6320V2_WINDOW_WRITE_ADDR_ADDRESS 0x0878
  378. #define AR6320V2_HOST_INT_STATUS_MBOX_DATA_MASK 0x0f
  379. #define AR6320V2_HOST_INT_STATUS_MBOX_DATA_LSB 0
  380. struct targetdef_s ar6320v2_targetdef = {
  381. .d_RTC_SOC_BASE_ADDRESS = AR6320V2_RTC_SOC_BASE_ADDRESS,
  382. .d_RTC_WMAC_BASE_ADDRESS = AR6320V2_RTC_WMAC_BASE_ADDRESS,
  383. .d_SYSTEM_SLEEP_OFFSET = AR6320V2_WLAN_SYSTEM_SLEEP_OFFSET,
  384. .d_WLAN_SYSTEM_SLEEP_OFFSET = AR6320V2_WLAN_SYSTEM_SLEEP_OFFSET,
  385. .d_WLAN_SYSTEM_SLEEP_DISABLE_LSB =
  386. AR6320V2_WLAN_SYSTEM_SLEEP_DISABLE_LSB,
  387. .d_WLAN_SYSTEM_SLEEP_DISABLE_MASK =
  388. AR6320V2_WLAN_SYSTEM_SLEEP_DISABLE_MASK,
  389. .d_CLOCK_CONTROL_OFFSET = AR6320V2_CLOCK_CONTROL_OFFSET,
  390. .d_CLOCK_CONTROL_SI0_CLK_MASK = AR6320V2_CLOCK_CONTROL_SI0_CLK_MASK,
  391. .d_RESET_CONTROL_OFFSET = AR6320V2_SOC_RESET_CONTROL_OFFSET,
  392. .d_RESET_CONTROL_MBOX_RST_MASK = AR6320V2_RESET_CONTROL_MBOX_RST_MASK,
  393. .d_RESET_CONTROL_SI0_RST_MASK = AR6320V2_RESET_CONTROL_SI0_RST_MASK,
  394. .d_WLAN_RESET_CONTROL_OFFSET = AR6320V2_WLAN_RESET_CONTROL_OFFSET,
  395. .d_WLAN_RESET_CONTROL_COLD_RST_MASK =
  396. AR6320V2_WLAN_RESET_CONTROL_COLD_RST_MASK,
  397. .d_WLAN_RESET_CONTROL_WARM_RST_MASK =
  398. AR6320V2_WLAN_RESET_CONTROL_WARM_RST_MASK,
  399. .d_GPIO_BASE_ADDRESS = AR6320V2_GPIO_BASE_ADDRESS,
  400. .d_GPIO_PIN0_OFFSET = AR6320V2_GPIO_PIN0_OFFSET,
  401. .d_GPIO_PIN1_OFFSET = AR6320V2_GPIO_PIN1_OFFSET,
  402. .d_GPIO_PIN0_CONFIG_MASK = AR6320V2_GPIO_PIN0_CONFIG_MASK,
  403. .d_GPIO_PIN1_CONFIG_MASK = AR6320V2_GPIO_PIN1_CONFIG_MASK,
  404. .d_SI_CONFIG_BIDIR_OD_DATA_LSB = AR6320V2_SI_CONFIG_BIDIR_OD_DATA_LSB,
  405. .d_SI_CONFIG_BIDIR_OD_DATA_MASK =
  406. AR6320V2_SI_CONFIG_BIDIR_OD_DATA_MASK,
  407. .d_SI_CONFIG_I2C_LSB = AR6320V2_SI_CONFIG_I2C_LSB,
  408. .d_SI_CONFIG_I2C_MASK = AR6320V2_SI_CONFIG_I2C_MASK,
  409. .d_SI_CONFIG_POS_SAMPLE_LSB = AR6320V2_SI_CONFIG_POS_SAMPLE_LSB,
  410. .d_SI_CONFIG_POS_SAMPLE_MASK = AR6320V2_SI_CONFIG_POS_SAMPLE_MASK,
  411. .d_SI_CONFIG_INACTIVE_CLK_LSB = AR6320V2_SI_CONFIG_INACTIVE_CLK_LSB,
  412. .d_SI_CONFIG_INACTIVE_CLK_MASK = AR6320V2_SI_CONFIG_INACTIVE_CLK_MASK,
  413. .d_SI_CONFIG_INACTIVE_DATA_LSB = AR6320V2_SI_CONFIG_INACTIVE_DATA_LSB,
  414. .d_SI_CONFIG_INACTIVE_DATA_MASK =
  415. AR6320V2_SI_CONFIG_INACTIVE_DATA_MASK,
  416. .d_SI_CONFIG_DIVIDER_LSB = AR6320V2_SI_CONFIG_DIVIDER_LSB,
  417. .d_SI_CONFIG_DIVIDER_MASK = AR6320V2_SI_CONFIG_DIVIDER_MASK,
  418. .d_SI_BASE_ADDRESS = AR6320V2_SI_BASE_ADDRESS,
  419. .d_SI_CONFIG_OFFSET = AR6320V2_SI_CONFIG_OFFSET,
  420. .d_SI_TX_DATA0_OFFSET = AR6320V2_SI_TX_DATA0_OFFSET,
  421. .d_SI_TX_DATA1_OFFSET = AR6320V2_SI_TX_DATA1_OFFSET,
  422. .d_SI_RX_DATA0_OFFSET = AR6320V2_SI_RX_DATA0_OFFSET,
  423. .d_SI_RX_DATA1_OFFSET = AR6320V2_SI_RX_DATA1_OFFSET,
  424. .d_SI_CS_OFFSET = AR6320V2_SI_CS_OFFSET,
  425. .d_SI_CS_DONE_ERR_MASK = AR6320V2_SI_CS_DONE_ERR_MASK,
  426. .d_SI_CS_DONE_INT_MASK = AR6320V2_SI_CS_DONE_INT_MASK,
  427. .d_SI_CS_START_LSB = AR6320V2_SI_CS_START_LSB,
  428. .d_SI_CS_START_MASK = AR6320V2_SI_CS_START_MASK,
  429. .d_SI_CS_RX_CNT_LSB = AR6320V2_SI_CS_RX_CNT_LSB,
  430. .d_SI_CS_RX_CNT_MASK = AR6320V2_SI_CS_RX_CNT_MASK,
  431. .d_SI_CS_TX_CNT_LSB = AR6320V2_SI_CS_TX_CNT_LSB,
  432. .d_SI_CS_TX_CNT_MASK = AR6320V2_SI_CS_TX_CNT_MASK,
  433. .d_BOARD_DATA_SZ = AR6320_BOARD_DATA_SZ,
  434. .d_BOARD_EXT_DATA_SZ = AR6320_BOARD_EXT_DATA_SZ,
  435. .d_MBOX_BASE_ADDRESS = AR6320V2_MBOX_BASE_ADDRESS,
  436. .d_LOCAL_SCRATCH_OFFSET = AR6320V2_LOCAL_SCRATCH_OFFSET,
  437. .d_CPU_CLOCK_OFFSET = AR6320V2_CPU_CLOCK_OFFSET,
  438. .d_LPO_CAL_OFFSET = AR6320V2_LPO_CAL_OFFSET,
  439. .d_GPIO_PIN10_OFFSET = AR6320V2_GPIO_PIN10_OFFSET,
  440. .d_GPIO_PIN11_OFFSET = AR6320V2_GPIO_PIN11_OFFSET,
  441. .d_GPIO_PIN12_OFFSET = AR6320V2_GPIO_PIN12_OFFSET,
  442. .d_GPIO_PIN13_OFFSET = AR6320V2_GPIO_PIN13_OFFSET,
  443. .d_CLOCK_GPIO_OFFSET = AR6320V2_CLOCK_GPIO_OFFSET,
  444. .d_CPU_CLOCK_STANDARD_LSB = AR6320V2_CPU_CLOCK_STANDARD_LSB,
  445. .d_CPU_CLOCK_STANDARD_MASK = AR6320V2_CPU_CLOCK_STANDARD_MASK,
  446. .d_LPO_CAL_ENABLE_LSB = AR6320V2_LPO_CAL_ENABLE_LSB,
  447. .d_LPO_CAL_ENABLE_MASK = AR6320V2_LPO_CAL_ENABLE_MASK,
  448. .d_CLOCK_GPIO_BT_CLK_OUT_EN_LSB =
  449. AR6320V2_CLOCK_GPIO_BT_CLK_OUT_EN_LSB,
  450. .d_CLOCK_GPIO_BT_CLK_OUT_EN_MASK =
  451. AR6320V2_CLOCK_GPIO_BT_CLK_OUT_EN_MASK,
  452. .d_ANALOG_INTF_BASE_ADDRESS = AR6320V2_ANALOG_INTF_BASE_ADDRESS,
  453. .d_WLAN_MAC_BASE_ADDRESS = AR6320V2_WLAN_MAC_BASE_ADDRESS,
  454. .d_FW_INDICATOR_ADDRESS = AR6320V2_FW_INDICATOR_ADDRESS,
  455. .d_DRAM_BASE_ADDRESS = AR6320V2_DRAM_BASE_ADDRESS,
  456. .d_SOC_CORE_BASE_ADDRESS = AR6320V2_SOC_CORE_BASE_ADDRESS,
  457. .d_CORE_CTRL_ADDRESS = AR6320V2_CORE_CTRL_ADDRESS,
  458. #if defined(HIF_PCI) || defined(HIF_SNOC) || defined(HIF_AHB)
  459. .d_MSI_NUM_REQUEST = MSI_NUM_REQUEST,
  460. .d_MSI_ASSIGN_FW = MSI_ASSIGN_FW,
  461. #endif
  462. .d_CORE_CTRL_CPU_INTR_MASK = AR6320V2_CORE_CTRL_CPU_INTR_MASK,
  463. .d_SR_WR_INDEX_ADDRESS = AR6320V2_SR_WR_INDEX_ADDRESS,
  464. .d_DST_WATERMARK_ADDRESS = AR6320V2_DST_WATERMARK_ADDRESS,
  465. /* htt_rx.c */
  466. .d_RX_MSDU_END_4_FIRST_MSDU_MASK =
  467. AR6320V2_RX_MSDU_END_4_FIRST_MSDU_MASK,
  468. .d_RX_MSDU_END_4_FIRST_MSDU_LSB =
  469. AR6320V2_RX_MSDU_END_4_FIRST_MSDU_LSB,
  470. .d_RX_MPDU_START_0_RETRY_MASK =
  471. AR6320V2_RX_MPDU_START_0_RETRY_MASK,
  472. .d_RX_MPDU_START_0_SEQ_NUM_MASK =
  473. AR6320V2_RX_MPDU_START_0_SEQ_NUM_MASK,
  474. .d_RX_MPDU_START_0_SEQ_NUM_MASK =
  475. AR6320V2_RX_MPDU_START_0_SEQ_NUM_MASK,
  476. .d_RX_MPDU_START_0_SEQ_NUM_LSB = AR6320V2_RX_MPDU_START_0_SEQ_NUM_LSB,
  477. .d_RX_MPDU_START_2_PN_47_32_LSB =
  478. AR6320V2_RX_MPDU_START_2_PN_47_32_LSB,
  479. .d_RX_MPDU_START_2_PN_47_32_MASK =
  480. AR6320V2_RX_MPDU_START_2_PN_47_32_MASK,
  481. .d_RX_MPDU_START_2_TID_LSB =
  482. AR6320V2_RX_MPDU_START_2_TID_LSB,
  483. .d_RX_MPDU_START_2_TID_MASK =
  484. AR6320V2_RX_MPDU_START_2_TID_MASK,
  485. .d_RX_MSDU_END_1_EXT_WAPI_PN_63_48_MASK =
  486. AR6320V2_RX_MSDU_END_1_EXT_WAPI_PN_63_48_MASK,
  487. .d_RX_MSDU_END_1_EXT_WAPI_PN_63_48_LSB =
  488. AR6320V2_RX_MSDU_END_1_EXT_WAPI_PN_63_48_LSB,
  489. .d_RX_MSDU_END_4_LAST_MSDU_MASK =
  490. AR6320V2_RX_MSDU_END_4_LAST_MSDU_MASK,
  491. .d_RX_MSDU_END_4_LAST_MSDU_LSB = AR6320V2_RX_MSDU_END_4_LAST_MSDU_LSB,
  492. .d_RX_ATTENTION_0_MCAST_BCAST_MASK =
  493. AR6320V2_RX_ATTENTION_0_MCAST_BCAST_MASK,
  494. .d_RX_ATTENTION_0_MCAST_BCAST_LSB =
  495. AR6320V2_RX_ATTENTION_0_MCAST_BCAST_LSB,
  496. .d_RX_ATTENTION_0_FRAGMENT_MASK =
  497. AR6320V2_RX_ATTENTION_0_FRAGMENT_MASK,
  498. .d_RX_ATTENTION_0_FRAGMENT_LSB = AR6320V2_RX_ATTENTION_0_FRAGMENT_LSB,
  499. .d_RX_ATTENTION_0_MPDU_LENGTH_ERR_MASK =
  500. AR6320V2_RX_ATTENTION_0_MPDU_LENGTH_ERR_MASK,
  501. .d_RX_FRAG_INFO_0_RING2_MORE_COUNT_MASK =
  502. AR6320V2_RX_FRAG_INFO_0_RING2_MORE_COUNT_MASK,
  503. .d_RX_FRAG_INFO_0_RING2_MORE_COUNT_LSB =
  504. AR6320V2_RX_FRAG_INFO_0_RING2_MORE_COUNT_LSB,
  505. .d_RX_MSDU_START_0_MSDU_LENGTH_MASK =
  506. AR6320V2_RX_MSDU_START_0_MSDU_LENGTH_MASK,
  507. .d_RX_MSDU_START_0_MSDU_LENGTH_LSB =
  508. AR6320V2_RX_MSDU_START_0_MSDU_LENGTH_LSB,
  509. .d_RX_MSDU_START_2_DECAP_FORMAT_OFFSET =
  510. AR6320V2_RX_MSDU_START_2_DECAP_FORMAT_OFFSET,
  511. .d_RX_MSDU_START_2_DECAP_FORMAT_MASK =
  512. AR6320V2_RX_MSDU_START_2_DECAP_FORMAT_MASK,
  513. .d_RX_MSDU_START_2_DECAP_FORMAT_LSB =
  514. AR6320V2_RX_MSDU_START_2_DECAP_FORMAT_LSB,
  515. .d_RX_MPDU_START_0_ENCRYPTED_MASK =
  516. AR6320V2_RX_MPDU_START_0_ENCRYPTED_MASK,
  517. .d_RX_MPDU_START_0_ENCRYPTED_LSB =
  518. AR6320V2_RX_MPDU_START_0_ENCRYPTED_LSB,
  519. .d_RX_ATTENTION_0_MORE_DATA_MASK =
  520. AR6320V2_RX_ATTENTION_0_MORE_DATA_MASK,
  521. .d_RX_ATTENTION_0_MSDU_DONE_MASK =
  522. AR6320V2_RX_ATTENTION_0_MSDU_DONE_MASK,
  523. .d_RX_ATTENTION_0_TCP_UDP_CHKSUM_FAIL_MASK =
  524. AR6320V2_RX_ATTENTION_0_TCP_UDP_CHKSUM_FAIL_MASK,
  525. #if defined(HIF_PCI) || defined(HIF_SNOC) || defined(HIF_AHB)
  526. .d_CE_COUNT = AR6320V2_CE_COUNT,
  527. .d_MSI_ASSIGN_CE_INITIAL = MSI_ASSIGN_CE_INITIAL,
  528. .d_PCIE_INTR_ENABLE_ADDRESS = AR6320V2_PCIE_INTR_ENABLE_ADDRESS,
  529. .d_PCIE_INTR_CLR_ADDRESS = AR6320V2_PCIE_INTR_CLR_ADDRESS,
  530. .d_PCIE_INTR_FIRMWARE_MASK = AR6320V2_PCIE_INTR_FIRMWARE_MASK,
  531. .d_PCIE_INTR_CE_MASK_ALL = AR6320V2_PCIE_INTR_CE_MASK_ALL,
  532. /* PLL start */
  533. .d_EFUSE_OFFSET = AR6320V2_EFUSE_OFFSET,
  534. .d_EFUSE_XTAL_SEL_MSB = AR6320V2_EFUSE_XTAL_SEL_MSB,
  535. .d_EFUSE_XTAL_SEL_LSB = AR6320V2_EFUSE_XTAL_SEL_LSB,
  536. .d_EFUSE_XTAL_SEL_MASK = AR6320V2_EFUSE_XTAL_SEL_MASK,
  537. .d_BB_PLL_CONFIG_OFFSET = AR6320V2_BB_PLL_CONFIG_OFFSET,
  538. .d_BB_PLL_CONFIG_OUTDIV_MSB = AR6320V2_BB_PLL_CONFIG_OUTDIV_MSB,
  539. .d_BB_PLL_CONFIG_OUTDIV_LSB = AR6320V2_BB_PLL_CONFIG_OUTDIV_LSB,
  540. .d_BB_PLL_CONFIG_OUTDIV_MASK = AR6320V2_BB_PLL_CONFIG_OUTDIV_MASK,
  541. .d_BB_PLL_CONFIG_FRAC_MSB = AR6320V2_BB_PLL_CONFIG_FRAC_MSB,
  542. .d_BB_PLL_CONFIG_FRAC_LSB = AR6320V2_BB_PLL_CONFIG_FRAC_LSB,
  543. .d_BB_PLL_CONFIG_FRAC_MASK = AR6320V2_BB_PLL_CONFIG_FRAC_MASK,
  544. .d_WLAN_PLL_SETTLE_TIME_MSB = AR6320V2_WLAN_PLL_SETTLE_TIME_MSB,
  545. .d_WLAN_PLL_SETTLE_TIME_LSB = AR6320V2_WLAN_PLL_SETTLE_TIME_LSB,
  546. .d_WLAN_PLL_SETTLE_TIME_MASK = AR6320V2_WLAN_PLL_SETTLE_TIME_MASK,
  547. .d_WLAN_PLL_SETTLE_OFFSET = AR6320V2_WLAN_PLL_SETTLE_OFFSET,
  548. .d_WLAN_PLL_SETTLE_SW_MASK = AR6320V2_WLAN_PLL_SETTLE_SW_MASK,
  549. .d_WLAN_PLL_SETTLE_RSTMASK = AR6320V2_WLAN_PLL_SETTLE_RSTMASK,
  550. .d_WLAN_PLL_SETTLE_RESET = AR6320V2_WLAN_PLL_SETTLE_RESET,
  551. .d_WLAN_PLL_CONTROL_NOPWD_MSB = AR6320V2_WLAN_PLL_CONTROL_NOPWD_MSB,
  552. .d_WLAN_PLL_CONTROL_NOPWD_LSB = AR6320V2_WLAN_PLL_CONTROL_NOPWD_LSB,
  553. .d_WLAN_PLL_CONTROL_NOPWD_MASK = AR6320V2_WLAN_PLL_CONTROL_NOPWD_MASK,
  554. .d_WLAN_PLL_CONTROL_BYPASS_MSB = AR6320V2_WLAN_PLL_CONTROL_BYPASS_MSB,
  555. .d_WLAN_PLL_CONTROL_BYPASS_LSB = AR6320V2_WLAN_PLL_CONTROL_BYPASS_LSB,
  556. .d_WLAN_PLL_CONTROL_BYPASS_MASK =
  557. AR6320V2_WLAN_PLL_CONTROL_BYPASS_MASK,
  558. .d_WLAN_PLL_CONTROL_BYPASS_RESET =
  559. AR6320V2_WLAN_PLL_CONTROL_BYPASS_RESET,
  560. .d_WLAN_PLL_CONTROL_CLK_SEL_MSB =
  561. AR6320V2_WLAN_PLL_CONTROL_CLK_SEL_MSB,
  562. .d_WLAN_PLL_CONTROL_CLK_SEL_LSB =
  563. AR6320V2_WLAN_PLL_CONTROL_CLK_SEL_LSB,
  564. .d_WLAN_PLL_CONTROL_CLK_SEL_MASK =
  565. AR6320V2_WLAN_PLL_CONTROL_CLK_SEL_MASK,
  566. .d_WLAN_PLL_CONTROL_CLK_SEL_RESET =
  567. AR6320V2_WLAN_PLL_CONTROL_CLK_SEL_RESET,
  568. .d_WLAN_PLL_CONTROL_REFDIV_MSB = AR6320V2_WLAN_PLL_CONTROL_REFDIV_MSB,
  569. .d_WLAN_PLL_CONTROL_REFDIV_LSB = AR6320V2_WLAN_PLL_CONTROL_REFDIV_LSB,
  570. .d_WLAN_PLL_CONTROL_REFDIV_MASK =
  571. AR6320V2_WLAN_PLL_CONTROL_REFDIV_MASK,
  572. .d_WLAN_PLL_CONTROL_REFDIV_RESET =
  573. AR6320V2_WLAN_PLL_CONTROL_REFDIV_RESET,
  574. .d_WLAN_PLL_CONTROL_DIV_MSB = AR6320V2_WLAN_PLL_CONTROL_DIV_MSB,
  575. .d_WLAN_PLL_CONTROL_DIV_LSB = AR6320V2_WLAN_PLL_CONTROL_DIV_LSB,
  576. .d_WLAN_PLL_CONTROL_DIV_MASK = AR6320V2_WLAN_PLL_CONTROL_DIV_MASK,
  577. .d_WLAN_PLL_CONTROL_DIV_RESET = AR6320V2_WLAN_PLL_CONTROL_DIV_RESET,
  578. .d_WLAN_PLL_CONTROL_OFFSET = AR6320V2_WLAN_PLL_CONTROL_OFFSET,
  579. .d_WLAN_PLL_CONTROL_SW_MASK = AR6320V2_WLAN_PLL_CONTROL_SW_MASK,
  580. .d_WLAN_PLL_CONTROL_RSTMASK = AR6320V2_WLAN_PLL_CONTROL_RSTMASK,
  581. .d_WLAN_PLL_CONTROL_RESET = AR6320V2_WLAN_PLL_CONTROL_RESET,
  582. .d_SOC_CORE_CLK_CTRL_OFFSET = AR6320V2_SOC_CORE_CLK_CTRL_OFFSET,
  583. .d_SOC_CORE_CLK_CTRL_DIV_MSB = AR6320V2_SOC_CORE_CLK_CTRL_DIV_MSB,
  584. .d_SOC_CORE_CLK_CTRL_DIV_LSB = AR6320V2_SOC_CORE_CLK_CTRL_DIV_LSB,
  585. .d_SOC_CORE_CLK_CTRL_DIV_MASK = AR6320V2_SOC_CORE_CLK_CTRL_DIV_MASK,
  586. .d_RTC_SYNC_STATUS_PLL_CHANGING_MSB =
  587. AR6320V2_RTC_SYNC_STATUS_PLL_CHANGING_MSB,
  588. .d_RTC_SYNC_STATUS_PLL_CHANGING_LSB =
  589. AR6320V2_RTC_SYNC_STATUS_PLL_CHANGING_LSB,
  590. .d_RTC_SYNC_STATUS_PLL_CHANGING_MASK =
  591. AR6320V2_RTC_SYNC_STATUS_PLL_CHANGING_MASK,
  592. .d_RTC_SYNC_STATUS_PLL_CHANGING_RESET =
  593. AR6320V2_RTC_SYNC_STATUS_PLL_CHANGING_RESET,
  594. .d_RTC_SYNC_STATUS_OFFSET = AR6320V2_RTC_SYNC_STATUS_OFFSET,
  595. .d_SOC_CPU_CLOCK_OFFSET = AR6320V2_SOC_CPU_CLOCK_OFFSET,
  596. .d_SOC_CPU_CLOCK_STANDARD_MSB = AR6320V2_SOC_CPU_CLOCK_STANDARD_MSB,
  597. .d_SOC_CPU_CLOCK_STANDARD_LSB = AR6320V2_SOC_CPU_CLOCK_STANDARD_LSB,
  598. .d_SOC_CPU_CLOCK_STANDARD_MASK = AR6320V2_SOC_CPU_CLOCK_STANDARD_MASK,
  599. /* PLL end */
  600. .d_SOC_POWER_REG_OFFSET = AR6320V2_SOC_POWER_REG_OFFSET,
  601. .d_PCIE_INTR_CAUSE_ADDRESS = AR6320V2_PCIE_INTR_CAUSE_ADDRESS,
  602. .d_SOC_RESET_CONTROL_ADDRESS = AR6320V2_SOC_RESET_CONTROL_ADDRESS,
  603. .d_SOC_RESET_CONTROL_PCIE_RST_SHORT_OVRD_MASK =
  604. AR6320V2_SOC_RESET_CONTROL_PCIE_RST_SHORT_OVRD_MASK,
  605. .d_SOC_RESET_CONTROL_PCIE_RST_SHORT_OVRD_LSB =
  606. AR6320V2_SOC_RESET_CONTROL_PCIE_RST_SHORT_OVRD_LSB,
  607. .d_SOC_RESET_CONTROL_CE_RST_MASK =
  608. AR6320V2_SOC_RESET_CONTROL_CE_RST_MASK,
  609. .d_WLAN_DEBUG_INPUT_SEL_OFFSET = AR6320V2_WLAN_DEBUG_INPUT_SEL_OFFSET,
  610. .d_WLAN_DEBUG_INPUT_SEL_SRC_MSB =
  611. AR6320V2_WLAN_DEBUG_INPUT_SEL_SRC_MSB,
  612. .d_WLAN_DEBUG_INPUT_SEL_SRC_LSB =
  613. AR6320V2_WLAN_DEBUG_INPUT_SEL_SRC_LSB,
  614. .d_WLAN_DEBUG_INPUT_SEL_SRC_MASK =
  615. AR6320V2_WLAN_DEBUG_INPUT_SEL_SRC_MASK,
  616. .d_WLAN_DEBUG_CONTROL_OFFSET = AR6320V2_WLAN_DEBUG_CONTROL_OFFSET,
  617. .d_WLAN_DEBUG_CONTROL_ENABLE_MSB =
  618. AR6320V2_WLAN_DEBUG_CONTROL_ENABLE_MSB,
  619. .d_WLAN_DEBUG_CONTROL_ENABLE_LSB =
  620. AR6320V2_WLAN_DEBUG_CONTROL_ENABLE_LSB,
  621. .d_WLAN_DEBUG_CONTROL_ENABLE_MASK =
  622. AR6320V2_WLAN_DEBUG_CONTROL_ENABLE_MASK,
  623. .d_WLAN_DEBUG_OUT_OFFSET = AR6320V2_WLAN_DEBUG_OUT_OFFSET,
  624. .d_WLAN_DEBUG_OUT_DATA_MSB = AR6320V2_WLAN_DEBUG_OUT_DATA_MSB,
  625. .d_WLAN_DEBUG_OUT_DATA_LSB = AR6320V2_WLAN_DEBUG_OUT_DATA_LSB,
  626. .d_WLAN_DEBUG_OUT_DATA_MASK = AR6320V2_WLAN_DEBUG_OUT_DATA_MASK,
  627. .d_AMBA_DEBUG_BUS_OFFSET = AR6320V2_AMBA_DEBUG_BUS_OFFSET,
  628. .d_AMBA_DEBUG_BUS_PCIE_DEBUG_SEL_MSB =
  629. AR6320V2_AMBA_DEBUG_BUS_PCIE_DEBUG_SEL_MSB,
  630. .d_AMBA_DEBUG_BUS_PCIE_DEBUG_SEL_LSB =
  631. AR6320V2_AMBA_DEBUG_BUS_PCIE_DEBUG_SEL_LSB,
  632. .d_AMBA_DEBUG_BUS_PCIE_DEBUG_SEL_MASK =
  633. AR6320V2_AMBA_DEBUG_BUS_PCIE_DEBUG_SEL_MASK,
  634. .d_AMBA_DEBUG_BUS_SEL_MSB = AR6320V2_AMBA_DEBUG_BUS_SEL_MSB,
  635. .d_AMBA_DEBUG_BUS_SEL_LSB = AR6320V2_AMBA_DEBUG_BUS_SEL_LSB,
  636. .d_AMBA_DEBUG_BUS_SEL_MASK = AR6320V2_AMBA_DEBUG_BUS_SEL_MASK,
  637. #endif
  638. .d_SOC_RESET_CONTROL_CPU_WARM_RST_MASK =
  639. AR6320V2_SOC_RESET_CONTROL_CPU_WARM_RST_MASK,
  640. .d_CPU_INTR_ADDRESS = AR6320V2_CPU_INTR_ADDRESS,
  641. .d_SOC_LF_TIMER_CONTROL0_ADDRESS =
  642. AR6320V2_SOC_LF_TIMER_CONTROL0_ADDRESS,
  643. .d_SOC_LF_TIMER_CONTROL0_ENABLE_MASK =
  644. AR6320V2_SOC_LF_TIMER_CONTROL0_ENABLE_MASK,
  645. /* chip id start */
  646. .d_SOC_CHIP_ID_ADDRESS = AR6320V2_SOC_CHIP_ID_ADDRESS,
  647. .d_SOC_CHIP_ID_VERSION_MASK = AR6320V2_SOC_CHIP_ID_VERSION_MASK,
  648. .d_SOC_CHIP_ID_VERSION_LSB = AR6320V2_SOC_CHIP_ID_VERSION_LSB,
  649. .d_SOC_CHIP_ID_REVISION_MASK = AR6320V2_SOC_CHIP_ID_REVISION_MASK,
  650. .d_SOC_CHIP_ID_REVISION_LSB = AR6320V2_SOC_CHIP_ID_REVISION_LSB,
  651. /* chip id end */
  652. };
  653. struct hostdef_s ar6320v2_hostdef = {
  654. .d_INT_STATUS_ENABLE_ERROR_LSB = AR6320V2_INT_STATUS_ENABLE_ERROR_LSB,
  655. .d_INT_STATUS_ENABLE_ERROR_MASK =
  656. AR6320V2_INT_STATUS_ENABLE_ERROR_MASK,
  657. .d_INT_STATUS_ENABLE_CPU_LSB = AR6320V2_INT_STATUS_ENABLE_CPU_LSB,
  658. .d_INT_STATUS_ENABLE_CPU_MASK = AR6320V2_INT_STATUS_ENABLE_CPU_MASK,
  659. .d_INT_STATUS_ENABLE_COUNTER_LSB =
  660. AR6320V2_INT_STATUS_ENABLE_COUNTER_LSB,
  661. .d_INT_STATUS_ENABLE_COUNTER_MASK =
  662. AR6320V2_INT_STATUS_ENABLE_COUNTER_MASK,
  663. .d_INT_STATUS_ENABLE_MBOX_DATA_LSB =
  664. AR6320V2_INT_STATUS_ENABLE_MBOX_DATA_LSB,
  665. .d_INT_STATUS_ENABLE_MBOX_DATA_MASK =
  666. AR6320V2_INT_STATUS_ENABLE_MBOX_DATA_MASK,
  667. .d_ERROR_STATUS_ENABLE_RX_UNDERFLOW_LSB =
  668. AR6320V2_ERROR_STATUS_ENABLE_RX_UNDERFLOW_LSB,
  669. .d_ERROR_STATUS_ENABLE_RX_UNDERFLOW_MASK =
  670. AR6320V2_ERROR_STATUS_ENABLE_RX_UNDERFLOW_MASK,
  671. .d_ERROR_STATUS_ENABLE_TX_OVERFLOW_LSB =
  672. AR6320V2_ERROR_STATUS_ENABLE_TX_OVERFLOW_LSB,
  673. .d_ERROR_STATUS_ENABLE_TX_OVERFLOW_MASK =
  674. AR6320V2_ERROR_STATUS_ENABLE_TX_OVERFLOW_MASK,
  675. .d_COUNTER_INT_STATUS_ENABLE_BIT_LSB =
  676. AR6320V2_COUNTER_INT_STATUS_ENABLE_BIT_LSB,
  677. .d_COUNTER_INT_STATUS_ENABLE_BIT_MASK =
  678. AR6320V2_COUNTER_INT_STATUS_ENABLE_BIT_MASK,
  679. .d_INT_STATUS_ENABLE_ADDRESS = AR6320V2_INT_STATUS_ENABLE_ADDRESS,
  680. .d_CPU_INT_STATUS_ENABLE_BIT_LSB =
  681. AR6320V2_CPU_INT_STATUS_ENABLE_BIT_LSB,
  682. .d_CPU_INT_STATUS_ENABLE_BIT_MASK =
  683. AR6320V2_CPU_INT_STATUS_ENABLE_BIT_MASK,
  684. .d_HOST_INT_STATUS_ADDRESS = AR6320V2_HOST_INT_STATUS_ADDRESS,
  685. .d_CPU_INT_STATUS_ADDRESS = AR6320V2_CPU_INT_STATUS_ADDRESS,
  686. .d_ERROR_INT_STATUS_ADDRESS = AR6320V2_ERROR_INT_STATUS_ADDRESS,
  687. .d_ERROR_INT_STATUS_WAKEUP_MASK =
  688. AR6320V2_ERROR_INT_STATUS_WAKEUP_MASK,
  689. .d_ERROR_INT_STATUS_WAKEUP_LSB = AR6320V2_ERROR_INT_STATUS_WAKEUP_LSB,
  690. .d_ERROR_INT_STATUS_RX_UNDERFLOW_MASK =
  691. AR6320V2_ERROR_INT_STATUS_RX_UNDERFLOW_MASK,
  692. .d_ERROR_INT_STATUS_RX_UNDERFLOW_LSB =
  693. AR6320V2_ERROR_INT_STATUS_RX_UNDERFLOW_LSB,
  694. .d_ERROR_INT_STATUS_TX_OVERFLOW_MASK =
  695. AR6320V2_ERROR_INT_STATUS_TX_OVERFLOW_MASK,
  696. .d_ERROR_INT_STATUS_TX_OVERFLOW_LSB =
  697. AR6320V2_ERROR_INT_STATUS_TX_OVERFLOW_LSB,
  698. .d_COUNT_DEC_ADDRESS = AR6320V2_COUNT_DEC_ADDRESS,
  699. .d_HOST_INT_STATUS_CPU_MASK = AR6320V2_HOST_INT_STATUS_CPU_MASK,
  700. .d_HOST_INT_STATUS_CPU_LSB = AR6320V2_HOST_INT_STATUS_CPU_LSB,
  701. .d_HOST_INT_STATUS_ERROR_MASK = AR6320V2_HOST_INT_STATUS_ERROR_MASK,
  702. .d_HOST_INT_STATUS_ERROR_LSB = AR6320V2_HOST_INT_STATUS_ERROR_LSB,
  703. .d_HOST_INT_STATUS_COUNTER_MASK =
  704. AR6320V2_HOST_INT_STATUS_COUNTER_MASK,
  705. .d_HOST_INT_STATUS_COUNTER_LSB = AR6320V2_HOST_INT_STATUS_COUNTER_LSB,
  706. .d_RX_LOOKAHEAD_VALID_ADDRESS = AR6320V2_RX_LOOKAHEAD_VALID_ADDRESS,
  707. .d_WINDOW_DATA_ADDRESS = AR6320V2_WINDOW_DATA_ADDRESS,
  708. .d_WINDOW_READ_ADDR_ADDRESS = AR6320V2_WINDOW_READ_ADDR_ADDRESS,
  709. .d_WINDOW_WRITE_ADDR_ADDRESS = AR6320V2_WINDOW_WRITE_ADDR_ADDRESS,
  710. .d_SOC_GLOBAL_RESET_ADDRESS = AR6320V2_SOC_GLOBAL_RESET_ADDRESS,
  711. .d_RTC_STATE_ADDRESS = AR6320V2_RTC_STATE_ADDRESS,
  712. .d_RTC_STATE_COLD_RESET_MASK = AR6320V2_RTC_STATE_COLD_RESET_MASK,
  713. .d_RTC_STATE_V_MASK = AR6320V2_RTC_STATE_V_MASK,
  714. .d_RTC_STATE_V_LSB = AR6320V2_RTC_STATE_V_LSB,
  715. .d_FW_IND_EVENT_PENDING = AR6320V2_FW_IND_EVENT_PENDING,
  716. .d_FW_IND_INITIALIZED = AR6320V2_FW_IND_INITIALIZED,
  717. .d_RTC_STATE_V_ON = AR6320V2_RTC_STATE_V_ON,
  718. #if defined(SDIO_3_0)
  719. .d_HOST_INT_STATUS_MBOX_DATA_MASK =
  720. AR6320V2_HOST_INT_STATUS_MBOX_DATA_MASK,
  721. .d_HOST_INT_STATUS_MBOX_DATA_LSB =
  722. AR6320V2_HOST_INT_STATUS_MBOX_DATA_LSB,
  723. #endif
  724. #if defined(HIF_PCI) || defined(HIF_SNOC) || defined(HIF_AHB)
  725. .d_FW_IND_HELPER = AR6320V2_FW_IND_HELPER,
  726. .d_MUX_ID_MASK = AR6320V2_MUX_ID_MASK,
  727. .d_TRANSACTION_ID_MASK = AR6320V2_TRANSACTION_ID_MASK,
  728. .d_PCIE_LOCAL_BASE_ADDRESS = AR6320V2_PCIE_LOCAL_BASE_ADDRESS,
  729. .d_PCIE_SOC_WAKE_RESET = AR6320V2_PCIE_SOC_WAKE_RESET,
  730. .d_PCIE_SOC_WAKE_ADDRESS = AR6320V2_PCIE_SOC_WAKE_ADDRESS,
  731. .d_PCIE_SOC_WAKE_V_MASK = AR6320V2_PCIE_SOC_WAKE_V_MASK,
  732. .d_PCIE_SOC_RDY_STATUS_ADDRESS = PCIE_SOC_RDY_STATUS_ADDRESS,
  733. .d_PCIE_SOC_RDY_STATUS_BAR_MASK = PCIE_SOC_RDY_STATUS_BAR_MASK,
  734. .d_SOC_PCIE_BASE_ADDRESS = SOC_PCIE_BASE_ADDRESS,
  735. .d_MSI_MAGIC_ADR_ADDRESS = MSI_MAGIC_ADR_ADDRESS,
  736. .d_MSI_MAGIC_ADDRESS = MSI_MAGIC_ADDRESS,
  737. .d_HOST_CE_COUNT = 8,
  738. .d_ENABLE_MSI = 0,
  739. #endif
  740. };
  741. #if defined(HIF_PCI) || defined(HIF_SNOC) || defined(HIF_AHB)
  742. struct ce_reg_def ar6320v2_ce_targetdef = {
  743. /* copy_engine.c */
  744. .d_DST_WR_INDEX_ADDRESS = AR6320V2_DST_WR_INDEX_ADDRESS,
  745. .d_SRC_WATERMARK_ADDRESS = AR6320V2_SRC_WATERMARK_ADDRESS,
  746. .d_SRC_WATERMARK_LOW_MASK = AR6320V2_SRC_WATERMARK_LOW_MASK,
  747. .d_SRC_WATERMARK_HIGH_MASK = AR6320V2_SRC_WATERMARK_HIGH_MASK,
  748. .d_DST_WATERMARK_LOW_MASK = AR6320V2_DST_WATERMARK_LOW_MASK,
  749. .d_DST_WATERMARK_HIGH_MASK = AR6320V2_DST_WATERMARK_HIGH_MASK,
  750. .d_CURRENT_SRRI_ADDRESS = AR6320V2_CURRENT_SRRI_ADDRESS,
  751. .d_CURRENT_DRRI_ADDRESS = AR6320V2_CURRENT_DRRI_ADDRESS,
  752. .d_HOST_IS_SRC_RING_HIGH_WATERMARK_MASK =
  753. AR6320V2_HOST_IS_SRC_RING_HIGH_WATERMARK_MASK,
  754. .d_HOST_IS_SRC_RING_LOW_WATERMARK_MASK =
  755. AR6320V2_HOST_IS_SRC_RING_LOW_WATERMARK_MASK,
  756. .d_HOST_IS_DST_RING_HIGH_WATERMARK_MASK =
  757. AR6320V2_HOST_IS_DST_RING_HIGH_WATERMARK_MASK,
  758. .d_HOST_IS_DST_RING_LOW_WATERMARK_MASK =
  759. AR6320V2_HOST_IS_DST_RING_LOW_WATERMARK_MASK,
  760. .d_HOST_IS_ADDRESS = AR6320V2_HOST_IS_ADDRESS,
  761. .d_HOST_IS_COPY_COMPLETE_MASK = AR6320V2_HOST_IS_COPY_COMPLETE_MASK,
  762. .d_CE_WRAPPER_BASE_ADDRESS = AR6320V2_CE_WRAPPER_BASE_ADDRESS,
  763. .d_CE_WRAPPER_INTERRUPT_SUMMARY_ADDRESS =
  764. AR6320V2_CE_WRAPPER_INTERRUPT_SUMMARY_ADDRESS,
  765. .d_HOST_IE_ADDRESS = AR6320V2_HOST_IE_ADDRESS,
  766. .d_HOST_IE_COPY_COMPLETE_MASK = AR6320V2_HOST_IE_COPY_COMPLETE_MASK,
  767. .d_SR_BA_ADDRESS = AR6320V2_SR_BA_ADDRESS,
  768. .d_SR_SIZE_ADDRESS = AR6320V2_SR_SIZE_ADDRESS,
  769. .d_CE_CTRL1_ADDRESS = AR6320V2_CE_CTRL1_ADDRESS,
  770. .d_CE_CTRL1_DMAX_LENGTH_MASK = AR6320V2_CE_CTRL1_DMAX_LENGTH_MASK,
  771. .d_DR_BA_ADDRESS = AR6320V2_DR_BA_ADDRESS,
  772. .d_DR_SIZE_ADDRESS = AR6320V2_DR_SIZE_ADDRESS,
  773. .d_MISC_IE_ADDRESS = AR6320V2_MISC_IE_ADDRESS,
  774. .d_MISC_IS_AXI_ERR_MASK = AR6320V2_MISC_IS_AXI_ERR_MASK,
  775. .d_MISC_IS_DST_ADDR_ERR_MASK = AR6320V2_MISC_IS_DST_ADDR_ERR_MASK,
  776. .d_MISC_IS_SRC_LEN_ERR_MASK = AR6320V2_MISC_IS_SRC_LEN_ERR_MASK,
  777. .d_MISC_IS_DST_MAX_LEN_VIO_MASK =
  778. AR6320V2_MISC_IS_DST_MAX_LEN_VIO_MASK,
  779. .d_MISC_IS_DST_RING_OVERFLOW_MASK =
  780. AR6320V2_MISC_IS_DST_RING_OVERFLOW_MASK,
  781. .d_MISC_IS_SRC_RING_OVERFLOW_MASK =
  782. AR6320V2_MISC_IS_SRC_RING_OVERFLOW_MASK,
  783. .d_SRC_WATERMARK_LOW_LSB = AR6320V2_SRC_WATERMARK_LOW_LSB,
  784. .d_SRC_WATERMARK_HIGH_LSB = AR6320V2_SRC_WATERMARK_HIGH_LSB,
  785. .d_DST_WATERMARK_LOW_LSB = AR6320V2_DST_WATERMARK_LOW_LSB,
  786. .d_DST_WATERMARK_HIGH_LSB = AR6320V2_DST_WATERMARK_HIGH_LSB,
  787. .d_CE_WRAPPER_INTERRUPT_SUMMARY_HOST_MSI_MASK =
  788. AR6320V2_CE_WRAPPER_INTERRUPT_SUMMARY_HOST_MSI_MASK,
  789. .d_CE_WRAPPER_INTERRUPT_SUMMARY_HOST_MSI_LSB =
  790. AR6320V2_CE_WRAPPER_INTERRUPT_SUMMARY_HOST_MSI_LSB,
  791. .d_CE_CTRL1_DMAX_LENGTH_LSB = AR6320V2_CE_CTRL1_DMAX_LENGTH_LSB,
  792. .d_CE_CTRL1_SRC_RING_BYTE_SWAP_EN_MASK =
  793. AR6320V2_CE_CTRL1_SRC_RING_BYTE_SWAP_EN_MASK,
  794. .d_CE_CTRL1_DST_RING_BYTE_SWAP_EN_MASK =
  795. AR6320V2_CE_CTRL1_DST_RING_BYTE_SWAP_EN_MASK,
  796. .d_CE_CTRL1_SRC_RING_BYTE_SWAP_EN_LSB =
  797. AR6320V2_CE_CTRL1_SRC_RING_BYTE_SWAP_EN_LSB,
  798. .d_CE_CTRL1_DST_RING_BYTE_SWAP_EN_LSB =
  799. AR6320V2_CE_CTRL1_DST_RING_BYTE_SWAP_EN_LSB,
  800. .d_CE_WRAPPER_DEBUG_OFFSET = AR6320V2_CE_WRAPPER_DEBUG_OFFSET,
  801. .d_CE_WRAPPER_DEBUG_SEL_MSB = AR6320V2_CE_WRAPPER_DEBUG_SEL_MSB,
  802. .d_CE_WRAPPER_DEBUG_SEL_LSB = AR6320V2_CE_WRAPPER_DEBUG_SEL_LSB,
  803. .d_CE_WRAPPER_DEBUG_SEL_MASK = AR6320V2_CE_WRAPPER_DEBUG_SEL_MASK,
  804. .d_CE_DEBUG_OFFSET = AR6320V2_CE_DEBUG_OFFSET,
  805. .d_CE_DEBUG_SEL_MSB = AR6320V2_CE_DEBUG_SEL_MSB,
  806. .d_CE_DEBUG_SEL_LSB = AR6320V2_CE_DEBUG_SEL_LSB,
  807. .d_CE_DEBUG_SEL_MASK = AR6320V2_CE_DEBUG_SEL_MASK,
  808. .d_CE0_BASE_ADDRESS = AR6320V2_CE0_BASE_ADDRESS,
  809. .d_CE1_BASE_ADDRESS = AR6320V2_CE1_BASE_ADDRESS,
  810. };
  811. #endif
  812. #endif