reg_fw_ap_apb.h 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643
  1. /* Copyright (C) 2018 RDA Technologies Limited and/or its affiliates("RDA").
  2. * All rights reserved.
  3. *
  4. * This software is supplied "AS IS" without any warranties.
  5. * RDA assumes no responsibility or liability for the use of the software,
  6. * conveys no license or title under any patent, copyright, or mask work
  7. * right to the product. RDA reserves the right to make changes in the
  8. * software without notification. RDA also make no representation or
  9. * warranty that such application will be suitable for the specified use
  10. * without further testing or modification.
  11. */
  12. #ifndef _REG_FW_AP_APB_H_
  13. #define _REG_FW_AP_APB_H_
  14. // Auto generated by dtools(see dtools.txt for its version).
  15. // Don't edit it manually!
  16. #define REG_REG_FW_AP_APB_BASE (0x5132a000)
  17. typedef volatile struct
  18. {
  19. uint32_t reg_rd_ctrl_0; // 0x00000000
  20. uint32_t reg_rd_ctrl_1; // 0x00000004
  21. uint32_t reg_rd_ctrl_2; // 0x00000008
  22. uint32_t reg_wr_ctrl_0; // 0x0000000c
  23. uint32_t reg_wr_ctrl_1; // 0x00000010
  24. uint32_t reg_wr_ctrl_2; // 0x00000014
  25. uint32_t bit_ctrl_addr_array0; // 0x00000018
  26. uint32_t bit_ctrl_addr_array1; // 0x0000001c
  27. uint32_t bit_ctrl_addr_array2; // 0x00000020
  28. uint32_t bit_ctrl_addr_array3; // 0x00000024
  29. uint32_t bit_ctrl_addr_array4; // 0x00000028
  30. uint32_t bit_ctrl_addr_array5; // 0x0000002c
  31. uint32_t bit_ctrl_addr_array6; // 0x00000030
  32. uint32_t bit_ctrl_addr_array7; // 0x00000034
  33. uint32_t bit_ctrl_addr_array8; // 0x00000038
  34. uint32_t bit_ctrl_addr_array9; // 0x0000003c
  35. uint32_t bit_ctrl_addr_array10; // 0x00000040
  36. uint32_t bit_ctrl_addr_array11; // 0x00000044
  37. uint32_t bit_ctrl_addr_array12; // 0x00000048
  38. uint32_t bit_ctrl_addr_array13; // 0x0000004c
  39. uint32_t bit_ctrl_addr_array14; // 0x00000050
  40. uint32_t bit_ctrl_addr_array15; // 0x00000054
  41. uint32_t bit_ctrl_array0; // 0x00000058
  42. uint32_t bit_ctrl_array1; // 0x0000005c
  43. uint32_t bit_ctrl_array2; // 0x00000060
  44. uint32_t bit_ctrl_array3; // 0x00000064
  45. uint32_t bit_ctrl_array4; // 0x00000068
  46. uint32_t bit_ctrl_array5; // 0x0000006c
  47. uint32_t bit_ctrl_array6; // 0x00000070
  48. uint32_t bit_ctrl_array7; // 0x00000074
  49. uint32_t bit_ctrl_array8; // 0x00000078
  50. uint32_t bit_ctrl_array9; // 0x0000007c
  51. uint32_t bit_ctrl_array10; // 0x00000080
  52. uint32_t bit_ctrl_array11; // 0x00000084
  53. uint32_t bit_ctrl_array12; // 0x00000088
  54. uint32_t bit_ctrl_array13; // 0x0000008c
  55. uint32_t bit_ctrl_array14; // 0x00000090
  56. uint32_t bit_ctrl_array15; // 0x00000094
  57. } HWP_REG_FW_AP_APB_T;
  58. #define hwp_regFwApApb ((HWP_REG_FW_AP_APB_T *)REG_ACCESS_ADDRESS(REG_REG_FW_AP_APB_BASE))
  59. // reg_rd_ctrl_0
  60. typedef union {
  61. uint32_t v;
  62. struct
  63. {
  64. uint32_t clk_ap_mode0_rd_sec : 1; // [0]
  65. uint32_t clk_ap_en0_rd_sec : 1; // [1]
  66. uint32_t clk_ap_mode1_rd_sec : 1; // [2]
  67. uint32_t clk_ap_en1_rd_sec : 1; // [3]
  68. uint32_t clk_ap_mode2_rd_sec : 1; // [4]
  69. uint32_t clk_ap_en2_rd_sec : 1; // [5]
  70. uint32_t ap_rst0_rd_sec : 1; // [6]
  71. uint32_t ap_rst1_rd_sec : 1; // [7]
  72. uint32_t ap_rst2_rd_sec : 1; // [8]
  73. uint32_t m0_lpc_rd_sec : 1; // [9]
  74. uint32_t m1_lpc_rd_sec : 1; // [10]
  75. uint32_t m2_lpc_rd_sec : 1; // [11]
  76. uint32_t m3_lpc_rd_sec : 1; // [12]
  77. uint32_t m4_lpc_rd_sec : 1; // [13]
  78. uint32_t m5_lpc_rd_sec : 1; // [14]
  79. uint32_t m6_lpc_rd_sec : 1; // [15]
  80. uint32_t m7_lpc_rd_sec : 1; // [16]
  81. uint32_t m8_lpc_rd_sec : 1; // [17]
  82. uint32_t m9_lpc_rd_sec : 1; // [18]
  83. uint32_t s0_lpc_rd_sec : 1; // [19]
  84. uint32_t s1_lpc_rd_sec : 1; // [20]
  85. uint32_t s2_lpc_rd_sec : 1; // [21]
  86. uint32_t s3_lpc_rd_sec : 1; // [22]
  87. uint32_t s4_lpc_rd_sec : 1; // [23]
  88. uint32_t s5_lpc_rd_sec : 1; // [24]
  89. uint32_t s6_lpc_rd_sec : 1; // [25]
  90. uint32_t main_lpc_rd_sec : 1; // [26]
  91. uint32_t cache_emmc_sdio_rd_sec : 1; // [27]
  92. uint32_t misc_cfg_rd_sec : 1; // [28]
  93. uint32_t chip_prod_id_rd_sec : 1; // [29]
  94. uint32_t cfg_qos0_rd_sec : 1; // [30]
  95. uint32_t cfg_qos1_rd_sec : 1; // [31]
  96. } b;
  97. } REG_REG_FW_AP_APB_REG_RD_CTRL_0_T;
  98. // reg_rd_ctrl_1
  99. typedef union {
  100. uint32_t v;
  101. struct
  102. {
  103. uint32_t cfg_qos2_rd_sec : 1; // [0]
  104. uint32_t debug_monitor_rd_sec : 1; // [1]
  105. uint32_t xhb_awsparse_rd_sec : 1; // [2]
  106. uint32_t clk_mnt26m_th0_rd_sec : 1; // [3]
  107. uint32_t clk_mnt26m_th1_rd_sec : 1; // [4]
  108. uint32_t clk_mnt26m_th2_rd_sec : 1; // [5]
  109. uint32_t clk_mnt26m_th3_rd_sec : 1; // [6]
  110. uint32_t clk_mnt32k_th0_rd_sec : 1; // [7]
  111. uint32_t clk_mnt32k_th1_rd_sec : 1; // [8]
  112. uint32_t clk_mnt_ctrl_rd_sec : 1; // [9]
  113. uint32_t cfg_bridge_rd_sec : 1; // [10]
  114. uint32_t cgm_gate_auto_sel0_rd_sec : 1; // [11]
  115. uint32_t cgm_gate_auto_sel1_rd_sec : 1; // [12]
  116. uint32_t cgm_gate_auto_sel2_rd_sec : 1; // [13]
  117. uint32_t cgm_gate_auto_sel3_rd_sec : 1; // [14]
  118. uint32_t cgm_gate_force_en0_rd_sec : 1; // [15]
  119. uint32_t cgm_gate_force_en1_rd_sec : 1; // [16]
  120. uint32_t cgm_gate_force_en2_rd_sec : 1; // [17]
  121. uint32_t cgm_gate_force_en3_rd_sec : 1; // [18]
  122. uint32_t mnt_gate_en_status0_rd_sec : 1; // [19]
  123. uint32_t mnt_gate_en_status1_rd_sec : 1; // [20]
  124. uint32_t mnt_gate_en_status2_rd_sec : 1; // [21]
  125. uint32_t mnt_gate_en_status3_rd_sec : 1; // [22]
  126. uint32_t mnt_cgm_busy_status0_rd_sec : 1; // [23]
  127. uint32_t mnt_cgm_busy_status1_rd_sec : 1; // [24]
  128. uint32_t mnt_cgm_busy_status2_rd_sec : 1; // [25]
  129. uint32_t mnt_cgm_busy_status3_rd_sec : 1; // [26]
  130. uint32_t mnt_cgm_busy_status4_rd_sec : 1; // [27]
  131. uint32_t cfg_clk_uart4_rd_sec : 1; // [28]
  132. uint32_t cfg_clk_uart5_rd_sec : 1; // [29]
  133. uint32_t cfg_clk_uart6_rd_sec : 1; // [30]
  134. uint32_t cfg_clk_spiflash1_rd_sec : 1; // [31]
  135. } b;
  136. } REG_REG_FW_AP_APB_REG_RD_CTRL_1_T;
  137. // reg_rd_ctrl_2
  138. typedef union {
  139. uint32_t v;
  140. struct
  141. {
  142. uint32_t cfg_clk_spiflash2_rd_sec : 1; // [0]
  143. uint32_t cfg_clk_apcpu_dbgen_rd_sec : 1; // [1]
  144. uint32_t lp_force_rd_sec : 1; // [2]
  145. uint32_t sleep_ctrl_rd_sec : 1; // [3]
  146. uint32_t light_sleep_bypass0_rd_sec : 1; // [4]
  147. uint32_t light_sleep_bypass1_rd_sec : 1; // [5]
  148. uint32_t anti_hang_rd_sec : 1; // [6]
  149. uint32_t ap_apb_rsd0_rd_sec : 1; // [7]
  150. uint32_t ap_apb_rsd1_rd_sec : 1; // [8]
  151. uint32_t ap_apb_rsd2_rd_sec : 1; // [9]
  152. uint32_t ap_apb_rsd3_rd_sec : 1; // [10]
  153. uint32_t ap2pub_bridge_status_rd_sec : 1; // [11]
  154. uint32_t ap2pub_bridge_debug_rd_sec : 1; // [12]
  155. uint32_t __31_13 : 19; // [31:13]
  156. } b;
  157. } REG_REG_FW_AP_APB_REG_RD_CTRL_2_T;
  158. // reg_wr_ctrl_0
  159. typedef union {
  160. uint32_t v;
  161. struct
  162. {
  163. uint32_t clk_ap_mode0_wr_sec : 1; // [0]
  164. uint32_t clk_ap_en0_wr_sec : 1; // [1]
  165. uint32_t clk_ap_mode1_wr_sec : 1; // [2]
  166. uint32_t clk_ap_en1_wr_sec : 1; // [3]
  167. uint32_t clk_ap_mode2_wr_sec : 1; // [4]
  168. uint32_t clk_ap_en2_wr_sec : 1; // [5]
  169. uint32_t ap_rst0_wr_sec : 1; // [6]
  170. uint32_t ap_rst1_wr_sec : 1; // [7]
  171. uint32_t ap_rst2_wr_sec : 1; // [8]
  172. uint32_t m0_lpc_wr_sec : 1; // [9]
  173. uint32_t m1_lpc_wr_sec : 1; // [10]
  174. uint32_t m2_lpc_wr_sec : 1; // [11]
  175. uint32_t m3_lpc_wr_sec : 1; // [12]
  176. uint32_t m4_lpc_wr_sec : 1; // [13]
  177. uint32_t m5_lpc_wr_sec : 1; // [14]
  178. uint32_t m6_lpc_wr_sec : 1; // [15]
  179. uint32_t m7_lpc_wr_sec : 1; // [16]
  180. uint32_t m8_lpc_wr_sec : 1; // [17]
  181. uint32_t m9_lpc_wr_sec : 1; // [18]
  182. uint32_t s0_lpc_wr_sec : 1; // [19]
  183. uint32_t s1_lpc_wr_sec : 1; // [20]
  184. uint32_t s2_lpc_wr_sec : 1; // [21]
  185. uint32_t s3_lpc_wr_sec : 1; // [22]
  186. uint32_t s4_lpc_wr_sec : 1; // [23]
  187. uint32_t s5_lpc_wr_sec : 1; // [24]
  188. uint32_t s6_lpc_wr_sec : 1; // [25]
  189. uint32_t main_lpc_wr_sec : 1; // [26]
  190. uint32_t cache_emmc_sdio_wr_sec : 1; // [27]
  191. uint32_t misc_cfg_wr_sec : 1; // [28]
  192. uint32_t chip_prod_id_wr_sec : 1; // [29]
  193. uint32_t cfg_qos0_wr_sec : 1; // [30]
  194. uint32_t cfg_qos1_wr_sec : 1; // [31]
  195. } b;
  196. } REG_REG_FW_AP_APB_REG_WR_CTRL_0_T;
  197. // reg_wr_ctrl_1
  198. typedef union {
  199. uint32_t v;
  200. struct
  201. {
  202. uint32_t cfg_qos2_wr_sec : 1; // [0]
  203. uint32_t debug_monitor_wr_sec : 1; // [1]
  204. uint32_t xhb_awsparse_wr_sec : 1; // [2]
  205. uint32_t clk_mnt26m_th0_wr_sec : 1; // [3]
  206. uint32_t clk_mnt26m_th1_wr_sec : 1; // [4]
  207. uint32_t clk_mnt26m_th2_wr_sec : 1; // [5]
  208. uint32_t clk_mnt26m_th3_wr_sec : 1; // [6]
  209. uint32_t clk_mnt32k_th0_wr_sec : 1; // [7]
  210. uint32_t clk_mnt32k_th1_wr_sec : 1; // [8]
  211. uint32_t clk_mnt_ctrl_wr_sec : 1; // [9]
  212. uint32_t cfg_bridge_wr_sec : 1; // [10]
  213. uint32_t cgm_gate_auto_sel0_wr_sec : 1; // [11]
  214. uint32_t cgm_gate_auto_sel1_wr_sec : 1; // [12]
  215. uint32_t cgm_gate_auto_sel2_wr_sec : 1; // [13]
  216. uint32_t cgm_gate_auto_sel3_wr_sec : 1; // [14]
  217. uint32_t cgm_gate_force_en0_wr_sec : 1; // [15]
  218. uint32_t cgm_gate_force_en1_wr_sec : 1; // [16]
  219. uint32_t cgm_gate_force_en2_wr_sec : 1; // [17]
  220. uint32_t cgm_gate_force_en3_wr_sec : 1; // [18]
  221. uint32_t mnt_gate_en_status0_wr_sec : 1; // [19]
  222. uint32_t mnt_gate_en_status1_wr_sec : 1; // [20]
  223. uint32_t mnt_gate_en_status2_wr_sec : 1; // [21]
  224. uint32_t mnt_gate_en_status3_wr_sec : 1; // [22]
  225. uint32_t mnt_cgm_busy_status0_wr_sec : 1; // [23]
  226. uint32_t mnt_cgm_busy_status1_wr_sec : 1; // [24]
  227. uint32_t mnt_cgm_busy_status2_wr_sec : 1; // [25]
  228. uint32_t mnt_cgm_busy_status3_wr_sec : 1; // [26]
  229. uint32_t mnt_cgm_busy_status4_wr_sec : 1; // [27]
  230. uint32_t cfg_clk_uart4_wr_sec : 1; // [28]
  231. uint32_t cfg_clk_uart5_wr_sec : 1; // [29]
  232. uint32_t cfg_clk_uart6_wr_sec : 1; // [30]
  233. uint32_t cfg_clk_spiflash1_wr_sec : 1; // [31]
  234. } b;
  235. } REG_REG_FW_AP_APB_REG_WR_CTRL_1_T;
  236. // reg_wr_ctrl_2
  237. typedef union {
  238. uint32_t v;
  239. struct
  240. {
  241. uint32_t cfg_clk_spiflash2_wr_sec : 1; // [0]
  242. uint32_t cfg_clk_apcpu_dbgen_wr_sec : 1; // [1]
  243. uint32_t lp_force_wr_sec : 1; // [2]
  244. uint32_t sleep_ctrl_wr_sec : 1; // [3]
  245. uint32_t light_sleep_bypass0_wr_sec : 1; // [4]
  246. uint32_t light_sleep_bypass1_wr_sec : 1; // [5]
  247. uint32_t anti_hang_wr_sec : 1; // [6]
  248. uint32_t ap_apb_rsd0_wr_sec : 1; // [7]
  249. uint32_t ap_apb_rsd1_wr_sec : 1; // [8]
  250. uint32_t ap_apb_rsd2_wr_sec : 1; // [9]
  251. uint32_t ap_apb_rsd3_wr_sec : 1; // [10]
  252. uint32_t ap2pub_bridge_status_wr_sec : 1; // [11]
  253. uint32_t ap2pub_bridge_debug_wr_sec : 1; // [12]
  254. uint32_t __31_13 : 19; // [31:13]
  255. } b;
  256. } REG_REG_FW_AP_APB_REG_WR_CTRL_2_T;
  257. // bit_ctrl_addr_array0
  258. typedef union {
  259. uint32_t v;
  260. struct
  261. {
  262. uint32_t bit_ctrl_addr_array0 : 12; // [11:0]
  263. uint32_t __31_12 : 20; // [31:12]
  264. } b;
  265. } REG_REG_FW_AP_APB_BIT_CTRL_ADDR_ARRAY0_T;
  266. // bit_ctrl_addr_array1
  267. typedef union {
  268. uint32_t v;
  269. struct
  270. {
  271. uint32_t bit_ctrl_addr_array1 : 12; // [11:0]
  272. uint32_t __31_12 : 20; // [31:12]
  273. } b;
  274. } REG_REG_FW_AP_APB_BIT_CTRL_ADDR_ARRAY1_T;
  275. // bit_ctrl_addr_array2
  276. typedef union {
  277. uint32_t v;
  278. struct
  279. {
  280. uint32_t bit_ctrl_addr_array2 : 12; // [11:0]
  281. uint32_t __31_12 : 20; // [31:12]
  282. } b;
  283. } REG_REG_FW_AP_APB_BIT_CTRL_ADDR_ARRAY2_T;
  284. // bit_ctrl_addr_array3
  285. typedef union {
  286. uint32_t v;
  287. struct
  288. {
  289. uint32_t bit_ctrl_addr_array3 : 12; // [11:0]
  290. uint32_t __31_12 : 20; // [31:12]
  291. } b;
  292. } REG_REG_FW_AP_APB_BIT_CTRL_ADDR_ARRAY3_T;
  293. // bit_ctrl_addr_array4
  294. typedef union {
  295. uint32_t v;
  296. struct
  297. {
  298. uint32_t bit_ctrl_addr_array4 : 12; // [11:0]
  299. uint32_t __31_12 : 20; // [31:12]
  300. } b;
  301. } REG_REG_FW_AP_APB_BIT_CTRL_ADDR_ARRAY4_T;
  302. // bit_ctrl_addr_array5
  303. typedef union {
  304. uint32_t v;
  305. struct
  306. {
  307. uint32_t bit_ctrl_addr_array5 : 12; // [11:0]
  308. uint32_t __31_12 : 20; // [31:12]
  309. } b;
  310. } REG_REG_FW_AP_APB_BIT_CTRL_ADDR_ARRAY5_T;
  311. // bit_ctrl_addr_array6
  312. typedef union {
  313. uint32_t v;
  314. struct
  315. {
  316. uint32_t bit_ctrl_addr_array6 : 12; // [11:0]
  317. uint32_t __31_12 : 20; // [31:12]
  318. } b;
  319. } REG_REG_FW_AP_APB_BIT_CTRL_ADDR_ARRAY6_T;
  320. // bit_ctrl_addr_array7
  321. typedef union {
  322. uint32_t v;
  323. struct
  324. {
  325. uint32_t bit_ctrl_addr_array7 : 12; // [11:0]
  326. uint32_t __31_12 : 20; // [31:12]
  327. } b;
  328. } REG_REG_FW_AP_APB_BIT_CTRL_ADDR_ARRAY7_T;
  329. // bit_ctrl_addr_array8
  330. typedef union {
  331. uint32_t v;
  332. struct
  333. {
  334. uint32_t bit_ctrl_addr_array8 : 12; // [11:0]
  335. uint32_t __31_12 : 20; // [31:12]
  336. } b;
  337. } REG_REG_FW_AP_APB_BIT_CTRL_ADDR_ARRAY8_T;
  338. // bit_ctrl_addr_array9
  339. typedef union {
  340. uint32_t v;
  341. struct
  342. {
  343. uint32_t bit_ctrl_addr_array9 : 12; // [11:0]
  344. uint32_t __31_12 : 20; // [31:12]
  345. } b;
  346. } REG_REG_FW_AP_APB_BIT_CTRL_ADDR_ARRAY9_T;
  347. // bit_ctrl_addr_array10
  348. typedef union {
  349. uint32_t v;
  350. struct
  351. {
  352. uint32_t bit_ctrl_addr_array10 : 12; // [11:0]
  353. uint32_t __31_12 : 20; // [31:12]
  354. } b;
  355. } REG_REG_FW_AP_APB_BIT_CTRL_ADDR_ARRAY10_T;
  356. // bit_ctrl_addr_array11
  357. typedef union {
  358. uint32_t v;
  359. struct
  360. {
  361. uint32_t bit_ctrl_addr_array11 : 12; // [11:0]
  362. uint32_t __31_12 : 20; // [31:12]
  363. } b;
  364. } REG_REG_FW_AP_APB_BIT_CTRL_ADDR_ARRAY11_T;
  365. // bit_ctrl_addr_array12
  366. typedef union {
  367. uint32_t v;
  368. struct
  369. {
  370. uint32_t bit_ctrl_addr_array12 : 12; // [11:0]
  371. uint32_t __31_12 : 20; // [31:12]
  372. } b;
  373. } REG_REG_FW_AP_APB_BIT_CTRL_ADDR_ARRAY12_T;
  374. // bit_ctrl_addr_array13
  375. typedef union {
  376. uint32_t v;
  377. struct
  378. {
  379. uint32_t bit_ctrl_addr_array13 : 12; // [11:0]
  380. uint32_t __31_12 : 20; // [31:12]
  381. } b;
  382. } REG_REG_FW_AP_APB_BIT_CTRL_ADDR_ARRAY13_T;
  383. // bit_ctrl_addr_array14
  384. typedef union {
  385. uint32_t v;
  386. struct
  387. {
  388. uint32_t bit_ctrl_addr_array14 : 12; // [11:0]
  389. uint32_t __31_12 : 20; // [31:12]
  390. } b;
  391. } REG_REG_FW_AP_APB_BIT_CTRL_ADDR_ARRAY14_T;
  392. // bit_ctrl_addr_array15
  393. typedef union {
  394. uint32_t v;
  395. struct
  396. {
  397. uint32_t bit_ctrl_addr_array15 : 12; // [11:0]
  398. uint32_t __31_12 : 20; // [31:12]
  399. } b;
  400. } REG_REG_FW_AP_APB_BIT_CTRL_ADDR_ARRAY15_T;
  401. // reg_rd_ctrl_0
  402. #define REG_FW_AP_APB_CLK_AP_MODE0_RD_SEC (1 << 0)
  403. #define REG_FW_AP_APB_CLK_AP_EN0_RD_SEC (1 << 1)
  404. #define REG_FW_AP_APB_CLK_AP_MODE1_RD_SEC (1 << 2)
  405. #define REG_FW_AP_APB_CLK_AP_EN1_RD_SEC (1 << 3)
  406. #define REG_FW_AP_APB_CLK_AP_MODE2_RD_SEC (1 << 4)
  407. #define REG_FW_AP_APB_CLK_AP_EN2_RD_SEC (1 << 5)
  408. #define REG_FW_AP_APB_AP_RST0_RD_SEC (1 << 6)
  409. #define REG_FW_AP_APB_AP_RST1_RD_SEC (1 << 7)
  410. #define REG_FW_AP_APB_AP_RST2_RD_SEC (1 << 8)
  411. #define REG_FW_AP_APB_M0_LPC_RD_SEC (1 << 9)
  412. #define REG_FW_AP_APB_M1_LPC_RD_SEC (1 << 10)
  413. #define REG_FW_AP_APB_M2_LPC_RD_SEC (1 << 11)
  414. #define REG_FW_AP_APB_M3_LPC_RD_SEC (1 << 12)
  415. #define REG_FW_AP_APB_M4_LPC_RD_SEC (1 << 13)
  416. #define REG_FW_AP_APB_M5_LPC_RD_SEC (1 << 14)
  417. #define REG_FW_AP_APB_M6_LPC_RD_SEC (1 << 15)
  418. #define REG_FW_AP_APB_M7_LPC_RD_SEC (1 << 16)
  419. #define REG_FW_AP_APB_M8_LPC_RD_SEC (1 << 17)
  420. #define REG_FW_AP_APB_M9_LPC_RD_SEC (1 << 18)
  421. #define REG_FW_AP_APB_S0_LPC_RD_SEC (1 << 19)
  422. #define REG_FW_AP_APB_S1_LPC_RD_SEC (1 << 20)
  423. #define REG_FW_AP_APB_S2_LPC_RD_SEC (1 << 21)
  424. #define REG_FW_AP_APB_S3_LPC_RD_SEC (1 << 22)
  425. #define REG_FW_AP_APB_S4_LPC_RD_SEC (1 << 23)
  426. #define REG_FW_AP_APB_S5_LPC_RD_SEC (1 << 24)
  427. #define REG_FW_AP_APB_S6_LPC_RD_SEC (1 << 25)
  428. #define REG_FW_AP_APB_MAIN_LPC_RD_SEC (1 << 26)
  429. #define REG_FW_AP_APB_CACHE_EMMC_SDIO_RD_SEC (1 << 27)
  430. #define REG_FW_AP_APB_MISC_CFG_RD_SEC (1 << 28)
  431. #define REG_FW_AP_APB_CHIP_PROD_ID_RD_SEC (1 << 29)
  432. #define REG_FW_AP_APB_CFG_QOS0_RD_SEC (1 << 30)
  433. #define REG_FW_AP_APB_CFG_QOS1_RD_SEC (1 << 31)
  434. // reg_rd_ctrl_1
  435. #define REG_FW_AP_APB_CFG_QOS2_RD_SEC (1 << 0)
  436. #define REG_FW_AP_APB_DEBUG_MONITOR_RD_SEC (1 << 1)
  437. #define REG_FW_AP_APB_XHB_AWSPARSE_RD_SEC (1 << 2)
  438. #define REG_FW_AP_APB_CLK_MNT26M_TH0_RD_SEC (1 << 3)
  439. #define REG_FW_AP_APB_CLK_MNT26M_TH1_RD_SEC (1 << 4)
  440. #define REG_FW_AP_APB_CLK_MNT26M_TH2_RD_SEC (1 << 5)
  441. #define REG_FW_AP_APB_CLK_MNT26M_TH3_RD_SEC (1 << 6)
  442. #define REG_FW_AP_APB_CLK_MNT32K_TH0_RD_SEC (1 << 7)
  443. #define REG_FW_AP_APB_CLK_MNT32K_TH1_RD_SEC (1 << 8)
  444. #define REG_FW_AP_APB_CLK_MNT_CTRL_RD_SEC (1 << 9)
  445. #define REG_FW_AP_APB_CFG_BRIDGE_RD_SEC (1 << 10)
  446. #define REG_FW_AP_APB_CGM_GATE_AUTO_SEL0_RD_SEC (1 << 11)
  447. #define REG_FW_AP_APB_CGM_GATE_AUTO_SEL1_RD_SEC (1 << 12)
  448. #define REG_FW_AP_APB_CGM_GATE_AUTO_SEL2_RD_SEC (1 << 13)
  449. #define REG_FW_AP_APB_CGM_GATE_AUTO_SEL3_RD_SEC (1 << 14)
  450. #define REG_FW_AP_APB_CGM_GATE_FORCE_EN0_RD_SEC (1 << 15)
  451. #define REG_FW_AP_APB_CGM_GATE_FORCE_EN1_RD_SEC (1 << 16)
  452. #define REG_FW_AP_APB_CGM_GATE_FORCE_EN2_RD_SEC (1 << 17)
  453. #define REG_FW_AP_APB_CGM_GATE_FORCE_EN3_RD_SEC (1 << 18)
  454. #define REG_FW_AP_APB_MNT_GATE_EN_STATUS0_RD_SEC (1 << 19)
  455. #define REG_FW_AP_APB_MNT_GATE_EN_STATUS1_RD_SEC (1 << 20)
  456. #define REG_FW_AP_APB_MNT_GATE_EN_STATUS2_RD_SEC (1 << 21)
  457. #define REG_FW_AP_APB_MNT_GATE_EN_STATUS3_RD_SEC (1 << 22)
  458. #define REG_FW_AP_APB_MNT_CGM_BUSY_STATUS0_RD_SEC (1 << 23)
  459. #define REG_FW_AP_APB_MNT_CGM_BUSY_STATUS1_RD_SEC (1 << 24)
  460. #define REG_FW_AP_APB_MNT_CGM_BUSY_STATUS2_RD_SEC (1 << 25)
  461. #define REG_FW_AP_APB_MNT_CGM_BUSY_STATUS3_RD_SEC (1 << 26)
  462. #define REG_FW_AP_APB_MNT_CGM_BUSY_STATUS4_RD_SEC (1 << 27)
  463. #define REG_FW_AP_APB_CFG_CLK_UART4_RD_SEC (1 << 28)
  464. #define REG_FW_AP_APB_CFG_CLK_UART5_RD_SEC (1 << 29)
  465. #define REG_FW_AP_APB_CFG_CLK_UART6_RD_SEC (1 << 30)
  466. #define REG_FW_AP_APB_CFG_CLK_SPIFLASH1_RD_SEC (1 << 31)
  467. // reg_rd_ctrl_2
  468. #define REG_FW_AP_APB_CFG_CLK_SPIFLASH2_RD_SEC (1 << 0)
  469. #define REG_FW_AP_APB_CFG_CLK_APCPU_DBGEN_RD_SEC (1 << 1)
  470. #define REG_FW_AP_APB_LP_FORCE_RD_SEC (1 << 2)
  471. #define REG_FW_AP_APB_SLEEP_CTRL_RD_SEC (1 << 3)
  472. #define REG_FW_AP_APB_LIGHT_SLEEP_BYPASS0_RD_SEC (1 << 4)
  473. #define REG_FW_AP_APB_LIGHT_SLEEP_BYPASS1_RD_SEC (1 << 5)
  474. #define REG_FW_AP_APB_ANTI_HANG_RD_SEC (1 << 6)
  475. #define REG_FW_AP_APB_AP_APB_RSD0_RD_SEC (1 << 7)
  476. #define REG_FW_AP_APB_AP_APB_RSD1_RD_SEC (1 << 8)
  477. #define REG_FW_AP_APB_AP_APB_RSD2_RD_SEC (1 << 9)
  478. #define REG_FW_AP_APB_AP_APB_RSD3_RD_SEC (1 << 10)
  479. #define REG_FW_AP_APB_AP2PUB_BRIDGE_STATUS_RD_SEC (1 << 11)
  480. #define REG_FW_AP_APB_AP2PUB_BRIDGE_DEBUG_RD_SEC (1 << 12)
  481. // reg_wr_ctrl_0
  482. #define REG_FW_AP_APB_CLK_AP_MODE0_WR_SEC (1 << 0)
  483. #define REG_FW_AP_APB_CLK_AP_EN0_WR_SEC (1 << 1)
  484. #define REG_FW_AP_APB_CLK_AP_MODE1_WR_SEC (1 << 2)
  485. #define REG_FW_AP_APB_CLK_AP_EN1_WR_SEC (1 << 3)
  486. #define REG_FW_AP_APB_CLK_AP_MODE2_WR_SEC (1 << 4)
  487. #define REG_FW_AP_APB_CLK_AP_EN2_WR_SEC (1 << 5)
  488. #define REG_FW_AP_APB_AP_RST0_WR_SEC (1 << 6)
  489. #define REG_FW_AP_APB_AP_RST1_WR_SEC (1 << 7)
  490. #define REG_FW_AP_APB_AP_RST2_WR_SEC (1 << 8)
  491. #define REG_FW_AP_APB_M0_LPC_WR_SEC (1 << 9)
  492. #define REG_FW_AP_APB_M1_LPC_WR_SEC (1 << 10)
  493. #define REG_FW_AP_APB_M2_LPC_WR_SEC (1 << 11)
  494. #define REG_FW_AP_APB_M3_LPC_WR_SEC (1 << 12)
  495. #define REG_FW_AP_APB_M4_LPC_WR_SEC (1 << 13)
  496. #define REG_FW_AP_APB_M5_LPC_WR_SEC (1 << 14)
  497. #define REG_FW_AP_APB_M6_LPC_WR_SEC (1 << 15)
  498. #define REG_FW_AP_APB_M7_LPC_WR_SEC (1 << 16)
  499. #define REG_FW_AP_APB_M8_LPC_WR_SEC (1 << 17)
  500. #define REG_FW_AP_APB_M9_LPC_WR_SEC (1 << 18)
  501. #define REG_FW_AP_APB_S0_LPC_WR_SEC (1 << 19)
  502. #define REG_FW_AP_APB_S1_LPC_WR_SEC (1 << 20)
  503. #define REG_FW_AP_APB_S2_LPC_WR_SEC (1 << 21)
  504. #define REG_FW_AP_APB_S3_LPC_WR_SEC (1 << 22)
  505. #define REG_FW_AP_APB_S4_LPC_WR_SEC (1 << 23)
  506. #define REG_FW_AP_APB_S5_LPC_WR_SEC (1 << 24)
  507. #define REG_FW_AP_APB_S6_LPC_WR_SEC (1 << 25)
  508. #define REG_FW_AP_APB_MAIN_LPC_WR_SEC (1 << 26)
  509. #define REG_FW_AP_APB_CACHE_EMMC_SDIO_WR_SEC (1 << 27)
  510. #define REG_FW_AP_APB_MISC_CFG_WR_SEC (1 << 28)
  511. #define REG_FW_AP_APB_CHIP_PROD_ID_WR_SEC (1 << 29)
  512. #define REG_FW_AP_APB_CFG_QOS0_WR_SEC (1 << 30)
  513. #define REG_FW_AP_APB_CFG_QOS1_WR_SEC (1 << 31)
  514. // reg_wr_ctrl_1
  515. #define REG_FW_AP_APB_CFG_QOS2_WR_SEC (1 << 0)
  516. #define REG_FW_AP_APB_DEBUG_MONITOR_WR_SEC (1 << 1)
  517. #define REG_FW_AP_APB_XHB_AWSPARSE_WR_SEC (1 << 2)
  518. #define REG_FW_AP_APB_CLK_MNT26M_TH0_WR_SEC (1 << 3)
  519. #define REG_FW_AP_APB_CLK_MNT26M_TH1_WR_SEC (1 << 4)
  520. #define REG_FW_AP_APB_CLK_MNT26M_TH2_WR_SEC (1 << 5)
  521. #define REG_FW_AP_APB_CLK_MNT26M_TH3_WR_SEC (1 << 6)
  522. #define REG_FW_AP_APB_CLK_MNT32K_TH0_WR_SEC (1 << 7)
  523. #define REG_FW_AP_APB_CLK_MNT32K_TH1_WR_SEC (1 << 8)
  524. #define REG_FW_AP_APB_CLK_MNT_CTRL_WR_SEC (1 << 9)
  525. #define REG_FW_AP_APB_CFG_BRIDGE_WR_SEC (1 << 10)
  526. #define REG_FW_AP_APB_CGM_GATE_AUTO_SEL0_WR_SEC (1 << 11)
  527. #define REG_FW_AP_APB_CGM_GATE_AUTO_SEL1_WR_SEC (1 << 12)
  528. #define REG_FW_AP_APB_CGM_GATE_AUTO_SEL2_WR_SEC (1 << 13)
  529. #define REG_FW_AP_APB_CGM_GATE_AUTO_SEL3_WR_SEC (1 << 14)
  530. #define REG_FW_AP_APB_CGM_GATE_FORCE_EN0_WR_SEC (1 << 15)
  531. #define REG_FW_AP_APB_CGM_GATE_FORCE_EN1_WR_SEC (1 << 16)
  532. #define REG_FW_AP_APB_CGM_GATE_FORCE_EN2_WR_SEC (1 << 17)
  533. #define REG_FW_AP_APB_CGM_GATE_FORCE_EN3_WR_SEC (1 << 18)
  534. #define REG_FW_AP_APB_MNT_GATE_EN_STATUS0_WR_SEC (1 << 19)
  535. #define REG_FW_AP_APB_MNT_GATE_EN_STATUS1_WR_SEC (1 << 20)
  536. #define REG_FW_AP_APB_MNT_GATE_EN_STATUS2_WR_SEC (1 << 21)
  537. #define REG_FW_AP_APB_MNT_GATE_EN_STATUS3_WR_SEC (1 << 22)
  538. #define REG_FW_AP_APB_MNT_CGM_BUSY_STATUS0_WR_SEC (1 << 23)
  539. #define REG_FW_AP_APB_MNT_CGM_BUSY_STATUS1_WR_SEC (1 << 24)
  540. #define REG_FW_AP_APB_MNT_CGM_BUSY_STATUS2_WR_SEC (1 << 25)
  541. #define REG_FW_AP_APB_MNT_CGM_BUSY_STATUS3_WR_SEC (1 << 26)
  542. #define REG_FW_AP_APB_MNT_CGM_BUSY_STATUS4_WR_SEC (1 << 27)
  543. #define REG_FW_AP_APB_CFG_CLK_UART4_WR_SEC (1 << 28)
  544. #define REG_FW_AP_APB_CFG_CLK_UART5_WR_SEC (1 << 29)
  545. #define REG_FW_AP_APB_CFG_CLK_UART6_WR_SEC (1 << 30)
  546. #define REG_FW_AP_APB_CFG_CLK_SPIFLASH1_WR_SEC (1 << 31)
  547. // reg_wr_ctrl_2
  548. #define REG_FW_AP_APB_CFG_CLK_SPIFLASH2_WR_SEC (1 << 0)
  549. #define REG_FW_AP_APB_CFG_CLK_APCPU_DBGEN_WR_SEC (1 << 1)
  550. #define REG_FW_AP_APB_LP_FORCE_WR_SEC (1 << 2)
  551. #define REG_FW_AP_APB_SLEEP_CTRL_WR_SEC (1 << 3)
  552. #define REG_FW_AP_APB_LIGHT_SLEEP_BYPASS0_WR_SEC (1 << 4)
  553. #define REG_FW_AP_APB_LIGHT_SLEEP_BYPASS1_WR_SEC (1 << 5)
  554. #define REG_FW_AP_APB_ANTI_HANG_WR_SEC (1 << 6)
  555. #define REG_FW_AP_APB_AP_APB_RSD0_WR_SEC (1 << 7)
  556. #define REG_FW_AP_APB_AP_APB_RSD1_WR_SEC (1 << 8)
  557. #define REG_FW_AP_APB_AP_APB_RSD2_WR_SEC (1 << 9)
  558. #define REG_FW_AP_APB_AP_APB_RSD3_WR_SEC (1 << 10)
  559. #define REG_FW_AP_APB_AP2PUB_BRIDGE_STATUS_WR_SEC (1 << 11)
  560. #define REG_FW_AP_APB_AP2PUB_BRIDGE_DEBUG_WR_SEC (1 << 12)
  561. // bit_ctrl_addr_array0
  562. #define REG_FW_AP_APB_BIT_CTRL_ADDR_ARRAY0(n) (((n)&0xfff) << 0)
  563. // bit_ctrl_addr_array1
  564. #define REG_FW_AP_APB_BIT_CTRL_ADDR_ARRAY1(n) (((n)&0xfff) << 0)
  565. // bit_ctrl_addr_array2
  566. #define REG_FW_AP_APB_BIT_CTRL_ADDR_ARRAY2(n) (((n)&0xfff) << 0)
  567. // bit_ctrl_addr_array3
  568. #define REG_FW_AP_APB_BIT_CTRL_ADDR_ARRAY3(n) (((n)&0xfff) << 0)
  569. // bit_ctrl_addr_array4
  570. #define REG_FW_AP_APB_BIT_CTRL_ADDR_ARRAY4(n) (((n)&0xfff) << 0)
  571. // bit_ctrl_addr_array5
  572. #define REG_FW_AP_APB_BIT_CTRL_ADDR_ARRAY5(n) (((n)&0xfff) << 0)
  573. // bit_ctrl_addr_array6
  574. #define REG_FW_AP_APB_BIT_CTRL_ADDR_ARRAY6(n) (((n)&0xfff) << 0)
  575. // bit_ctrl_addr_array7
  576. #define REG_FW_AP_APB_BIT_CTRL_ADDR_ARRAY7(n) (((n)&0xfff) << 0)
  577. // bit_ctrl_addr_array8
  578. #define REG_FW_AP_APB_BIT_CTRL_ADDR_ARRAY8(n) (((n)&0xfff) << 0)
  579. // bit_ctrl_addr_array9
  580. #define REG_FW_AP_APB_BIT_CTRL_ADDR_ARRAY9(n) (((n)&0xfff) << 0)
  581. // bit_ctrl_addr_array10
  582. #define REG_FW_AP_APB_BIT_CTRL_ADDR_ARRAY10(n) (((n)&0xfff) << 0)
  583. // bit_ctrl_addr_array11
  584. #define REG_FW_AP_APB_BIT_CTRL_ADDR_ARRAY11(n) (((n)&0xfff) << 0)
  585. // bit_ctrl_addr_array12
  586. #define REG_FW_AP_APB_BIT_CTRL_ADDR_ARRAY12(n) (((n)&0xfff) << 0)
  587. // bit_ctrl_addr_array13
  588. #define REG_FW_AP_APB_BIT_CTRL_ADDR_ARRAY13(n) (((n)&0xfff) << 0)
  589. // bit_ctrl_addr_array14
  590. #define REG_FW_AP_APB_BIT_CTRL_ADDR_ARRAY14(n) (((n)&0xfff) << 0)
  591. // bit_ctrl_addr_array15
  592. #define REG_FW_AP_APB_BIT_CTRL_ADDR_ARRAY15(n) (((n)&0xfff) << 0)
  593. #endif // _REG_FW_AP_APB_H_