reg_fw_lps_apb.h 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329
  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_LPS_APB_H_
  13. #define _REG_FW_LPS_APB_H_
  14. // Auto generated by dtools(see dtools.txt for its version).
  15. // Don't edit it manually!
  16. #define REG_REG_FW_LPS_APB_BASE (0x51316000)
  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_wr_ctrl_0; // 0x00000008
  22. uint32_t reg_wr_ctrl_1; // 0x0000000c
  23. uint32_t bit_ctrl_addr_array0; // 0x00000010
  24. uint32_t bit_ctrl_addr_array1; // 0x00000014
  25. uint32_t bit_ctrl_addr_array2; // 0x00000018
  26. uint32_t bit_ctrl_addr_array3; // 0x0000001c
  27. uint32_t bit_ctrl_addr_array4; // 0x00000020
  28. uint32_t bit_ctrl_addr_array5; // 0x00000024
  29. uint32_t bit_ctrl_addr_array6; // 0x00000028
  30. uint32_t bit_ctrl_addr_array7; // 0x0000002c
  31. uint32_t bit_ctrl_array0; // 0x00000030
  32. uint32_t bit_ctrl_array1; // 0x00000034
  33. uint32_t bit_ctrl_array2; // 0x00000038
  34. uint32_t bit_ctrl_array3; // 0x0000003c
  35. uint32_t bit_ctrl_array4; // 0x00000040
  36. uint32_t bit_ctrl_array5; // 0x00000044
  37. uint32_t bit_ctrl_array6; // 0x00000048
  38. uint32_t bit_ctrl_array7; // 0x0000004c
  39. } HWP_REG_FW_LPS_APB_T;
  40. #define hwp_regFwLpsApb ((HWP_REG_FW_LPS_APB_T *)REG_ACCESS_ADDRESS(REG_REG_FW_LPS_APB_BASE))
  41. // reg_rd_ctrl_0
  42. typedef union {
  43. uint32_t v;
  44. struct
  45. {
  46. uint32_t reset_sys_soft_rd_sec : 1; // [0]
  47. uint32_t reset_lps_soft_rd_sec : 1; // [1]
  48. uint32_t efuse_por_read_disable_rd_sec : 1; // [2]
  49. uint32_t lps_clk_en_rd_sec : 1; // [3]
  50. uint32_t lps_clk_auto_sel_rd_sec : 1; // [4]
  51. uint32_t lps_clk_force_en_rd_sec : 1; // [5]
  52. uint32_t lps_clk_gate_en_status_rd_sec : 1; // [6]
  53. uint32_t lps_clk_busy_status_rd_sec : 1; // [7]
  54. uint32_t cfg_clk_uart1_rd_sec : 1; // [8]
  55. uint32_t cfg_clk_rc26m_rd_sec : 1; // [9]
  56. uint32_t cfg_debug_bond_option_rd_sec : 1; // [10]
  57. uint32_t cfg_psram_half_slp_rd_sec : 1; // [11]
  58. uint32_t cfg_lps_ahb_clock_sel_rd_sec : 1; // [12]
  59. uint32_t cfg_uart1_clock_sel_rd_sec : 1; // [13]
  60. uint32_t cfg_gpt_lite_clock_sel_rd_sec : 1; // [14]
  61. uint32_t cfg_boot_mode_rd_sec : 1; // [15]
  62. uint32_t cfg_reset_enable_rd_sec : 1; // [16]
  63. uint32_t reset_cause_rd_sec : 1; // [17]
  64. uint32_t cfg_plls_rd_sec : 1; // [18]
  65. uint32_t apll_wait_number_rd_sec : 1; // [19]
  66. uint32_t mpll_wait_number_rd_sec : 1; // [20]
  67. uint32_t iispll_wait_number_rd_sec : 1; // [21]
  68. uint32_t aon_iram_ctrl_rd_sec : 1; // [22]
  69. uint32_t iomux_g4_func_sel_latch_rd_sec : 1; // [23]
  70. uint32_t cfg_por_usb_phy_rd_sec : 1; // [24]
  71. uint32_t efs_por_read_block3_rd_sec : 1; // [25]
  72. uint32_t efs_por_read_block89_rd_sec : 1; // [26]
  73. uint32_t rc26m_pu_ctrl_rd_sec : 1; // [27]
  74. uint32_t aon_ahb_lp_ctrl_rd_sec : 1; // [28]
  75. uint32_t usb_uart_swj_share_cfg_rd_sec : 1; // [29]
  76. uint32_t pu_clk26m_lp_iso_cfg_rd_sec : 1; // [30]
  77. uint32_t cfg_io_deep_sleep_rd_sec : 1; // [31]
  78. } b;
  79. } REG_REG_FW_LPS_APB_REG_RD_CTRL_0_T;
  80. // reg_rd_ctrl_1
  81. typedef union {
  82. uint32_t v;
  83. struct
  84. {
  85. uint32_t cfg_lps_io_core_ie_rd_sec : 1; // [0]
  86. uint32_t cfg_simc_io_rd_sec : 1; // [1]
  87. uint32_t __31_2 : 30; // [31:2]
  88. } b;
  89. } REG_REG_FW_LPS_APB_REG_RD_CTRL_1_T;
  90. // reg_wr_ctrl_0
  91. typedef union {
  92. uint32_t v;
  93. struct
  94. {
  95. uint32_t reset_sys_soft_wr_sec : 1; // [0]
  96. uint32_t reset_lps_soft_wr_sec : 1; // [1]
  97. uint32_t efuse_por_read_disable_wr_sec : 1; // [2]
  98. uint32_t lps_clk_en_wr_sec : 1; // [3]
  99. uint32_t lps_clk_auto_sel_wr_sec : 1; // [4]
  100. uint32_t lps_clk_force_en_wr_sec : 1; // [5]
  101. uint32_t lps_clk_gate_en_status_wr_sec : 1; // [6]
  102. uint32_t lps_clk_busy_status_wr_sec : 1; // [7]
  103. uint32_t cfg_clk_uart1_wr_sec : 1; // [8]
  104. uint32_t cfg_clk_rc26m_wr_sec : 1; // [9]
  105. uint32_t cfg_debug_bond_option_wr_sec : 1; // [10]
  106. uint32_t cfg_psram_half_slp_wr_sec : 1; // [11]
  107. uint32_t cfg_lps_ahb_clock_sel_wr_sec : 1; // [12]
  108. uint32_t cfg_uart1_clock_sel_wr_sec : 1; // [13]
  109. uint32_t cfg_gpt_lite_clock_sel_wr_sec : 1; // [14]
  110. uint32_t cfg_boot_mode_wr_sec : 1; // [15]
  111. uint32_t cfg_reset_enable_wr_sec : 1; // [16]
  112. uint32_t reset_cause_wr_sec : 1; // [17]
  113. uint32_t cfg_plls_wr_sec : 1; // [18]
  114. uint32_t apll_wait_number_wr_sec : 1; // [19]
  115. uint32_t mpll_wait_number_wr_sec : 1; // [20]
  116. uint32_t iispll_wait_number_wr_sec : 1; // [21]
  117. uint32_t aon_iram_ctrl_wr_sec : 1; // [22]
  118. uint32_t iomux_g4_func_sel_latch_wr_sec : 1; // [23]
  119. uint32_t cfg_por_usb_phy_wr_sec : 1; // [24]
  120. uint32_t efs_por_read_block3_wr_sec : 1; // [25]
  121. uint32_t efs_por_read_block89_wr_sec : 1; // [26]
  122. uint32_t rc26m_pu_ctrl_wr_sec : 1; // [27]
  123. uint32_t aon_ahb_lp_ctrl_wr_sec : 1; // [28]
  124. uint32_t usb_uart_swj_share_cfg_wr_sec : 1; // [29]
  125. uint32_t pu_clk26m_lp_iso_cfg_wr_sec : 1; // [30]
  126. uint32_t cfg_io_deep_sleep_wr_sec : 1; // [31]
  127. } b;
  128. } REG_REG_FW_LPS_APB_REG_WR_CTRL_0_T;
  129. // reg_wr_ctrl_1
  130. typedef union {
  131. uint32_t v;
  132. struct
  133. {
  134. uint32_t cfg_lps_io_core_ie_wr_sec : 1; // [0]
  135. uint32_t cfg_simc_io_wr_sec : 1; // [1]
  136. uint32_t __31_2 : 30; // [31:2]
  137. } b;
  138. } REG_REG_FW_LPS_APB_REG_WR_CTRL_1_T;
  139. // bit_ctrl_addr_array0
  140. typedef union {
  141. uint32_t v;
  142. struct
  143. {
  144. uint32_t bit_ctrl_addr_array0 : 12; // [11:0]
  145. uint32_t __31_12 : 20; // [31:12]
  146. } b;
  147. } REG_REG_FW_LPS_APB_BIT_CTRL_ADDR_ARRAY0_T;
  148. // bit_ctrl_addr_array1
  149. typedef union {
  150. uint32_t v;
  151. struct
  152. {
  153. uint32_t bit_ctrl_addr_array1 : 12; // [11:0]
  154. uint32_t __31_12 : 20; // [31:12]
  155. } b;
  156. } REG_REG_FW_LPS_APB_BIT_CTRL_ADDR_ARRAY1_T;
  157. // bit_ctrl_addr_array2
  158. typedef union {
  159. uint32_t v;
  160. struct
  161. {
  162. uint32_t bit_ctrl_addr_array2 : 12; // [11:0]
  163. uint32_t __31_12 : 20; // [31:12]
  164. } b;
  165. } REG_REG_FW_LPS_APB_BIT_CTRL_ADDR_ARRAY2_T;
  166. // bit_ctrl_addr_array3
  167. typedef union {
  168. uint32_t v;
  169. struct
  170. {
  171. uint32_t bit_ctrl_addr_array3 : 12; // [11:0]
  172. uint32_t __31_12 : 20; // [31:12]
  173. } b;
  174. } REG_REG_FW_LPS_APB_BIT_CTRL_ADDR_ARRAY3_T;
  175. // bit_ctrl_addr_array4
  176. typedef union {
  177. uint32_t v;
  178. struct
  179. {
  180. uint32_t bit_ctrl_addr_array4 : 12; // [11:0]
  181. uint32_t __31_12 : 20; // [31:12]
  182. } b;
  183. } REG_REG_FW_LPS_APB_BIT_CTRL_ADDR_ARRAY4_T;
  184. // bit_ctrl_addr_array5
  185. typedef union {
  186. uint32_t v;
  187. struct
  188. {
  189. uint32_t bit_ctrl_addr_array5 : 12; // [11:0]
  190. uint32_t __31_12 : 20; // [31:12]
  191. } b;
  192. } REG_REG_FW_LPS_APB_BIT_CTRL_ADDR_ARRAY5_T;
  193. // bit_ctrl_addr_array6
  194. typedef union {
  195. uint32_t v;
  196. struct
  197. {
  198. uint32_t bit_ctrl_addr_array6 : 12; // [11:0]
  199. uint32_t __31_12 : 20; // [31:12]
  200. } b;
  201. } REG_REG_FW_LPS_APB_BIT_CTRL_ADDR_ARRAY6_T;
  202. // bit_ctrl_addr_array7
  203. typedef union {
  204. uint32_t v;
  205. struct
  206. {
  207. uint32_t bit_ctrl_addr_array7 : 12; // [11:0]
  208. uint32_t __31_12 : 20; // [31:12]
  209. } b;
  210. } REG_REG_FW_LPS_APB_BIT_CTRL_ADDR_ARRAY7_T;
  211. // reg_rd_ctrl_0
  212. #define REG_FW_LPS_APB_RESET_SYS_SOFT_RD_SEC (1 << 0)
  213. #define REG_FW_LPS_APB_RESET_LPS_SOFT_RD_SEC (1 << 1)
  214. #define REG_FW_LPS_APB_EFUSE_POR_READ_DISABLE_RD_SEC (1 << 2)
  215. #define REG_FW_LPS_APB_LPS_CLK_EN_RD_SEC (1 << 3)
  216. #define REG_FW_LPS_APB_LPS_CLK_AUTO_SEL_RD_SEC (1 << 4)
  217. #define REG_FW_LPS_APB_LPS_CLK_FORCE_EN_RD_SEC (1 << 5)
  218. #define REG_FW_LPS_APB_LPS_CLK_GATE_EN_STATUS_RD_SEC (1 << 6)
  219. #define REG_FW_LPS_APB_LPS_CLK_BUSY_STATUS_RD_SEC (1 << 7)
  220. #define REG_FW_LPS_APB_CFG_CLK_UART1_RD_SEC (1 << 8)
  221. #define REG_FW_LPS_APB_CFG_CLK_RC26M_RD_SEC (1 << 9)
  222. #define REG_FW_LPS_APB_CFG_DEBUG_BOND_OPTION_RD_SEC (1 << 10)
  223. #define REG_FW_LPS_APB_CFG_PSRAM_HALF_SLP_RD_SEC (1 << 11)
  224. #define REG_FW_LPS_APB_CFG_LPS_AHB_CLOCK_SEL_RD_SEC (1 << 12)
  225. #define REG_FW_LPS_APB_CFG_UART1_CLOCK_SEL_RD_SEC (1 << 13)
  226. #define REG_FW_LPS_APB_CFG_GPT_LITE_CLOCK_SEL_RD_SEC (1 << 14)
  227. #define REG_FW_LPS_APB_CFG_BOOT_MODE_RD_SEC (1 << 15)
  228. #define REG_FW_LPS_APB_CFG_RESET_ENABLE_RD_SEC (1 << 16)
  229. #define REG_FW_LPS_APB_RESET_CAUSE_RD_SEC (1 << 17)
  230. #define REG_FW_LPS_APB_CFG_PLLS_RD_SEC (1 << 18)
  231. #define REG_FW_LPS_APB_APLL_WAIT_NUMBER_RD_SEC (1 << 19)
  232. #define REG_FW_LPS_APB_MPLL_WAIT_NUMBER_RD_SEC (1 << 20)
  233. #define REG_FW_LPS_APB_IISPLL_WAIT_NUMBER_RD_SEC (1 << 21)
  234. #define REG_FW_LPS_APB_AON_IRAM_CTRL_RD_SEC (1 << 22)
  235. #define REG_FW_LPS_APB_IOMUX_G4_FUNC_SEL_LATCH_RD_SEC (1 << 23)
  236. #define REG_FW_LPS_APB_CFG_POR_USB_PHY_RD_SEC (1 << 24)
  237. #define REG_FW_LPS_APB_EFS_POR_READ_BLOCK3_RD_SEC (1 << 25)
  238. #define REG_FW_LPS_APB_EFS_POR_READ_BLOCK89_RD_SEC (1 << 26)
  239. #define REG_FW_LPS_APB_RC26M_PU_CTRL_RD_SEC (1 << 27)
  240. #define REG_FW_LPS_APB_AON_AHB_LP_CTRL_RD_SEC (1 << 28)
  241. #define REG_FW_LPS_APB_USB_UART_SWJ_SHARE_CFG_RD_SEC (1 << 29)
  242. #define REG_FW_LPS_APB_PU_CLK26M_LP_ISO_CFG_RD_SEC (1 << 30)
  243. #define REG_FW_LPS_APB_CFG_IO_DEEP_SLEEP_RD_SEC (1 << 31)
  244. // reg_rd_ctrl_1
  245. #define REG_FW_LPS_APB_CFG_LPS_IO_CORE_IE_RD_SEC (1 << 0)
  246. #define REG_FW_LPS_APB_CFG_SIMC_IO_RD_SEC (1 << 1)
  247. // reg_wr_ctrl_0
  248. #define REG_FW_LPS_APB_RESET_SYS_SOFT_WR_SEC (1 << 0)
  249. #define REG_FW_LPS_APB_RESET_LPS_SOFT_WR_SEC (1 << 1)
  250. #define REG_FW_LPS_APB_EFUSE_POR_READ_DISABLE_WR_SEC (1 << 2)
  251. #define REG_FW_LPS_APB_LPS_CLK_EN_WR_SEC (1 << 3)
  252. #define REG_FW_LPS_APB_LPS_CLK_AUTO_SEL_WR_SEC (1 << 4)
  253. #define REG_FW_LPS_APB_LPS_CLK_FORCE_EN_WR_SEC (1 << 5)
  254. #define REG_FW_LPS_APB_LPS_CLK_GATE_EN_STATUS_WR_SEC (1 << 6)
  255. #define REG_FW_LPS_APB_LPS_CLK_BUSY_STATUS_WR_SEC (1 << 7)
  256. #define REG_FW_LPS_APB_CFG_CLK_UART1_WR_SEC (1 << 8)
  257. #define REG_FW_LPS_APB_CFG_CLK_RC26M_WR_SEC (1 << 9)
  258. #define REG_FW_LPS_APB_CFG_DEBUG_BOND_OPTION_WR_SEC (1 << 10)
  259. #define REG_FW_LPS_APB_CFG_PSRAM_HALF_SLP_WR_SEC (1 << 11)
  260. #define REG_FW_LPS_APB_CFG_LPS_AHB_CLOCK_SEL_WR_SEC (1 << 12)
  261. #define REG_FW_LPS_APB_CFG_UART1_CLOCK_SEL_WR_SEC (1 << 13)
  262. #define REG_FW_LPS_APB_CFG_GPT_LITE_CLOCK_SEL_WR_SEC (1 << 14)
  263. #define REG_FW_LPS_APB_CFG_BOOT_MODE_WR_SEC (1 << 15)
  264. #define REG_FW_LPS_APB_CFG_RESET_ENABLE_WR_SEC (1 << 16)
  265. #define REG_FW_LPS_APB_RESET_CAUSE_WR_SEC (1 << 17)
  266. #define REG_FW_LPS_APB_CFG_PLLS_WR_SEC (1 << 18)
  267. #define REG_FW_LPS_APB_APLL_WAIT_NUMBER_WR_SEC (1 << 19)
  268. #define REG_FW_LPS_APB_MPLL_WAIT_NUMBER_WR_SEC (1 << 20)
  269. #define REG_FW_LPS_APB_IISPLL_WAIT_NUMBER_WR_SEC (1 << 21)
  270. #define REG_FW_LPS_APB_AON_IRAM_CTRL_WR_SEC (1 << 22)
  271. #define REG_FW_LPS_APB_IOMUX_G4_FUNC_SEL_LATCH_WR_SEC (1 << 23)
  272. #define REG_FW_LPS_APB_CFG_POR_USB_PHY_WR_SEC (1 << 24)
  273. #define REG_FW_LPS_APB_EFS_POR_READ_BLOCK3_WR_SEC (1 << 25)
  274. #define REG_FW_LPS_APB_EFS_POR_READ_BLOCK89_WR_SEC (1 << 26)
  275. #define REG_FW_LPS_APB_RC26M_PU_CTRL_WR_SEC (1 << 27)
  276. #define REG_FW_LPS_APB_AON_AHB_LP_CTRL_WR_SEC (1 << 28)
  277. #define REG_FW_LPS_APB_USB_UART_SWJ_SHARE_CFG_WR_SEC (1 << 29)
  278. #define REG_FW_LPS_APB_PU_CLK26M_LP_ISO_CFG_WR_SEC (1 << 30)
  279. #define REG_FW_LPS_APB_CFG_IO_DEEP_SLEEP_WR_SEC (1 << 31)
  280. // reg_wr_ctrl_1
  281. #define REG_FW_LPS_APB_CFG_LPS_IO_CORE_IE_WR_SEC (1 << 0)
  282. #define REG_FW_LPS_APB_CFG_SIMC_IO_WR_SEC (1 << 1)
  283. // bit_ctrl_addr_array0
  284. #define REG_FW_LPS_APB_BIT_CTRL_ADDR_ARRAY0(n) (((n)&0xfff) << 0)
  285. // bit_ctrl_addr_array1
  286. #define REG_FW_LPS_APB_BIT_CTRL_ADDR_ARRAY1(n) (((n)&0xfff) << 0)
  287. // bit_ctrl_addr_array2
  288. #define REG_FW_LPS_APB_BIT_CTRL_ADDR_ARRAY2(n) (((n)&0xfff) << 0)
  289. // bit_ctrl_addr_array3
  290. #define REG_FW_LPS_APB_BIT_CTRL_ADDR_ARRAY3(n) (((n)&0xfff) << 0)
  291. // bit_ctrl_addr_array4
  292. #define REG_FW_LPS_APB_BIT_CTRL_ADDR_ARRAY4(n) (((n)&0xfff) << 0)
  293. // bit_ctrl_addr_array5
  294. #define REG_FW_LPS_APB_BIT_CTRL_ADDR_ARRAY5(n) (((n)&0xfff) << 0)
  295. // bit_ctrl_addr_array6
  296. #define REG_FW_LPS_APB_BIT_CTRL_ADDR_ARRAY6(n) (((n)&0xfff) << 0)
  297. // bit_ctrl_addr_array7
  298. #define REG_FW_LPS_APB_BIT_CTRL_ADDR_ARRAY7(n) (((n)&0xfff) << 0)
  299. #endif // _REG_FW_LPS_APB_H_