reg_fw_idle_lps.h 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619
  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_IDLE_LPS_H_
  13. #define _REG_FW_IDLE_LPS_H_
  14. // Auto generated by dtools(see dtools.txt for its version).
  15. // Don't edit it manually!
  16. #define REG_REG_FW_IDLE_LPS_BASE (0x51314000)
  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_wr_ctrl_addr_array0; // 0x00000018
  26. uint32_t bit_wr_ctrl_addr_array1; // 0x0000001c
  27. uint32_t bit_wr_ctrl_addr_array2; // 0x00000020
  28. uint32_t bit_wr_ctrl_addr_array3; // 0x00000024
  29. uint32_t bit_wr_ctrl_addr_array4; // 0x00000028
  30. uint32_t bit_wr_ctrl_addr_array5; // 0x0000002c
  31. uint32_t bit_wr_ctrl_addr_array6; // 0x00000030
  32. uint32_t bit_wr_ctrl_addr_array7; // 0x00000034
  33. uint32_t bit_wr_ctrl_addr_array8; // 0x00000038
  34. uint32_t bit_wr_ctrl_addr_array9; // 0x0000003c
  35. uint32_t bit_wr_ctrl_addr_array10; // 0x00000040
  36. uint32_t bit_wr_ctrl_addr_array11; // 0x00000044
  37. uint32_t bit_wr_ctrl_addr_array12; // 0x00000048
  38. uint32_t bit_wr_ctrl_addr_array13; // 0x0000004c
  39. uint32_t bit_wr_ctrl_addr_array14; // 0x00000050
  40. uint32_t bit_wr_ctrl_addr_array15; // 0x00000054
  41. uint32_t bit_wr_ctrl_array0; // 0x00000058
  42. uint32_t bit_wr_ctrl_array1; // 0x0000005c
  43. uint32_t bit_wr_ctrl_array2; // 0x00000060
  44. uint32_t bit_wr_ctrl_array3; // 0x00000064
  45. uint32_t bit_wr_ctrl_array4; // 0x00000068
  46. uint32_t bit_wr_ctrl_array5; // 0x0000006c
  47. uint32_t bit_wr_ctrl_array6; // 0x00000070
  48. uint32_t bit_wr_ctrl_array7; // 0x00000074
  49. uint32_t bit_wr_ctrl_array8; // 0x00000078
  50. uint32_t bit_wr_ctrl_array9; // 0x0000007c
  51. uint32_t bit_wr_ctrl_array10; // 0x00000080
  52. uint32_t bit_wr_ctrl_array11; // 0x00000084
  53. uint32_t bit_wr_ctrl_array12; // 0x00000088
  54. uint32_t bit_wr_ctrl_array13; // 0x0000008c
  55. uint32_t bit_wr_ctrl_array14; // 0x00000090
  56. uint32_t bit_wr_ctrl_array15; // 0x00000094
  57. } HWP_REG_FW_IDLE_LPS_T;
  58. #define hwp_regFwIdleLps ((HWP_REG_FW_IDLE_LPS_T *)REG_ACCESS_ADDRESS(REG_REG_FW_IDLE_LPS_BASE))
  59. // reg_rd_ctrl_0
  60. typedef union {
  61. uint32_t v;
  62. struct
  63. {
  64. uint32_t lps_ctrl_ap_rd_sec : 1; // [0]
  65. uint32_t ap_sig_en_rd_sec : 1; // [1]
  66. uint32_t ap_lps_sig_time_rd_sec : 1; // [2]
  67. uint32_t lps_ctrl_cp_rd_sec : 1; // [3]
  68. uint32_t cp_pm2_sta_rd_sec : 1; // [4]
  69. uint32_t cp_sig_en_rd_sec : 1; // [5]
  70. uint32_t cp_lps_sig_time_rd_sec : 1; // [6]
  71. uint32_t pm2_off_time_rd_sec : 1; // [7]
  72. uint32_t pm2_on_time_rd_sec : 1; // [8]
  73. uint32_t pm2_on_off_time_rd_sec : 1; // [9]
  74. uint32_t ap_pm2_sta_rd_sec : 1; // [10]
  75. uint32_t ap_pm2_mode_en_rd_sec : 1; // [11]
  76. uint32_t aon_sig_en_rd_sec : 1; // [12]
  77. uint32_t sleep_prot_time_rd_sec : 1; // [13]
  78. uint32_t eliminate_jitter_rd_sec : 1; // [14]
  79. uint32_t ap_lps_sta_rd_sec : 1; // [15]
  80. uint32_t cp_inten_rd_sec : 1; // [16]
  81. uint32_t cp_int_sta_rd_sec : 1; // [17]
  82. uint32_t ap_inten_rd_sec : 1; // [18]
  83. uint32_t ap_int_sta_rd_sec : 1; // [19]
  84. uint32_t ap_awk_en_rd_sec : 1; // [20]
  85. uint32_t ap_awk_st_rd_sec : 1; // [21]
  86. uint32_t cp_awk_en_rd_sec : 1; // [22]
  87. uint32_t cp_awk_st_rd_sec : 1; // [23]
  88. uint32_t cp_lps_sta_rd_sec : 1; // [24]
  89. uint32_t cp_p1_time_rd_sec : 1; // [25]
  90. uint32_t cp_p2_time_rd_sec : 1; // [26]
  91. uint32_t lps_t_time1_rd_sec : 1; // [27]
  92. uint32_t lps_t_time2_rd_sec : 1; // [28]
  93. uint32_t lps_t_time3_rd_sec : 1; // [29]
  94. uint32_t lps_t_time4_rd_sec : 1; // [30]
  95. uint32_t lps_t_time5_rd_sec : 1; // [31]
  96. } b;
  97. } REG_REG_FW_IDLE_LPS_REG_RD_CTRL_0_T;
  98. // reg_rd_ctrl_1
  99. typedef union {
  100. uint32_t v;
  101. struct
  102. {
  103. uint32_t lps_t_time6_rd_sec : 1; // [0]
  104. uint32_t load_en_rd_sec : 1; // [1]
  105. uint32_t lps_32k_ref_rd_sec : 1; // [2]
  106. uint32_t ref_32k_fnl_rd_sec : 1; // [3]
  107. uint32_t lps_tpctrl_rd_sec : 1; // [4]
  108. uint32_t lps_tp_sta_rd_sec : 1; // [5]
  109. uint32_t load_time_rd_sec : 1; // [6]
  110. uint32_t mon_sel_rd_sec : 1; // [7]
  111. uint32_t lps_res0_rd_sec : 1; // [8]
  112. uint32_t lps_res1_rd_sec : 1; // [9]
  113. uint32_t lps_res2_rd_sec : 1; // [10]
  114. uint32_t lps_res3_rd_sec : 1; // [11]
  115. uint32_t lps_res4_rd_sec : 1; // [12]
  116. uint32_t lps_res5_rd_sec : 1; // [13]
  117. uint32_t lps_res6_rd_sec : 1; // [14]
  118. uint32_t lps_res7_rd_sec : 1; // [15]
  119. uint32_t lps_res8_rd_sec : 1; // [16]
  120. uint32_t lps_res9_rd_sec : 1; // [17]
  121. uint32_t lps_res10_rd_sec : 1; // [18]
  122. uint32_t lps_res11_rd_sec : 1; // [19]
  123. uint32_t cp_p1_en_rd_sec : 1; // [20]
  124. uint32_t cp_p2_en_rd_sec : 1; // [21]
  125. uint32_t lps_t1_en_rd_sec : 1; // [22]
  126. uint32_t lps_t2_en_rd_sec : 1; // [23]
  127. uint32_t lps_t3_en_rd_sec : 1; // [24]
  128. uint32_t lps_t4_en_rd_sec : 1; // [25]
  129. uint32_t lps_t5_en_rd_sec : 1; // [26]
  130. uint32_t lps_t6_en_rd_sec : 1; // [27]
  131. uint32_t ap_awk_en1_rd_sec : 1; // [28]
  132. uint32_t ap_awk_st1_rd_sec : 1; // [29]
  133. uint32_t cp_awk_en1_rd_sec : 1; // [30]
  134. uint32_t cp_awk_st1_rd_sec : 1; // [31]
  135. } b;
  136. } REG_REG_FW_IDLE_LPS_REG_RD_CTRL_1_T;
  137. // reg_rd_ctrl_2
  138. typedef union {
  139. uint32_t v;
  140. struct
  141. {
  142. uint32_t lps_t_time7_rd_sec : 1; // [0]
  143. uint32_t lps_t_time8_rd_sec : 1; // [1]
  144. uint32_t lps_t_time9_rd_sec : 1; // [2]
  145. uint32_t lps_t7_en_rd_sec : 1; // [3]
  146. uint32_t lps_t8_en_rd_sec : 1; // [4]
  147. uint32_t lps_t9_en_rd_sec : 1; // [5]
  148. uint32_t cp_pm2_mode_en_rd_sec : 1; // [6]
  149. uint32_t __31_7 : 25; // [31:7]
  150. } b;
  151. } REG_REG_FW_IDLE_LPS_REG_RD_CTRL_2_T;
  152. // reg_wr_ctrl_0
  153. typedef union {
  154. uint32_t v;
  155. struct
  156. {
  157. uint32_t lps_ctrl_ap_wr_sec : 1; // [0]
  158. uint32_t ap_sig_en_wr_sec : 1; // [1]
  159. uint32_t ap_lps_sig_time_wr_sec : 1; // [2]
  160. uint32_t lps_ctrl_cp_wr_sec : 1; // [3]
  161. uint32_t cp_pm2_sta_wr_sec : 1; // [4]
  162. uint32_t cp_sig_en_wr_sec : 1; // [5]
  163. uint32_t cp_lps_sig_time_wr_sec : 1; // [6]
  164. uint32_t pm2_off_time_wr_sec : 1; // [7]
  165. uint32_t pm2_on_time_wr_sec : 1; // [8]
  166. uint32_t pm2_on_off_time_wr_sec : 1; // [9]
  167. uint32_t ap_pm2_sta_wr_sec : 1; // [10]
  168. uint32_t ap_pm2_mode_en_wr_sec : 1; // [11]
  169. uint32_t aon_sig_en_wr_sec : 1; // [12]
  170. uint32_t sleep_prot_time_wr_sec : 1; // [13]
  171. uint32_t eliminate_jitter_wr_sec : 1; // [14]
  172. uint32_t ap_lps_sta_wr_sec : 1; // [15]
  173. uint32_t cp_inten_wr_sec : 1; // [16]
  174. uint32_t cp_int_sta_wr_sec : 1; // [17]
  175. uint32_t ap_inten_wr_sec : 1; // [18]
  176. uint32_t ap_int_sta_wr_sec : 1; // [19]
  177. uint32_t ap_awk_en_wr_sec : 1; // [20]
  178. uint32_t ap_awk_st_wr_sec : 1; // [21]
  179. uint32_t cp_awk_en_wr_sec : 1; // [22]
  180. uint32_t cp_awk_st_wr_sec : 1; // [23]
  181. uint32_t cp_lps_sta_wr_sec : 1; // [24]
  182. uint32_t cp_p1_time_wr_sec : 1; // [25]
  183. uint32_t cp_p2_time_wr_sec : 1; // [26]
  184. uint32_t lps_t_time1_wr_sec : 1; // [27]
  185. uint32_t lps_t_time2_wr_sec : 1; // [28]
  186. uint32_t lps_t_time3_wr_sec : 1; // [29]
  187. uint32_t lps_t_time4_wr_sec : 1; // [30]
  188. uint32_t lps_t_time5_wr_sec : 1; // [31]
  189. } b;
  190. } REG_REG_FW_IDLE_LPS_REG_WR_CTRL_0_T;
  191. // reg_wr_ctrl_1
  192. typedef union {
  193. uint32_t v;
  194. struct
  195. {
  196. uint32_t lps_t_time6_wr_sec : 1; // [0]
  197. uint32_t load_en_wr_sec : 1; // [1]
  198. uint32_t lps_32k_ref_wr_sec : 1; // [2]
  199. uint32_t ref_32k_fnl_wr_sec : 1; // [3]
  200. uint32_t lps_tpctrl_wr_sec : 1; // [4]
  201. uint32_t lps_tp_sta_wr_sec : 1; // [5]
  202. uint32_t load_time_wr_sec : 1; // [6]
  203. uint32_t mon_sel_wr_sec : 1; // [7]
  204. uint32_t lps_res0_wr_sec : 1; // [8]
  205. uint32_t lps_res1_wr_sec : 1; // [9]
  206. uint32_t lps_res2_wr_sec : 1; // [10]
  207. uint32_t lps_res3_wr_sec : 1; // [11]
  208. uint32_t lps_res4_wr_sec : 1; // [12]
  209. uint32_t lps_res5_wr_sec : 1; // [13]
  210. uint32_t lps_res6_wr_sec : 1; // [14]
  211. uint32_t lps_res7_wr_sec : 1; // [15]
  212. uint32_t lps_res8_wr_sec : 1; // [16]
  213. uint32_t lps_res9_wr_sec : 1; // [17]
  214. uint32_t lps_res10_wr_sec : 1; // [18]
  215. uint32_t lps_res11_wr_sec : 1; // [19]
  216. uint32_t cp_p1_en_wr_sec : 1; // [20]
  217. uint32_t cp_p2_en_wr_sec : 1; // [21]
  218. uint32_t lps_t1_en_wr_sec : 1; // [22]
  219. uint32_t lps_t2_en_wr_sec : 1; // [23]
  220. uint32_t lps_t3_en_wr_sec : 1; // [24]
  221. uint32_t lps_t4_en_wr_sec : 1; // [25]
  222. uint32_t lps_t5_en_wr_sec : 1; // [26]
  223. uint32_t lps_t6_en_wr_sec : 1; // [27]
  224. uint32_t ap_awk_en1_wr_sec : 1; // [28]
  225. uint32_t ap_awk_st1_wr_sec : 1; // [29]
  226. uint32_t cp_awk_en1_wr_sec : 1; // [30]
  227. uint32_t cp_awk_st1_wr_sec : 1; // [31]
  228. } b;
  229. } REG_REG_FW_IDLE_LPS_REG_WR_CTRL_1_T;
  230. // reg_wr_ctrl_2
  231. typedef union {
  232. uint32_t v;
  233. struct
  234. {
  235. uint32_t lps_t_time7_wr_sec : 1; // [0]
  236. uint32_t lps_t_time8_wr_sec : 1; // [1]
  237. uint32_t lps_t_time9_wr_sec : 1; // [2]
  238. uint32_t lps_t7_en_wr_sec : 1; // [3]
  239. uint32_t lps_t8_en_wr_sec : 1; // [4]
  240. uint32_t lps_t9_en_wr_sec : 1; // [5]
  241. uint32_t cp_pm2_mode_en_wr_sec : 1; // [6]
  242. uint32_t __31_7 : 25; // [31:7]
  243. } b;
  244. } REG_REG_FW_IDLE_LPS_REG_WR_CTRL_2_T;
  245. // bit_wr_ctrl_addr_array0
  246. typedef union {
  247. uint32_t v;
  248. struct
  249. {
  250. uint32_t bit_wr_ctrl_addr_array0 : 12; // [11:0]
  251. uint32_t __31_12 : 20; // [31:12]
  252. } b;
  253. } REG_REG_FW_IDLE_LPS_BIT_WR_CTRL_ADDR_ARRAY0_T;
  254. // bit_wr_ctrl_addr_array1
  255. typedef union {
  256. uint32_t v;
  257. struct
  258. {
  259. uint32_t bit_wr_ctrl_addr_array1 : 12; // [11:0]
  260. uint32_t __31_12 : 20; // [31:12]
  261. } b;
  262. } REG_REG_FW_IDLE_LPS_BIT_WR_CTRL_ADDR_ARRAY1_T;
  263. // bit_wr_ctrl_addr_array2
  264. typedef union {
  265. uint32_t v;
  266. struct
  267. {
  268. uint32_t bit_wr_ctrl_addr_array2 : 12; // [11:0]
  269. uint32_t __31_12 : 20; // [31:12]
  270. } b;
  271. } REG_REG_FW_IDLE_LPS_BIT_WR_CTRL_ADDR_ARRAY2_T;
  272. // bit_wr_ctrl_addr_array3
  273. typedef union {
  274. uint32_t v;
  275. struct
  276. {
  277. uint32_t bit_wr_ctrl_addr_array3 : 12; // [11:0]
  278. uint32_t __31_12 : 20; // [31:12]
  279. } b;
  280. } REG_REG_FW_IDLE_LPS_BIT_WR_CTRL_ADDR_ARRAY3_T;
  281. // bit_wr_ctrl_addr_array4
  282. typedef union {
  283. uint32_t v;
  284. struct
  285. {
  286. uint32_t bit_wr_ctrl_addr_array4 : 12; // [11:0]
  287. uint32_t __31_12 : 20; // [31:12]
  288. } b;
  289. } REG_REG_FW_IDLE_LPS_BIT_WR_CTRL_ADDR_ARRAY4_T;
  290. // bit_wr_ctrl_addr_array5
  291. typedef union {
  292. uint32_t v;
  293. struct
  294. {
  295. uint32_t bit_wr_ctrl_addr_array5 : 12; // [11:0]
  296. uint32_t __31_12 : 20; // [31:12]
  297. } b;
  298. } REG_REG_FW_IDLE_LPS_BIT_WR_CTRL_ADDR_ARRAY5_T;
  299. // bit_wr_ctrl_addr_array6
  300. typedef union {
  301. uint32_t v;
  302. struct
  303. {
  304. uint32_t bit_wr_ctrl_addr_array6 : 12; // [11:0]
  305. uint32_t __31_12 : 20; // [31:12]
  306. } b;
  307. } REG_REG_FW_IDLE_LPS_BIT_WR_CTRL_ADDR_ARRAY6_T;
  308. // bit_wr_ctrl_addr_array7
  309. typedef union {
  310. uint32_t v;
  311. struct
  312. {
  313. uint32_t bit_wr_ctrl_addr_array7 : 12; // [11:0]
  314. uint32_t __31_12 : 20; // [31:12]
  315. } b;
  316. } REG_REG_FW_IDLE_LPS_BIT_WR_CTRL_ADDR_ARRAY7_T;
  317. // bit_wr_ctrl_addr_array8
  318. typedef union {
  319. uint32_t v;
  320. struct
  321. {
  322. uint32_t bit_wr_ctrl_addr_array8 : 12; // [11:0]
  323. uint32_t __31_12 : 20; // [31:12]
  324. } b;
  325. } REG_REG_FW_IDLE_LPS_BIT_WR_CTRL_ADDR_ARRAY8_T;
  326. // bit_wr_ctrl_addr_array9
  327. typedef union {
  328. uint32_t v;
  329. struct
  330. {
  331. uint32_t bit_wr_ctrl_addr_array9 : 12; // [11:0]
  332. uint32_t __31_12 : 20; // [31:12]
  333. } b;
  334. } REG_REG_FW_IDLE_LPS_BIT_WR_CTRL_ADDR_ARRAY9_T;
  335. // bit_wr_ctrl_addr_array10
  336. typedef union {
  337. uint32_t v;
  338. struct
  339. {
  340. uint32_t bit_wr_ctrl_addr_array10 : 12; // [11:0]
  341. uint32_t __31_12 : 20; // [31:12]
  342. } b;
  343. } REG_REG_FW_IDLE_LPS_BIT_WR_CTRL_ADDR_ARRAY10_T;
  344. // bit_wr_ctrl_addr_array11
  345. typedef union {
  346. uint32_t v;
  347. struct
  348. {
  349. uint32_t bit_wr_ctrl_addr_array11 : 12; // [11:0]
  350. uint32_t __31_12 : 20; // [31:12]
  351. } b;
  352. } REG_REG_FW_IDLE_LPS_BIT_WR_CTRL_ADDR_ARRAY11_T;
  353. // bit_wr_ctrl_addr_array12
  354. typedef union {
  355. uint32_t v;
  356. struct
  357. {
  358. uint32_t bit_wr_ctrl_addr_array12 : 12; // [11:0]
  359. uint32_t __31_12 : 20; // [31:12]
  360. } b;
  361. } REG_REG_FW_IDLE_LPS_BIT_WR_CTRL_ADDR_ARRAY12_T;
  362. // bit_wr_ctrl_addr_array13
  363. typedef union {
  364. uint32_t v;
  365. struct
  366. {
  367. uint32_t bit_wr_ctrl_addr_array13 : 12; // [11:0]
  368. uint32_t __31_12 : 20; // [31:12]
  369. } b;
  370. } REG_REG_FW_IDLE_LPS_BIT_WR_CTRL_ADDR_ARRAY13_T;
  371. // bit_wr_ctrl_addr_array14
  372. typedef union {
  373. uint32_t v;
  374. struct
  375. {
  376. uint32_t bit_wr_ctrl_addr_array14 : 12; // [11:0]
  377. uint32_t __31_12 : 20; // [31:12]
  378. } b;
  379. } REG_REG_FW_IDLE_LPS_BIT_WR_CTRL_ADDR_ARRAY14_T;
  380. // bit_wr_ctrl_addr_array15
  381. typedef union {
  382. uint32_t v;
  383. struct
  384. {
  385. uint32_t bit_wr_ctrl_addr_array15 : 12; // [11:0]
  386. uint32_t __31_12 : 20; // [31:12]
  387. } b;
  388. } REG_REG_FW_IDLE_LPS_BIT_WR_CTRL_ADDR_ARRAY15_T;
  389. // reg_rd_ctrl_0
  390. #define REG_FW_IDLE_LPS_LPS_CTRL_AP_RD_SEC (1 << 0)
  391. #define REG_FW_IDLE_LPS_AP_SIG_EN_RD_SEC (1 << 1)
  392. #define REG_FW_IDLE_LPS_AP_LPS_SIG_TIME_RD_SEC (1 << 2)
  393. #define REG_FW_IDLE_LPS_LPS_CTRL_CP_RD_SEC (1 << 3)
  394. #define REG_FW_IDLE_LPS_CP_PM2_STA_RD_SEC (1 << 4)
  395. #define REG_FW_IDLE_LPS_CP_SIG_EN_RD_SEC (1 << 5)
  396. #define REG_FW_IDLE_LPS_CP_LPS_SIG_TIME_RD_SEC (1 << 6)
  397. #define REG_FW_IDLE_LPS_PM2_OFF_TIME_RD_SEC (1 << 7)
  398. #define REG_FW_IDLE_LPS_PM2_ON_TIME_RD_SEC (1 << 8)
  399. #define REG_FW_IDLE_LPS_PM2_ON_OFF_TIME_RD_SEC (1 << 9)
  400. #define REG_FW_IDLE_LPS_AP_PM2_STA_RD_SEC (1 << 10)
  401. #define REG_FW_IDLE_LPS_AP_PM2_MODE_EN_RD_SEC (1 << 11)
  402. #define REG_FW_IDLE_LPS_AON_SIG_EN_RD_SEC (1 << 12)
  403. #define REG_FW_IDLE_LPS_SLEEP_PROT_TIME_RD_SEC (1 << 13)
  404. #define REG_FW_IDLE_LPS_ELIMINATE_JITTER_RD_SEC (1 << 14)
  405. #define REG_FW_IDLE_LPS_AP_LPS_STA_RD_SEC (1 << 15)
  406. #define REG_FW_IDLE_LPS_CP_INTEN_RD_SEC (1 << 16)
  407. #define REG_FW_IDLE_LPS_CP_INT_STA_RD_SEC (1 << 17)
  408. #define REG_FW_IDLE_LPS_AP_INTEN_RD_SEC (1 << 18)
  409. #define REG_FW_IDLE_LPS_AP_INT_STA_RD_SEC (1 << 19)
  410. #define REG_FW_IDLE_LPS_AP_AWK_EN_RD_SEC (1 << 20)
  411. #define REG_FW_IDLE_LPS_AP_AWK_ST_RD_SEC (1 << 21)
  412. #define REG_FW_IDLE_LPS_CP_AWK_EN_RD_SEC (1 << 22)
  413. #define REG_FW_IDLE_LPS_CP_AWK_ST_RD_SEC (1 << 23)
  414. #define REG_FW_IDLE_LPS_CP_LPS_STA_RD_SEC (1 << 24)
  415. #define REG_FW_IDLE_LPS_CP_P1_TIME_RD_SEC (1 << 25)
  416. #define REG_FW_IDLE_LPS_CP_P2_TIME_RD_SEC (1 << 26)
  417. #define REG_FW_IDLE_LPS_LPS_T_TIME1_RD_SEC (1 << 27)
  418. #define REG_FW_IDLE_LPS_LPS_T_TIME2_RD_SEC (1 << 28)
  419. #define REG_FW_IDLE_LPS_LPS_T_TIME3_RD_SEC (1 << 29)
  420. #define REG_FW_IDLE_LPS_LPS_T_TIME4_RD_SEC (1 << 30)
  421. #define REG_FW_IDLE_LPS_LPS_T_TIME5_RD_SEC (1 << 31)
  422. // reg_rd_ctrl_1
  423. #define REG_FW_IDLE_LPS_LPS_T_TIME6_RD_SEC (1 << 0)
  424. #define REG_FW_IDLE_LPS_LOAD_EN_RD_SEC (1 << 1)
  425. #define REG_FW_IDLE_LPS_LPS_32K_REF_RD_SEC (1 << 2)
  426. #define REG_FW_IDLE_LPS_REF_32K_FNL_RD_SEC (1 << 3)
  427. #define REG_FW_IDLE_LPS_LPS_TPCTRL_RD_SEC (1 << 4)
  428. #define REG_FW_IDLE_LPS_LPS_TP_STA_RD_SEC (1 << 5)
  429. #define REG_FW_IDLE_LPS_LOAD_TIME_RD_SEC (1 << 6)
  430. #define REG_FW_IDLE_LPS_MON_SEL_RD_SEC (1 << 7)
  431. #define REG_FW_IDLE_LPS_LPS_RES0_RD_SEC (1 << 8)
  432. #define REG_FW_IDLE_LPS_LPS_RES1_RD_SEC (1 << 9)
  433. #define REG_FW_IDLE_LPS_LPS_RES2_RD_SEC (1 << 10)
  434. #define REG_FW_IDLE_LPS_LPS_RES3_RD_SEC (1 << 11)
  435. #define REG_FW_IDLE_LPS_LPS_RES4_RD_SEC (1 << 12)
  436. #define REG_FW_IDLE_LPS_LPS_RES5_RD_SEC (1 << 13)
  437. #define REG_FW_IDLE_LPS_LPS_RES6_RD_SEC (1 << 14)
  438. #define REG_FW_IDLE_LPS_LPS_RES7_RD_SEC (1 << 15)
  439. #define REG_FW_IDLE_LPS_LPS_RES8_RD_SEC (1 << 16)
  440. #define REG_FW_IDLE_LPS_LPS_RES9_RD_SEC (1 << 17)
  441. #define REG_FW_IDLE_LPS_LPS_RES10_RD_SEC (1 << 18)
  442. #define REG_FW_IDLE_LPS_LPS_RES11_RD_SEC (1 << 19)
  443. #define REG_FW_IDLE_LPS_CP_P1_EN_RD_SEC (1 << 20)
  444. #define REG_FW_IDLE_LPS_CP_P2_EN_RD_SEC (1 << 21)
  445. #define REG_FW_IDLE_LPS_LPS_T1_EN_RD_SEC (1 << 22)
  446. #define REG_FW_IDLE_LPS_LPS_T2_EN_RD_SEC (1 << 23)
  447. #define REG_FW_IDLE_LPS_LPS_T3_EN_RD_SEC (1 << 24)
  448. #define REG_FW_IDLE_LPS_LPS_T4_EN_RD_SEC (1 << 25)
  449. #define REG_FW_IDLE_LPS_LPS_T5_EN_RD_SEC (1 << 26)
  450. #define REG_FW_IDLE_LPS_LPS_T6_EN_RD_SEC (1 << 27)
  451. #define REG_FW_IDLE_LPS_AP_AWK_EN1_RD_SEC (1 << 28)
  452. #define REG_FW_IDLE_LPS_AP_AWK_ST1_RD_SEC (1 << 29)
  453. #define REG_FW_IDLE_LPS_CP_AWK_EN1_RD_SEC (1 << 30)
  454. #define REG_FW_IDLE_LPS_CP_AWK_ST1_RD_SEC (1 << 31)
  455. // reg_rd_ctrl_2
  456. #define REG_FW_IDLE_LPS_LPS_T_TIME7_RD_SEC (1 << 0)
  457. #define REG_FW_IDLE_LPS_LPS_T_TIME8_RD_SEC (1 << 1)
  458. #define REG_FW_IDLE_LPS_LPS_T_TIME9_RD_SEC (1 << 2)
  459. #define REG_FW_IDLE_LPS_LPS_T7_EN_RD_SEC (1 << 3)
  460. #define REG_FW_IDLE_LPS_LPS_T8_EN_RD_SEC (1 << 4)
  461. #define REG_FW_IDLE_LPS_LPS_T9_EN_RD_SEC (1 << 5)
  462. #define REG_FW_IDLE_LPS_CP_PM2_MODE_EN_RD_SEC (1 << 6)
  463. // reg_wr_ctrl_0
  464. #define REG_FW_IDLE_LPS_LPS_CTRL_AP_WR_SEC (1 << 0)
  465. #define REG_FW_IDLE_LPS_AP_SIG_EN_WR_SEC (1 << 1)
  466. #define REG_FW_IDLE_LPS_AP_LPS_SIG_TIME_WR_SEC (1 << 2)
  467. #define REG_FW_IDLE_LPS_LPS_CTRL_CP_WR_SEC (1 << 3)
  468. #define REG_FW_IDLE_LPS_CP_PM2_STA_WR_SEC (1 << 4)
  469. #define REG_FW_IDLE_LPS_CP_SIG_EN_WR_SEC (1 << 5)
  470. #define REG_FW_IDLE_LPS_CP_LPS_SIG_TIME_WR_SEC (1 << 6)
  471. #define REG_FW_IDLE_LPS_PM2_OFF_TIME_WR_SEC (1 << 7)
  472. #define REG_FW_IDLE_LPS_PM2_ON_TIME_WR_SEC (1 << 8)
  473. #define REG_FW_IDLE_LPS_PM2_ON_OFF_TIME_WR_SEC (1 << 9)
  474. #define REG_FW_IDLE_LPS_AP_PM2_STA_WR_SEC (1 << 10)
  475. #define REG_FW_IDLE_LPS_AP_PM2_MODE_EN_WR_SEC (1 << 11)
  476. #define REG_FW_IDLE_LPS_AON_SIG_EN_WR_SEC (1 << 12)
  477. #define REG_FW_IDLE_LPS_SLEEP_PROT_TIME_WR_SEC (1 << 13)
  478. #define REG_FW_IDLE_LPS_ELIMINATE_JITTER_WR_SEC (1 << 14)
  479. #define REG_FW_IDLE_LPS_AP_LPS_STA_WR_SEC (1 << 15)
  480. #define REG_FW_IDLE_LPS_CP_INTEN_WR_SEC (1 << 16)
  481. #define REG_FW_IDLE_LPS_CP_INT_STA_WR_SEC (1 << 17)
  482. #define REG_FW_IDLE_LPS_AP_INTEN_WR_SEC (1 << 18)
  483. #define REG_FW_IDLE_LPS_AP_INT_STA_WR_SEC (1 << 19)
  484. #define REG_FW_IDLE_LPS_AP_AWK_EN_WR_SEC (1 << 20)
  485. #define REG_FW_IDLE_LPS_AP_AWK_ST_WR_SEC (1 << 21)
  486. #define REG_FW_IDLE_LPS_CP_AWK_EN_WR_SEC (1 << 22)
  487. #define REG_FW_IDLE_LPS_CP_AWK_ST_WR_SEC (1 << 23)
  488. #define REG_FW_IDLE_LPS_CP_LPS_STA_WR_SEC (1 << 24)
  489. #define REG_FW_IDLE_LPS_CP_P1_TIME_WR_SEC (1 << 25)
  490. #define REG_FW_IDLE_LPS_CP_P2_TIME_WR_SEC (1 << 26)
  491. #define REG_FW_IDLE_LPS_LPS_T_TIME1_WR_SEC (1 << 27)
  492. #define REG_FW_IDLE_LPS_LPS_T_TIME2_WR_SEC (1 << 28)
  493. #define REG_FW_IDLE_LPS_LPS_T_TIME3_WR_SEC (1 << 29)
  494. #define REG_FW_IDLE_LPS_LPS_T_TIME4_WR_SEC (1 << 30)
  495. #define REG_FW_IDLE_LPS_LPS_T_TIME5_WR_SEC (1 << 31)
  496. // reg_wr_ctrl_1
  497. #define REG_FW_IDLE_LPS_LPS_T_TIME6_WR_SEC (1 << 0)
  498. #define REG_FW_IDLE_LPS_LOAD_EN_WR_SEC (1 << 1)
  499. #define REG_FW_IDLE_LPS_LPS_32K_REF_WR_SEC (1 << 2)
  500. #define REG_FW_IDLE_LPS_REF_32K_FNL_WR_SEC (1 << 3)
  501. #define REG_FW_IDLE_LPS_LPS_TPCTRL_WR_SEC (1 << 4)
  502. #define REG_FW_IDLE_LPS_LPS_TP_STA_WR_SEC (1 << 5)
  503. #define REG_FW_IDLE_LPS_LOAD_TIME_WR_SEC (1 << 6)
  504. #define REG_FW_IDLE_LPS_MON_SEL_WR_SEC (1 << 7)
  505. #define REG_FW_IDLE_LPS_LPS_RES0_WR_SEC (1 << 8)
  506. #define REG_FW_IDLE_LPS_LPS_RES1_WR_SEC (1 << 9)
  507. #define REG_FW_IDLE_LPS_LPS_RES2_WR_SEC (1 << 10)
  508. #define REG_FW_IDLE_LPS_LPS_RES3_WR_SEC (1 << 11)
  509. #define REG_FW_IDLE_LPS_LPS_RES4_WR_SEC (1 << 12)
  510. #define REG_FW_IDLE_LPS_LPS_RES5_WR_SEC (1 << 13)
  511. #define REG_FW_IDLE_LPS_LPS_RES6_WR_SEC (1 << 14)
  512. #define REG_FW_IDLE_LPS_LPS_RES7_WR_SEC (1 << 15)
  513. #define REG_FW_IDLE_LPS_LPS_RES8_WR_SEC (1 << 16)
  514. #define REG_FW_IDLE_LPS_LPS_RES9_WR_SEC (1 << 17)
  515. #define REG_FW_IDLE_LPS_LPS_RES10_WR_SEC (1 << 18)
  516. #define REG_FW_IDLE_LPS_LPS_RES11_WR_SEC (1 << 19)
  517. #define REG_FW_IDLE_LPS_CP_P1_EN_WR_SEC (1 << 20)
  518. #define REG_FW_IDLE_LPS_CP_P2_EN_WR_SEC (1 << 21)
  519. #define REG_FW_IDLE_LPS_LPS_T1_EN_WR_SEC (1 << 22)
  520. #define REG_FW_IDLE_LPS_LPS_T2_EN_WR_SEC (1 << 23)
  521. #define REG_FW_IDLE_LPS_LPS_T3_EN_WR_SEC (1 << 24)
  522. #define REG_FW_IDLE_LPS_LPS_T4_EN_WR_SEC (1 << 25)
  523. #define REG_FW_IDLE_LPS_LPS_T5_EN_WR_SEC (1 << 26)
  524. #define REG_FW_IDLE_LPS_LPS_T6_EN_WR_SEC (1 << 27)
  525. #define REG_FW_IDLE_LPS_AP_AWK_EN1_WR_SEC (1 << 28)
  526. #define REG_FW_IDLE_LPS_AP_AWK_ST1_WR_SEC (1 << 29)
  527. #define REG_FW_IDLE_LPS_CP_AWK_EN1_WR_SEC (1 << 30)
  528. #define REG_FW_IDLE_LPS_CP_AWK_ST1_WR_SEC (1 << 31)
  529. // reg_wr_ctrl_2
  530. #define REG_FW_IDLE_LPS_LPS_T_TIME7_WR_SEC (1 << 0)
  531. #define REG_FW_IDLE_LPS_LPS_T_TIME8_WR_SEC (1 << 1)
  532. #define REG_FW_IDLE_LPS_LPS_T_TIME9_WR_SEC (1 << 2)
  533. #define REG_FW_IDLE_LPS_LPS_T7_EN_WR_SEC (1 << 3)
  534. #define REG_FW_IDLE_LPS_LPS_T8_EN_WR_SEC (1 << 4)
  535. #define REG_FW_IDLE_LPS_LPS_T9_EN_WR_SEC (1 << 5)
  536. #define REG_FW_IDLE_LPS_CP_PM2_MODE_EN_WR_SEC (1 << 6)
  537. // bit_wr_ctrl_addr_array0
  538. #define REG_FW_IDLE_LPS_BIT_WR_CTRL_ADDR_ARRAY0(n) (((n)&0xfff) << 0)
  539. // bit_wr_ctrl_addr_array1
  540. #define REG_FW_IDLE_LPS_BIT_WR_CTRL_ADDR_ARRAY1(n) (((n)&0xfff) << 0)
  541. // bit_wr_ctrl_addr_array2
  542. #define REG_FW_IDLE_LPS_BIT_WR_CTRL_ADDR_ARRAY2(n) (((n)&0xfff) << 0)
  543. // bit_wr_ctrl_addr_array3
  544. #define REG_FW_IDLE_LPS_BIT_WR_CTRL_ADDR_ARRAY3(n) (((n)&0xfff) << 0)
  545. // bit_wr_ctrl_addr_array4
  546. #define REG_FW_IDLE_LPS_BIT_WR_CTRL_ADDR_ARRAY4(n) (((n)&0xfff) << 0)
  547. // bit_wr_ctrl_addr_array5
  548. #define REG_FW_IDLE_LPS_BIT_WR_CTRL_ADDR_ARRAY5(n) (((n)&0xfff) << 0)
  549. // bit_wr_ctrl_addr_array6
  550. #define REG_FW_IDLE_LPS_BIT_WR_CTRL_ADDR_ARRAY6(n) (((n)&0xfff) << 0)
  551. // bit_wr_ctrl_addr_array7
  552. #define REG_FW_IDLE_LPS_BIT_WR_CTRL_ADDR_ARRAY7(n) (((n)&0xfff) << 0)
  553. // bit_wr_ctrl_addr_array8
  554. #define REG_FW_IDLE_LPS_BIT_WR_CTRL_ADDR_ARRAY8(n) (((n)&0xfff) << 0)
  555. // bit_wr_ctrl_addr_array9
  556. #define REG_FW_IDLE_LPS_BIT_WR_CTRL_ADDR_ARRAY9(n) (((n)&0xfff) << 0)
  557. // bit_wr_ctrl_addr_array10
  558. #define REG_FW_IDLE_LPS_BIT_WR_CTRL_ADDR_ARRAY10(n) (((n)&0xfff) << 0)
  559. // bit_wr_ctrl_addr_array11
  560. #define REG_FW_IDLE_LPS_BIT_WR_CTRL_ADDR_ARRAY11(n) (((n)&0xfff) << 0)
  561. // bit_wr_ctrl_addr_array12
  562. #define REG_FW_IDLE_LPS_BIT_WR_CTRL_ADDR_ARRAY12(n) (((n)&0xfff) << 0)
  563. // bit_wr_ctrl_addr_array13
  564. #define REG_FW_IDLE_LPS_BIT_WR_CTRL_ADDR_ARRAY13(n) (((n)&0xfff) << 0)
  565. // bit_wr_ctrl_addr_array14
  566. #define REG_FW_IDLE_LPS_BIT_WR_CTRL_ADDR_ARRAY14(n) (((n)&0xfff) << 0)
  567. // bit_wr_ctrl_addr_array15
  568. #define REG_FW_IDLE_LPS_BIT_WR_CTRL_ADDR_ARRAY15(n) (((n)&0xfff) << 0)
  569. #endif // _REG_FW_IDLE_LPS_H_