hw_hib3p3.h 52 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138
  1. //*****************************************************************************
  2. //
  3. // Copyright (C) 2014 Texas Instruments Incorporated - http://www.ti.com/
  4. //
  5. //
  6. // Redistribution and use in source and binary forms, with or without
  7. // modification, are permitted provided that the following conditions
  8. // are met:
  9. //
  10. // Redistributions of source code must retain the above copyright
  11. // notice, this list of conditions and the following disclaimer.
  12. //
  13. // Redistributions in binary form must reproduce the above copyright
  14. // notice, this list of conditions and the following disclaimer in the
  15. // documentation and/or other materials provided with the
  16. // distribution.
  17. //
  18. // Neither the name of Texas Instruments Incorporated nor the names of
  19. // its contributors may be used to endorse or promote products derived
  20. // from this software without specific prior written permission.
  21. //
  22. // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  23. // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  24. // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  25. // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  26. // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  27. // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  28. // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  29. // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  30. // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  31. // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  32. // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  33. //
  34. //*****************************************************************************
  35. #ifndef __HW_HIB3P3_H__
  36. #define __HW_HIB3P3_H__
  37. //*****************************************************************************
  38. //
  39. // The following are defines for the HIB3P3 register offsets.
  40. //
  41. //*****************************************************************************
  42. #define HIB3P3_O_MEM_HIB_REQ 0x00000000
  43. #define HIB3P3_O_MEM_HIB_RTC_TIMER_ENABLE \
  44. 0x00000004
  45. #define HIB3P3_O_MEM_HIB_RTC_TIMER_RESET \
  46. 0x00000008
  47. #define HIB3P3_O_MEM_HIB_RTC_TIMER_READ \
  48. 0x0000000C
  49. #define HIB3P3_O_MEM_HIB_RTC_TIMER_LSW \
  50. 0x00000010
  51. #define HIB3P3_O_MEM_HIB_RTC_TIMER_MSW \
  52. 0x00000014
  53. #define HIB3P3_O_MEM_HIB_RTC_WAKE_EN \
  54. 0x00000018
  55. #define HIB3P3_O_MEM_HIB_RTC_WAKE_LSW_CONF \
  56. 0x0000001C
  57. #define HIB3P3_O_MEM_HIB_RTC_WAKE_MSW_CONF \
  58. 0x00000020
  59. #define HIB3P3_O_MEM_INT_OSC_CONF \
  60. 0x0000002C
  61. #define HIB3P3_O_MEM_XTAL_OSC_CONF \
  62. 0x00000034
  63. #define HIB3P3_O_MEM_BGAP_PARAMETERS0 \
  64. 0x00000038
  65. #define HIB3P3_O_MEM_BGAP_PARAMETERS1 \
  66. 0x0000003C
  67. #define HIB3P3_O_MEM_HIB_DETECTION_STATUS \
  68. 0x00000040
  69. #define HIB3P3_O_MEM_HIB_MISC_CONTROLS \
  70. 0x00000044
  71. #define HIB3P3_O_MEM_HIB_CONFIG 0x00000050
  72. #define HIB3P3_O_MEM_HIB_RTC_IRQ_ENABLE \
  73. 0x00000054
  74. #define HIB3P3_O_MEM_HIB_RTC_IRQ_LSW_CONF \
  75. 0x00000058
  76. #define HIB3P3_O_MEM_HIB_RTC_IRQ_MSW_CONF \
  77. 0x0000005C
  78. #define HIB3P3_O_MEM_HIB_UART_CONF \
  79. 0x00000400
  80. #define HIB3P3_O_MEM_GPIO_WAKE_EN \
  81. 0x00000404
  82. #define HIB3P3_O_MEM_GPIO_WAKE_CONF \
  83. 0x00000408
  84. #define HIB3P3_O_MEM_PAD_OEN_RET33_CONF \
  85. 0x0000040C
  86. #define HIB3P3_O_MEM_UART_RTS_OEN_RET33_CONF \
  87. 0x00000410
  88. #define HIB3P3_O_MEM_JTAG_CONF 0x00000414
  89. #define HIB3P3_O_MEM_HIB_REG0 0x00000418
  90. #define HIB3P3_O_MEM_HIB_REG1 0x0000041C
  91. #define HIB3P3_O_MEM_HIB_REG2 0x00000420
  92. #define HIB3P3_O_MEM_HIB_REG3 0x00000424
  93. #define HIB3P3_O_MEM_HIB_SEQUENCER_CFG0 \
  94. 0x0000045C
  95. #define HIB3P3_O_MEM_HIB_SEQUENCER_CFG1 \
  96. 0x00000460
  97. #define HIB3P3_O_MEM_HIB_MISC_CONFIG \
  98. 0x00000464
  99. #define HIB3P3_O_MEM_HIB_WAKE_STATUS \
  100. 0x00000468
  101. #define HIB3P3_O_MEM_HIB_LPDS_GPIO_SEL \
  102. 0x0000046C
  103. #define HIB3P3_O_MEM_HIB_SEQUENCER_CFG2 \
  104. 0x00000470
  105. #define HIB3P3_O_HIBANA_SPARE_LOWV \
  106. 0x00000474
  107. #define HIB3P3_O_HIB_TMUX_CTRL 0x00000478
  108. #define HIB3P3_O_HIB_1P2_1P8_LDO_TRIM \
  109. 0x0000047C
  110. #define HIB3P3_O_HIB_COMP_TRIM 0x00000480
  111. #define HIB3P3_O_HIB_EN_TS 0x00000484
  112. #define HIB3P3_O_HIB_1P8V_DET_EN \
  113. 0x00000488
  114. #define HIB3P3_O_HIB_VBAT_MON_EN \
  115. 0x0000048C
  116. #define HIB3P3_O_HIB_NHIB_ENABLE \
  117. 0x00000490
  118. #define HIB3P3_O_HIB_UART_RTS_SW_ENABLE \
  119. 0x00000494
  120. //******************************************************************************
  121. //
  122. // The following are defines for the bit fields in the
  123. // HIB3P3_O_MEM_HIB_REQ register.
  124. //
  125. //******************************************************************************
  126. #define HIB3P3_MEM_HIB_REQ_reserved_M \
  127. 0xFFFFFE00
  128. #define HIB3P3_MEM_HIB_REQ_reserved_S 9
  129. #define HIB3P3_MEM_HIB_REQ_NU1_M \
  130. 0x000001FC
  131. #define HIB3P3_MEM_HIB_REQ_NU1_S 2
  132. #define HIB3P3_MEM_HIB_REQ_mem_hib_clk_disable \
  133. 0x00000002 // 1 - Specifies that the Hiberante
  134. // mode is without clocks ; 0 -
  135. // Specified that the Hibernate mode
  136. // is with clocks This register will
  137. // be reset during Hibernate
  138. // -WO-Clks mode (but not during
  139. // Hibernate-W-Clks mode).
  140. #define HIB3P3_MEM_HIB_REQ_mem_hib_req \
  141. 0x00000001 // 1 - Request for hibernate mode
  142. // (This is an auto-clear bit) ; 0 -
  143. // Donot request for hibernate mode
  144. // This register will be reset
  145. // during Hibernate -WO-Clks mode
  146. // (but not during Hibernate-W-Clks
  147. // mode).
  148. //******************************************************************************
  149. //
  150. // The following are defines for the bit fields in the
  151. // HIB3P3_O_MEM_HIB_RTC_TIMER_ENABLE register.
  152. //
  153. //******************************************************************************
  154. #define HIB3P3_MEM_HIB_RTC_TIMER_ENABLE_reserved_M \
  155. 0xFFFFFFFE
  156. #define HIB3P3_MEM_HIB_RTC_TIMER_ENABLE_reserved_S 1
  157. #define HIB3P3_MEM_HIB_RTC_TIMER_ENABLE_mem_hib_rtc_timer_enable \
  158. 0x00000001 // 1 - Enable the RTC timer to
  159. // start running ; 0 - Keep the RTC
  160. // timer disabled This register will
  161. // be reset during Hibernate
  162. // -WO-Clks mode (but not during
  163. // Hibernate-W-Clks mode).
  164. //******************************************************************************
  165. //
  166. // The following are defines for the bit fields in the
  167. // HIB3P3_O_MEM_HIB_RTC_TIMER_RESET register.
  168. //
  169. //******************************************************************************
  170. #define HIB3P3_MEM_HIB_RTC_TIMER_RESET_reserved_M \
  171. 0xFFFFFFFE
  172. #define HIB3P3_MEM_HIB_RTC_TIMER_RESET_reserved_S 1
  173. #define HIB3P3_MEM_HIB_RTC_TIMER_RESET_mem_hib_rtc_timer_reset \
  174. 0x00000001 // 1 - Reset the RTC timer ; 0 -
  175. // Donot reset the RTC timer. This
  176. // is an auto-clear bit. This
  177. // register will be reset during
  178. // Hibernate -WO-Clks mode (but not
  179. // during Hibernate-W-Clks mode).
  180. //******************************************************************************
  181. //
  182. // The following are defines for the bit fields in the
  183. // HIB3P3_O_MEM_HIB_RTC_TIMER_READ register.
  184. //
  185. //******************************************************************************
  186. #define HIB3P3_MEM_HIB_RTC_TIMER_READ_reserved_M \
  187. 0xFFFFFFFE
  188. #define HIB3P3_MEM_HIB_RTC_TIMER_READ_reserved_S 1
  189. #define HIB3P3_MEM_HIB_RTC_TIMER_READ_mem_hib_rtc_timer_read \
  190. 0x00000001 // 1 - Latch the running RTC timer
  191. // into local registers. After
  192. // programming this bit to 1, the
  193. // F/w can read the latched RTC
  194. // timer values from
  195. // MEM_HIB_RTC_TIMER_LSW and
  196. // MEM_HIB_RTC_TIMER_MSW. Before the
  197. // F/w (APPS or NWP) wants to read
  198. // the RTC-Timer, it has to program
  199. // this bit to 1, then only read the
  200. // MSW and LSW values. This is an
  201. // auto-clear bit. This register
  202. // will be reset during Hibernate
  203. // -WO-Clks mode (but not during
  204. // Hibernate-W-Clks mode).
  205. //******************************************************************************
  206. //
  207. // The following are defines for the bit fields in the
  208. // HIB3P3_O_MEM_HIB_RTC_TIMER_LSW register.
  209. //
  210. //******************************************************************************
  211. #define HIB3P3_MEM_HIB_RTC_TIMER_LSW_hib_rtc_timer_lsw_M \
  212. 0xFFFFFFFF // Lower 32b value of the latched
  213. // RTC-Timer.
  214. #define HIB3P3_MEM_HIB_RTC_TIMER_LSW_hib_rtc_timer_lsw_S 0
  215. //******************************************************************************
  216. //
  217. // The following are defines for the bit fields in the
  218. // HIB3P3_O_MEM_HIB_RTC_TIMER_MSW register.
  219. //
  220. //******************************************************************************
  221. #define HIB3P3_MEM_HIB_RTC_TIMER_MSW_reserved_M \
  222. 0xFFFF0000
  223. #define HIB3P3_MEM_HIB_RTC_TIMER_MSW_reserved_S 16
  224. #define HIB3P3_MEM_HIB_RTC_TIMER_MSW_hib_rtc_timer_msw_M \
  225. 0x0000FFFF // Upper 32b value of the latched
  226. // RTC-Timer.
  227. #define HIB3P3_MEM_HIB_RTC_TIMER_MSW_hib_rtc_timer_msw_S 0
  228. //******************************************************************************
  229. //
  230. // The following are defines for the bit fields in the
  231. // HIB3P3_O_MEM_HIB_RTC_WAKE_EN register.
  232. //
  233. //******************************************************************************
  234. #define HIB3P3_MEM_HIB_RTC_WAKE_EN_reserved_M \
  235. 0xFFFFFFFE
  236. #define HIB3P3_MEM_HIB_RTC_WAKE_EN_reserved_S 1
  237. #define HIB3P3_MEM_HIB_RTC_WAKE_EN_mem_hib_rtc_wake_en \
  238. 0x00000001 // 1 - Enable the RTC timer based
  239. // wakeup during Hibernate mode ; 0
  240. // - Disable the RTC timer based
  241. // wakeup during Hibernate mode This
  242. // register will be reset during
  243. // Hibernate-WO-Clks mode (but not
  244. // during Hibernate-W-Clks mode).
  245. //******************************************************************************
  246. //
  247. // The following are defines for the bit fields in the
  248. // HIB3P3_O_MEM_HIB_RTC_WAKE_LSW_CONF register.
  249. //
  250. //******************************************************************************
  251. #define HIB3P3_MEM_HIB_RTC_WAKE_LSW_CONF_mem_hib_rtc_wake_lsw_conf_M \
  252. 0xFFFFFFFF // Configuration for RTC-Timer
  253. // Wakeup (Lower 32b word)
  254. #define HIB3P3_MEM_HIB_RTC_WAKE_LSW_CONF_mem_hib_rtc_wake_lsw_conf_S 0
  255. //******************************************************************************
  256. //
  257. // The following are defines for the bit fields in the
  258. // HIB3P3_O_MEM_HIB_RTC_WAKE_MSW_CONF register.
  259. //
  260. //******************************************************************************
  261. #define HIB3P3_MEM_HIB_RTC_WAKE_MSW_CONF_reserved_M \
  262. 0xFFFF0000
  263. #define HIB3P3_MEM_HIB_RTC_WAKE_MSW_CONF_reserved_S 16
  264. #define HIB3P3_MEM_HIB_RTC_WAKE_MSW_CONF_mem_hib_rtc_wake_msw_conf_M \
  265. 0x0000FFFF // Configuration for RTC-Timer
  266. // Wakeup (Upper 16b word)
  267. #define HIB3P3_MEM_HIB_RTC_WAKE_MSW_CONF_mem_hib_rtc_wake_msw_conf_S 0
  268. //******************************************************************************
  269. //
  270. // The following are defines for the bit fields in the
  271. // HIB3P3_O_MEM_INT_OSC_CONF register.
  272. //
  273. //******************************************************************************
  274. #define HIB3P3_MEM_INT_OSC_CONF_reserved_M \
  275. 0xFFFF0000
  276. #define HIB3P3_MEM_INT_OSC_CONF_reserved_S 16
  277. #define HIB3P3_MEM_INT_OSC_CONF_cm_clk_good_32k_int \
  278. 0x00008000 // 1 - Internal 32kHz Oscillator is
  279. // valid ; 0 - Internal 32k
  280. // oscillator clk is not valid
  281. #define HIB3P3_MEM_INT_OSC_CONF_mem_cm_intosc_32k_spare_M \
  282. 0x00007E00
  283. #define HIB3P3_MEM_INT_OSC_CONF_mem_cm_intosc_32k_spare_S 9
  284. #define HIB3P3_MEM_INT_OSC_CONF_mem_cm_en_intosc_32k_override_ctrl \
  285. 0x00000100 // When 1, the INT_32K_OSC_EN comes
  286. // from bit [0] of this register,
  287. // else comes from the FSM. This
  288. // register will be reset during
  289. // Hibernate-WO-Clks mode (but not
  290. // during Hibernate-W-Clks mode)
  291. #define HIB3P3_MEM_INT_OSC_CONF_NU1 \
  292. 0x00000080
  293. #define HIB3P3_MEM_INT_OSC_CONF_mem_cm_intosc_32k_trim_M \
  294. 0x0000007E
  295. #define HIB3P3_MEM_INT_OSC_CONF_mem_cm_intosc_32k_trim_S 1
  296. #define HIB3P3_MEM_INT_OSC_CONF_mem_cm_en_intosc_32k \
  297. 0x00000001 // Override value for INT_OSC_EN.
  298. // Applicable only when bit [3] of
  299. // this register is set to 1.
  300. //******************************************************************************
  301. //
  302. // The following are defines for the bit fields in the
  303. // HIB3P3_O_MEM_XTAL_OSC_CONF register.
  304. //
  305. //******************************************************************************
  306. #define HIB3P3_MEM_XTAL_OSC_CONF_reserved_M \
  307. 0xFFF00000
  308. #define HIB3P3_MEM_XTAL_OSC_CONF_reserved_S 20
  309. #define HIB3P3_MEM_XTAL_OSC_CONF_mem_cm_en_sli_32k_override_ctrl \
  310. 0x00080000 // When 1, the SLICER_EN comes from
  311. // bit [10] of this register, else
  312. // comes from the FSM.
  313. #define HIB3P3_MEM_XTAL_OSC_CONF_mem_cm_en_xtal_32k_override_ctrl \
  314. 0x00040000 // When 1, the XTAL_EN comes from
  315. // bit [0] of this register, else
  316. // comes from the FSM.
  317. #define HIB3P3_MEM_XTAL_OSC_CONF_cm_clk_good_xtal \
  318. 0x00020000 // 1 - XTAL Clk is good ; 0 - XTAL
  319. // Clk is yet to be valid.
  320. #define HIB3P3_MEM_XTAL_OSC_CONF_mem_cm_xtal_trim_M \
  321. 0x0001F800
  322. #define HIB3P3_MEM_XTAL_OSC_CONF_mem_cm_xtal_trim_S 11
  323. #define HIB3P3_MEM_XTAL_OSC_CONF_mem_cm_en_sli_32k \
  324. 0x00000400 // SLICER_EN Override value :
  325. // Applicable only when bit [19] of
  326. // this register is set to 1.
  327. #define HIB3P3_MEM_XTAL_OSC_CONF_mem_cm_sli_32k_trim_M \
  328. 0x00000380
  329. #define HIB3P3_MEM_XTAL_OSC_CONF_mem_cm_sli_32k_trim_S 7
  330. #define HIB3P3_MEM_XTAL_OSC_CONF_mem_cm_fref_32k_slicer_itrim_M \
  331. 0x00000070
  332. #define HIB3P3_MEM_XTAL_OSC_CONF_mem_cm_fref_32k_slicer_itrim_S 4
  333. #define HIB3P3_MEM_XTAL_OSC_CONF_mem_cm_en_fref_32k_slicer \
  334. 0x00000008
  335. #define HIB3P3_MEM_XTAL_OSC_CONF_mem_cm_en_input_sense_M \
  336. 0x00000006
  337. #define HIB3P3_MEM_XTAL_OSC_CONF_mem_cm_en_input_sense_S 1
  338. #define HIB3P3_MEM_XTAL_OSC_CONF_mem_cm_en_xtal_32k \
  339. 0x00000001 // XTAL_EN Override value :
  340. // Applicable only when bit [18] of
  341. // this register is set to 1.
  342. //******************************************************************************
  343. //
  344. // The following are defines for the bit fields in the
  345. // HIB3P3_O_MEM_BGAP_PARAMETERS0 register.
  346. //
  347. //******************************************************************************
  348. #define HIB3P3_MEM_BGAP_PARAMETERS0_reserved_M \
  349. 0xFFF80000
  350. #define HIB3P3_MEM_BGAP_PARAMETERS0_reserved_S 19
  351. #define HIB3P3_MEM_BGAP_PARAMETERS0_mem_en_seq \
  352. 0x00040000
  353. #define HIB3P3_MEM_BGAP_PARAMETERS0_mem_vbok4bg_comp_trim_M \
  354. 0x0001C000
  355. #define HIB3P3_MEM_BGAP_PARAMETERS0_mem_vbok4bg_comp_trim_S 14
  356. #define HIB3P3_MEM_BGAP_PARAMETERS0_mem_bgap_en_vbat_ok_4bg \
  357. 0x00001000
  358. #define HIB3P3_MEM_BGAP_PARAMETERS0_mem_bgap_en_vbok4bg_comp \
  359. 0x00000800
  360. #define HIB3P3_MEM_BGAP_PARAMETERS0_mem_bgap_en_vbok4bg_comp_ref \
  361. 0x00000400
  362. #define HIB3P3_MEM_BGAP_PARAMETERS0_mem_bgap_spare_M \
  363. 0x000003FF
  364. #define HIB3P3_MEM_BGAP_PARAMETERS0_mem_bgap_spare_S 0
  365. //******************************************************************************
  366. //
  367. // The following are defines for the bit fields in the
  368. // HIB3P3_O_MEM_BGAP_PARAMETERS1 register.
  369. //
  370. //******************************************************************************
  371. #define HIB3P3_MEM_BGAP_PARAMETERS1_reserved_M \
  372. 0xE0000000
  373. #define HIB3P3_MEM_BGAP_PARAMETERS1_reserved_S 29
  374. #define HIB3P3_MEM_BGAP_PARAMETERS1_mem_bgap_act_iref_itrim_M \
  375. 0x1F000000
  376. #define HIB3P3_MEM_BGAP_PARAMETERS1_mem_bgap_act_iref_itrim_S 24
  377. #define HIB3P3_MEM_BGAP_PARAMETERS1_mem_bgap_en_act_iref \
  378. 0x00000008
  379. #define HIB3P3_MEM_BGAP_PARAMETERS1_mem_bgap_en_v2i \
  380. 0x00000004
  381. #define HIB3P3_MEM_BGAP_PARAMETERS1_mem_bgap_en_cap_sw \
  382. 0x00000002
  383. #define HIB3P3_MEM_BGAP_PARAMETERS1_mem_bgap_en \
  384. 0x00000001
  385. //******************************************************************************
  386. //
  387. // The following are defines for the bit fields in the
  388. // HIB3P3_O_MEM_HIB_DETECTION_STATUS register.
  389. //
  390. //******************************************************************************
  391. #define HIB3P3_MEM_HIB_DETECTION_STATUS_reserved_M \
  392. 0xFFFFFF80
  393. #define HIB3P3_MEM_HIB_DETECTION_STATUS_reserved_S 7
  394. #define HIB3P3_MEM_HIB_DETECTION_STATUS_hib_forced_ana_status \
  395. 0x00000040 // 1 - 1.8 V supply forced mode.
  396. #define HIB3P3_MEM_HIB_DETECTION_STATUS_hib_forced_flash_status \
  397. 0x00000004 // 1 - 3.3 V supply forced mode for
  398. // Flash supply
  399. #define HIB3P3_MEM_HIB_DETECTION_STATUS_hib_ext_clk_det_out_status \
  400. 0x00000002 // 1 - Forced clock mode
  401. #define HIB3P3_MEM_HIB_DETECTION_STATUS_hib_xtal_det_out_status \
  402. 0x00000001 // 1 - XTAL clock mode
  403. //******************************************************************************
  404. //
  405. // The following are defines for the bit fields in the
  406. // HIB3P3_O_MEM_HIB_MISC_CONTROLS register.
  407. //
  408. //******************************************************************************
  409. #define HIB3P3_MEM_HIB_MISC_CONTROLS_reserved_M \
  410. 0xFFFFF800
  411. #define HIB3P3_MEM_HIB_MISC_CONTROLS_reserved_S 11
  412. #define HIB3P3_MEM_HIB_MISC_CONTROLS_mem_hib_en_pok_por_comp \
  413. 0x00000400
  414. #define HIB3P3_MEM_HIB_MISC_CONTROLS_mem_hib_en_pok_por_comp_ref \
  415. 0x00000200
  416. #define HIB3P3_MEM_HIB_MISC_CONTROLS_mem_hib_pok_por_comp_trim_M \
  417. 0x000001C0
  418. #define HIB3P3_MEM_HIB_MISC_CONTROLS_mem_hib_pok_por_comp_trim_S 6
  419. #define HIB3P3_MEM_HIB_MISC_CONTROLS_NU1 \
  420. 0x00000020
  421. #define HIB3P3_MEM_HIB_MISC_CONTROLS_mem_hib_flash_det_en \
  422. 0x00000010
  423. #define HIB3P3_MEM_HIB_MISC_CONTROLS_mem_hib_en_tmux \
  424. 0x00000001
  425. //******************************************************************************
  426. //
  427. // The following are defines for the bit fields in the
  428. // HIB3P3_O_MEM_HIB_CONFIG register.
  429. //
  430. //******************************************************************************
  431. #define HIB3P3_MEM_HIB_CONFIG_TOP_MUX_CTRL_SOP_SPIO_M \
  432. 0xFF000000
  433. #define HIB3P3_MEM_HIB_CONFIG_TOP_MUX_CTRL_SOP_SPIO_S 24
  434. #define HIB3P3_MEM_HIB_CONFIG_EN_ANA_DIG_SHARED3 \
  435. 0x00080000 // 1 - Enable VDD_FLASH_INDP_PAD
  436. // for digital path (SHARED4) ; 0 -
  437. // Disable VDD_FLASH_INDP_PAD for
  438. // digital path (SHARED4) ; Before
  439. // programming this bit to 1, ensure
  440. // that the device is in FORCED 3.3
  441. // supply Mode, which can be
  442. // inferred from the register :
  443. // MEM_HIB_DETECTION_STATUS : 0x0040
  444. #define HIB3P3_MEM_HIB_CONFIG_EN_ANA_DIG_SHARED2 \
  445. 0x00040000 // 1 - Enable the
  446. // VDD_FB_GPIO_MUX_PAD for digital
  447. // path (SHARED3) ; 0 - Disable the
  448. // VDD_FB_GPIO_MUX_PAD for digital
  449. // path (SHARED3) ; This pin can be
  450. // used only in modes other than
  451. // SOP("111")
  452. #define HIB3P3_MEM_HIB_CONFIG_EN_ANA_DIG_SHARED1 \
  453. 0x00020000 // 1 - Enable the PM_TEST_PAD for
  454. // digital GPIO path (SHARED2) ; 0 -
  455. // Disable the PM_TEST_PAD for
  456. // digital GPIO path (SHARED2) This
  457. // pin can be used for digital only
  458. // in modes other then SOP-111
  459. #define HIB3P3_MEM_HIB_CONFIG_EN_ANA_DIG_SHARED0 \
  460. 0x00010000 // 1 - Enable the XTAL_N pin
  461. // digital GPIO path (SHARED1); 0 -
  462. // Disable the XTAL_N pin digital
  463. // GPIO path (SHARED1). Before
  464. // programming this bit to 1, ensure
  465. // that the device is in FORCED CLK
  466. // Mode, which can inferred from the
  467. // register :
  468. // MEM_HIB_DETECTION_STATUS :
  469. // 0x0040.
  470. #define HIB3P3_MEM_HIB_CONFIG_mem_hib_xtal_enable \
  471. 0x00000100 // 1 - Enable the XTAL Clock ; 0 -
  472. // Donot enable the XTAL Clock. This
  473. // bit has to be programmed to 1 (by
  474. // APPS Devinit F/w), during exit
  475. // from OFF or Hib_wo_clks modes,
  476. // after checking if the slow_clk
  477. // mode is XTAL_CLK mode. Once
  478. // enabled the XTAL will be disabled
  479. // only after entering HIB_WO_CLKS
  480. // mode. This register will be reset
  481. // during Hibernate -WO-Clks mode
  482. // (but not during Hibernate-W-Clks
  483. // mode).
  484. //******************************************************************************
  485. //
  486. // The following are defines for the bit fields in the
  487. // HIB3P3_O_MEM_HIB_RTC_IRQ_ENABLE register.
  488. //
  489. //******************************************************************************
  490. #define HIB3P3_MEM_HIB_RTC_IRQ_ENABLE_HIB_RTC_IRQ_ENABLE \
  491. 0x00000001 // 1 - Enable the HIB RTC - IRQ ; 0
  492. // - Disable the HIB RTC - IRQ
  493. //******************************************************************************
  494. //
  495. // The following are defines for the bit fields in the
  496. // HIB3P3_O_MEM_HIB_RTC_IRQ_LSW_CONF register.
  497. //
  498. //******************************************************************************
  499. #define HIB3P3_MEM_HIB_RTC_IRQ_LSW_CONF_HIB_RTC_IRQ_LSW_CONF_M \
  500. 0xFFFFFFFF // Configuration for LSW of the
  501. // RTC-Timestamp at which interrupt
  502. // need to be generated
  503. #define HIB3P3_MEM_HIB_RTC_IRQ_LSW_CONF_HIB_RTC_IRQ_LSW_CONF_S 0
  504. //******************************************************************************
  505. //
  506. // The following are defines for the bit fields in the
  507. // HIB3P3_O_MEM_HIB_RTC_IRQ_MSW_CONF register.
  508. //
  509. //******************************************************************************
  510. #define HIB3P3_MEM_HIB_RTC_IRQ_MSW_CONF_HIB_RTC_IRQ_MSW_CONF_M \
  511. 0x0000FFFF // Configuration for MSW of thr
  512. // RTC-Timestamp at which the
  513. // interrupt need to be generated
  514. #define HIB3P3_MEM_HIB_RTC_IRQ_MSW_CONF_HIB_RTC_IRQ_MSW_CONF_S 0
  515. //******************************************************************************
  516. //
  517. // The following are defines for the bit fields in the
  518. // HIB3P3_O_MEM_HIB_UART_CONF register.
  519. //
  520. //******************************************************************************
  521. #define HIB3P3_MEM_HIB_UART_CONF_reserved_M \
  522. 0xFFFFFFFE
  523. #define HIB3P3_MEM_HIB_UART_CONF_reserved_S 1
  524. #define HIB3P3_MEM_HIB_UART_CONF_mem_hib_uart_wake_en \
  525. 0x00000001 // 1 - Enable the UART-Autonomous
  526. // mode wakeup during Hibernate mode
  527. // ; This is an auto-clear bit, once
  528. // programmed to 1, it will latched
  529. // into an internal register which
  530. // remain asserted until the
  531. // Hib-wakeup is initiated.
  532. //******************************************************************************
  533. //
  534. // The following are defines for the bit fields in the
  535. // HIB3P3_O_MEM_GPIO_WAKE_EN register.
  536. //
  537. //******************************************************************************
  538. #define HIB3P3_MEM_GPIO_WAKE_EN_reserved_M \
  539. 0xFFFFFF00
  540. #define HIB3P3_MEM_GPIO_WAKE_EN_reserved_S 8
  541. #define HIB3P3_MEM_GPIO_WAKE_EN_mem_gpio_wake_en_M \
  542. 0x000000FF // 1 - Enable the GPIO-Autonomous
  543. // mode wakeup during Hibernate mode
  544. // ; This is an auto-clear bit, once
  545. // programmed to 1, it will latched
  546. // into an internal register which
  547. // remain asserted until the
  548. // Hib-wakeup is initiated.
  549. #define HIB3P3_MEM_GPIO_WAKE_EN_mem_gpio_wake_en_S 0
  550. //******************************************************************************
  551. //
  552. // The following are defines for the bit fields in the
  553. // HIB3P3_O_MEM_GPIO_WAKE_CONF register.
  554. //
  555. //******************************************************************************
  556. #define HIB3P3_MEM_GPIO_WAKE_CONF_reserved_M \
  557. 0xFFFF0000
  558. #define HIB3P3_MEM_GPIO_WAKE_CONF_reserved_S 16
  559. #define HIB3P3_MEM_GPIO_WAKE_CONF_mem_gpio_wake_conf_M \
  560. 0x0000FFFF // Configuration to say whether the
  561. // GPIO wakeup has to happen on
  562. // Level0 or falling-edge for the
  563. // given group. “00” – Level0 “01” –
  564. // Level1 “10”- Fall-edge “11”-
  565. // Rise-edge [1:0] – Conf for GPIO0
  566. // [3:2] – Conf for GPIO1 [5:4] –
  567. // Conf for GPIO2 [7:6] – Conf for
  568. // GPIO3 [9:8] – Conf for GPIO4
  569. // [11:10] – Conf for GPIO5 [13:12]
  570. // – Conf for GPIO6
  571. #define HIB3P3_MEM_GPIO_WAKE_CONF_mem_gpio_wake_conf_S 0
  572. //******************************************************************************
  573. //
  574. // The following are defines for the bit fields in the
  575. // HIB3P3_O_MEM_PAD_OEN_RET33_CONF register.
  576. //
  577. //******************************************************************************
  578. #define HIB3P3_MEM_PAD_OEN_RET33_CONF_mem_pad_oen_ret33_override_ctrl \
  579. 0x00000004 // 1 - Override the OEN33 and RET33
  580. // controls of GPIOs during
  581. // SOP-Bootdebug mode ; 0 - Donot
  582. // override the OEN33 and RET33
  583. // controls of GPIOs during
  584. // SOP-Bootdebug mode
  585. #define HIB3P3_MEM_PAD_OEN_RET33_CONF_PAD_OEN33_CONF \
  586. 0x00000002
  587. #define HIB3P3_MEM_PAD_OEN_RET33_CONF_PAD_RET33_CONF \
  588. 0x00000001
  589. //******************************************************************************
  590. //
  591. // The following are defines for the bit fields in the
  592. // HIB3P3_O_MEM_UART_RTS_OEN_RET33_CONF register.
  593. //
  594. //******************************************************************************
  595. #define HIB3P3_MEM_UART_RTS_OEN_RET33_CONF_mem_uart_nrts_oen_ret33_override_ctrl \
  596. 0x00000004 // 1 - Override the OEN33 and RET33
  597. // controls of UART NRTS GPIO during
  598. // SOP-Bootdebug mode ; 0 - Donot
  599. // override the OEN33 and RET33
  600. // controls of UART NRTS GPIO during
  601. // SOP-Bootdebug mode
  602. #define HIB3P3_MEM_UART_RTS_OEN_RET33_CONF_PAD_UART_RTS_OEN33_CONF \
  603. 0x00000002
  604. #define HIB3P3_MEM_UART_RTS_OEN_RET33_CONF_PAD_UART_RTS_RET33_CONF \
  605. 0x00000001
  606. //******************************************************************************
  607. //
  608. // The following are defines for the bit fields in the
  609. // HIB3P3_O_MEM_JTAG_CONF register.
  610. //
  611. //******************************************************************************
  612. #define HIB3P3_MEM_JTAG_CONF_mem_jtag1_oen_ret33_override_ctrl \
  613. 0x00000200
  614. #define HIB3P3_MEM_JTAG_CONF_mem_jtag0_oen_ret33_override_ctrl \
  615. 0x00000100
  616. #define HIB3P3_MEM_JTAG_CONF_PAD_JTAG1_RTS_OEN33_CONF \
  617. 0x00000008
  618. #define HIB3P3_MEM_JTAG_CONF_PAD_JTAG1_RTS_RET33_CONF \
  619. 0x00000004
  620. #define HIB3P3_MEM_JTAG_CONF_PAD_JTAG0_RTS_OEN33_CONF \
  621. 0x00000002
  622. #define HIB3P3_MEM_JTAG_CONF_PAD_JTAG0_RTS_RET33_CONF \
  623. 0x00000001
  624. //******************************************************************************
  625. //
  626. // The following are defines for the bit fields in the
  627. // HIB3P3_O_MEM_HIB_REG0 register.
  628. //
  629. //******************************************************************************
  630. #define HIB3P3_MEM_HIB_REG0_mem_hib_reg0_M \
  631. 0xFFFFFFFF
  632. #define HIB3P3_MEM_HIB_REG0_mem_hib_reg0_S 0
  633. //******************************************************************************
  634. //
  635. // The following are defines for the bit fields in the
  636. // HIB3P3_O_MEM_HIB_REG1 register.
  637. //
  638. //******************************************************************************
  639. #define HIB3P3_MEM_HIB_REG1_mem_hib_reg1_M \
  640. 0xFFFFFFFF
  641. #define HIB3P3_MEM_HIB_REG1_mem_hib_reg1_S 0
  642. //******************************************************************************
  643. //
  644. // The following are defines for the bit fields in the
  645. // HIB3P3_O_MEM_HIB_REG2 register.
  646. //
  647. //******************************************************************************
  648. #define HIB3P3_MEM_HIB_REG2_mem_hib_reg2_M \
  649. 0xFFFFFFFF
  650. #define HIB3P3_MEM_HIB_REG2_mem_hib_reg2_S 0
  651. //******************************************************************************
  652. //
  653. // The following are defines for the bit fields in the
  654. // HIB3P3_O_MEM_HIB_REG3 register.
  655. //
  656. //******************************************************************************
  657. #define HIB3P3_MEM_HIB_REG3_mem_hib_reg3_M \
  658. 0xFFFFFFFF
  659. #define HIB3P3_MEM_HIB_REG3_mem_hib_reg3_S 0
  660. //******************************************************************************
  661. //
  662. // The following are defines for the bit fields in the
  663. // HIB3P3_O_MEM_HIB_SEQUENCER_CFG0 register.
  664. //
  665. //******************************************************************************
  666. #define HIB3P3_MEM_HIB_SEQUENCER_CFG0_mem_bdc_ev0_to_ev1_time_M \
  667. 0xFFFF0000 // Configuration for the number of
  668. // slow-clks between de-assertion of
  669. // EN_BG_3P3V to assertion of
  670. // EN_BG_3P3V
  671. #define HIB3P3_MEM_HIB_SEQUENCER_CFG0_mem_bdc_ev0_to_ev1_time_S 16
  672. #define HIB3P3_MEM_HIB_SEQUENCER_CFG0_NU1 \
  673. 0x00008000
  674. #define HIB3P3_MEM_HIB_SEQUENCER_CFG0_mem_bdc_ev3_to_ev4_time_M \
  675. 0x00006000 // Configuration for the number of
  676. // slow-clks between assertion of
  677. // EN_COMP_3P3V and assertion of
  678. // EN_COMP_LATCH_3P3V
  679. #define HIB3P3_MEM_HIB_SEQUENCER_CFG0_mem_bdc_ev3_to_ev4_time_S 13
  680. #define HIB3P3_MEM_HIB_SEQUENCER_CFG0_mem_bdc_ev2_to_ev3_time_M \
  681. 0x00001800 // Configuration for the number of
  682. // slow-clks between assertion of
  683. // (EN_CAP_SW_3P3V,EN_COMP_REF) and
  684. // assertion of (EN_COMP_3P3V)
  685. #define HIB3P3_MEM_HIB_SEQUENCER_CFG0_mem_bdc_ev2_to_ev3_time_S 11
  686. #define HIB3P3_MEM_HIB_SEQUENCER_CFG0_mem_bdc_ev1_to_ev2_time_M \
  687. 0x00000600 // Configuration for the number of
  688. // slow-clks between assertion of
  689. // (EN_BG_3P3V) and assertion of
  690. // (EN_CAP_SW_3P3V,
  691. // EN_COMP_REF_3P3V)
  692. #define HIB3P3_MEM_HIB_SEQUENCER_CFG0_mem_bdc_ev1_to_ev2_time_S 9
  693. #define HIB3P3_MEM_HIB_SEQUENCER_CFG0_mem_en_crude_ref_comp \
  694. 0x00000100
  695. #define HIB3P3_MEM_HIB_SEQUENCER_CFG0_mem_en_vbok4bg_ref_override_ctrl \
  696. 0x00000080 // 1 - EN_VBOK4BG_REF comes from
  697. // bit[10] of the register
  698. // MEM_BGAP_PARAMETERS0 [0x0038]. 0
  699. // - EN_VBOK4BG_REF comes directly
  700. // from the Hib-Sequencer.
  701. #define HIB3P3_MEM_HIB_SEQUENCER_CFG0_mem_en_vbok4bg_comp_override_ctrl \
  702. 0x00000040 // 1 - EN_VBOK4BG comes from
  703. // bit[11] of the register
  704. // MEM_BGAP_PARAMETERS0 [0x0038]. 0
  705. // - EN_VBOK4BG comes directly from
  706. // the Hib-Sequencer.
  707. #define HIB3P3_MEM_HIB_SEQUENCER_CFG0_mem_en_v2i_override_ctrl \
  708. 0x00000020 // 1 - EN_V2I comes from bit[2] of
  709. // the register MEM_BGAP_PARAMETERS1
  710. // [0x003C]. 0 - EN_V2I comes
  711. // directly from the Hib-Sequencer.
  712. #define HIB3P3_MEM_HIB_SEQUENCER_CFG0_mem_por_comp_ref_override_ctrl \
  713. 0x00000010 // 1 - EN_POR_COMP_REF comes from
  714. // bit[9] of the register
  715. // MEM_HIB_MISC_CONTROLS [0x0044]. 0
  716. // - EN_POR_COMP_REF comes directly
  717. // from the Hib-Sequencer.
  718. #define HIB3P3_MEM_HIB_SEQUENCER_CFG0_mem_en_por_comp_override_ctrl \
  719. 0x00000008 // 1 - EN_POR_COMP comes from
  720. // bit[10] of the register
  721. // MEM_HIB_MISC_CONTROLS [0x044]. 0
  722. // - EN_POR_COMP comes directly from
  723. // the Hib-Sequencer.
  724. #define HIB3P3_MEM_HIB_SEQUENCER_CFG0_mem_cap_sw_override_ctrl \
  725. 0x00000004 // 1 - EN_CAP_SW comes from bit[1]
  726. // of the register
  727. // MEM_BGAP_PARAMETERS1 [0x003C]. 0
  728. // - EN_CAP_SW comes directly from
  729. // Hib-Sequencer.
  730. #define HIB3P3_MEM_HIB_SEQUENCER_CFG0_mem_bg_override_ctrl \
  731. 0x00000002 // 1 - EN_BGAP comes from bit[0] of
  732. // the register MEM_BGAP_PARAMETERS1
  733. // [0x003C]. 0 - EN_BGAP comes
  734. // directly from Hib-Sequencer.
  735. #define HIB3P3_MEM_HIB_SEQUENCER_CFG0_mem_act_iref_override_ctrl \
  736. 0x00000001
  737. //******************************************************************************
  738. //
  739. // The following are defines for the bit fields in the
  740. // HIB3P3_O_MEM_HIB_SEQUENCER_CFG1 register.
  741. //
  742. //******************************************************************************
  743. #define HIB3P3_MEM_HIB_SEQUENCER_CFG1_reserved_M \
  744. 0xFFFF0000
  745. #define HIB3P3_MEM_HIB_SEQUENCER_CFG1_reserved_S 16
  746. #define HIB3P3_MEM_HIB_SEQUENCER_CFG1_mem_bdc_ev5_to_ev6_time_M \
  747. 0x0000C000 // Configuration for number of
  748. // slow-clks between de-assertion of
  749. // EN_COMP_LATCH and assertion of
  750. #define HIB3P3_MEM_HIB_SEQUENCER_CFG1_mem_bdc_ev5_to_ev6_time_S 14
  751. #define HIB3P3_MEM_HIB_SEQUENCER_CFG1_mem_bdc_to_active_ev1_to_ev2_time_M \
  752. 0x00003000 // Configuration for number of
  753. // slow-clks between assertion of
  754. // EN_COMP_REF to assertion of
  755. // EN_COMP during HIB-Exit
  756. #define HIB3P3_MEM_HIB_SEQUENCER_CFG1_mem_bdc_to_active_ev1_to_ev2_time_S 12
  757. #define HIB3P3_MEM_HIB_SEQUENCER_CFG1_mem_bdc_to_active_ev0_to_ev1_time_M \
  758. 0x00000C00 // TBD
  759. #define HIB3P3_MEM_HIB_SEQUENCER_CFG1_mem_bdc_to_active_ev0_to_ev1_time_S 10
  760. #define HIB3P3_MEM_HIB_SEQUENCER_CFG1_mem_bdc_to_active_ev0_to_active_M \
  761. 0x00000300 // Configuration in number of
  762. // slow-clks between assertion of
  763. // (EN_BGAP_3P3V, EN_CAP_SW_3P3V,
  764. // EN_ACT_IREF_3P3V, EN_COMP_REF) to
  765. // assertion of EN_COMP_3P3V
  766. #define HIB3P3_MEM_HIB_SEQUENCER_CFG1_mem_bdc_to_active_ev0_to_active_S 8
  767. #define HIB3P3_MEM_HIB_SEQUENCER_CFG1_mem_active_to_bdc_ev1_to_bdc_ev0_time_M \
  768. 0x000000C0 // Configuration in number of
  769. // slow-clks between de-assertion of
  770. // (EN_COMP_3P3V, EN_COMP_REF_3P3V,
  771. // EN_ACT_IREF_3P3V, EN_CAP_SW_3P3V)
  772. // to deassertion of EN_BGAP_3P3V.
  773. #define HIB3P3_MEM_HIB_SEQUENCER_CFG1_mem_active_to_bdc_ev1_to_bdc_ev0_time_S 6
  774. #define HIB3P3_MEM_HIB_SEQUENCER_CFG1_NU1_M \
  775. 0x0000003F
  776. #define HIB3P3_MEM_HIB_SEQUENCER_CFG1_NU1_S 0
  777. //******************************************************************************
  778. //
  779. // The following are defines for the bit fields in the
  780. // HIB3P3_O_MEM_HIB_MISC_CONFIG register.
  781. //
  782. //******************************************************************************
  783. #define HIB3P3_MEM_HIB_MISC_CONFIG_mem_en_pll_untrim_current \
  784. 0x00000001
  785. //******************************************************************************
  786. //
  787. // The following are defines for the bit fields in the
  788. // HIB3P3_O_MEM_HIB_WAKE_STATUS register.
  789. //
  790. //******************************************************************************
  791. #define HIB3P3_MEM_HIB_WAKE_STATUS_hib_wake_src_M \
  792. 0x0000001E // "0100" - GPIO ; "0010" - RTC ;
  793. // "0001" - UART Others - Reserved
  794. #define HIB3P3_MEM_HIB_WAKE_STATUS_hib_wake_src_S 1
  795. #define HIB3P3_MEM_HIB_WAKE_STATUS_hib_wake_status \
  796. 0x00000001 // 1 - Wake from Hibernate ; 0 -
  797. // Wake from OFF
  798. //******************************************************************************
  799. //
  800. // The following are defines for the bit fields in the
  801. // HIB3P3_O_MEM_HIB_LPDS_GPIO_SEL register.
  802. //
  803. //******************************************************************************
  804. #define HIB3P3_MEM_HIB_LPDS_GPIO_SEL_HIB_LPDS_GPIO_SEL_M \
  805. 0x00000007
  806. #define HIB3P3_MEM_HIB_LPDS_GPIO_SEL_HIB_LPDS_GPIO_SEL_S 0
  807. //******************************************************************************
  808. //
  809. // The following are defines for the bit fields in the
  810. // HIB3P3_O_MEM_HIB_SEQUENCER_CFG2 register.
  811. //
  812. //******************************************************************************
  813. #define HIB3P3_MEM_HIB_SEQUENCER_CFG2_reserved_M \
  814. 0xFFFFF800
  815. #define HIB3P3_MEM_HIB_SEQUENCER_CFG2_reserved_S 11
  816. #define HIB3P3_MEM_HIB_SEQUENCER_CFG2_mem_active_to_bdc_ev0_to_active_to_bdc_ev1_time_M \
  817. 0x00000600 // Deassertion of EN_COMP_LATCH_3P3
  818. // to deassertion of (EN_COMP_3P3,
  819. // EN_COMP_REF_3P3, EN_ACT_IREF_3P3,
  820. // EN_CAP_SW_3P3)
  821. #define HIB3P3_MEM_HIB_SEQUENCER_CFG2_mem_active_to_bdc_ev0_to_active_to_bdc_ev1_time_S 9
  822. #define HIB3P3_MEM_HIB_SEQUENCER_CFG2_mem_bdc_ev4_to_ev5_time_M \
  823. 0x000001C0 // Assertion of EN_COMP_LATCH_3P3
  824. // to deassertion of
  825. // EN_COMP_LATCH_3P3
  826. #define HIB3P3_MEM_HIB_SEQUENCER_CFG2_mem_bdc_ev4_to_ev5_time_S 6
  827. #define HIB3P3_MEM_HIB_SEQUENCER_CFG2_mem_bdc_ev6_to_ev7_time_M \
  828. 0x00000030 // Deassertion of (EN_CAP_SW_3P3,
  829. // EN_COMP_REF_3P3, EN_COMP_3P3,
  830. // EN_COMP_OUT_LATCH_3P3) to
  831. // deassertion of EN_BGAP_3P3
  832. #define HIB3P3_MEM_HIB_SEQUENCER_CFG2_mem_bdc_ev6_to_ev7_time_S 4
  833. #define HIB3P3_MEM_HIB_SEQUENCER_CFG2_mem_bdc_to_active_ev1_to_ev2_time_M \
  834. 0x0000000C // Assertion of EN_COMP_3P3 to
  835. // assertion of EN_COMPOUT_LATCH_3P3
  836. #define HIB3P3_MEM_HIB_SEQUENCER_CFG2_mem_bdc_to_active_ev1_to_ev2_time_S 2
  837. #define HIB3P3_MEM_HIB_SEQUENCER_CFG2_mem_hib_to_active_ev2_to_ev3_time_M \
  838. 0x00000003 // Assertion of EN_COMP_3P3 to
  839. // assertion of EN_COMPOUT_LATCH_3P3
  840. #define HIB3P3_MEM_HIB_SEQUENCER_CFG2_mem_hib_to_active_ev2_to_ev3_time_S 0
  841. //******************************************************************************
  842. //
  843. // The following are defines for the bit fields in the
  844. // HIB3P3_O_HIBANA_SPARE_LOWV register.
  845. //
  846. //******************************************************************************
  847. #define HIB3P3_HIBANA_SPARE_LOWV_mem_hibana_spare1_M \
  848. 0xFFC00000
  849. #define HIB3P3_HIBANA_SPARE_LOWV_mem_hibana_spare1_S 22
  850. #define HIB3P3_HIBANA_SPARE_LOWV_mem_hibana_spare0_M \
  851. 0x0001FFFF
  852. #define HIB3P3_HIBANA_SPARE_LOWV_mem_hibana_spare0_S 0
  853. //******************************************************************************
  854. //
  855. // The following are defines for the bit fields in the
  856. // HIB3P3_O_HIB_TMUX_CTRL register.
  857. //
  858. //******************************************************************************
  859. #define HIB3P3_HIB_TMUX_CTRL_reserved_M \
  860. 0xFFFFFC00
  861. #define HIB3P3_HIB_TMUX_CTRL_reserved_S 10
  862. #define HIB3P3_HIB_TMUX_CTRL_mem_hd_tmux_cntrl_M \
  863. 0x000003FF
  864. #define HIB3P3_HIB_TMUX_CTRL_mem_hd_tmux_cntrl_S 0
  865. //******************************************************************************
  866. //
  867. // The following are defines for the bit fields in the
  868. // HIB3P3_O_HIB_1P2_1P8_LDO_TRIM register.
  869. //
  870. //******************************************************************************
  871. #define HIB3P3_HIB_1P2_1P8_LDO_TRIM_reserved_M \
  872. 0xFFFFF000
  873. #define HIB3P3_HIB_1P2_1P8_LDO_TRIM_reserved_S 12
  874. #define HIB3P3_HIB_1P2_1P8_LDO_TRIM_mem_hd_1p2_ldo_en_override_ctrl \
  875. 0x00000800
  876. #define HIB3P3_HIB_1P2_1P8_LDO_TRIM_mem_hd_1p8_ldo_en_override_ctrl \
  877. 0x00000400
  878. #define HIB3P3_HIB_1P2_1P8_LDO_TRIM_mem_hd_1p2_ldo_en_override \
  879. 0x00000200
  880. #define HIB3P3_HIB_1P2_1P8_LDO_TRIM_mem_hd_1p8_ldo_en_override \
  881. 0x00000100
  882. #define HIB3P3_HIB_1P2_1P8_LDO_TRIM_mem_hd_1p2_ldo_vtrim_M \
  883. 0x000000F0
  884. #define HIB3P3_HIB_1P2_1P8_LDO_TRIM_mem_hd_1p2_ldo_vtrim_S 4
  885. #define HIB3P3_HIB_1P2_1P8_LDO_TRIM_mem_hd_1p8_ldo_vtrim_M \
  886. 0x0000000F
  887. #define HIB3P3_HIB_1P2_1P8_LDO_TRIM_mem_hd_1p8_ldo_vtrim_S 0
  888. //******************************************************************************
  889. //
  890. // The following are defines for the bit fields in the
  891. // HIB3P3_O_HIB_COMP_TRIM register.
  892. //
  893. //******************************************************************************
  894. #define HIB3P3_HIB_COMP_TRIM_reserved_M \
  895. 0xFFFFFFF8
  896. #define HIB3P3_HIB_COMP_TRIM_reserved_S 3
  897. #define HIB3P3_HIB_COMP_TRIM_mem_hd_comp_trim_M \
  898. 0x00000007
  899. #define HIB3P3_HIB_COMP_TRIM_mem_hd_comp_trim_S 0
  900. //******************************************************************************
  901. //
  902. // The following are defines for the bit fields in the
  903. // HIB3P3_O_HIB_EN_TS register.
  904. //
  905. //******************************************************************************
  906. #define HIB3P3_HIB_EN_TS_reserved_M \
  907. 0xFFFFFFFE
  908. #define HIB3P3_HIB_EN_TS_reserved_S 1
  909. #define HIB3P3_HIB_EN_TS_mem_hd_en_ts \
  910. 0x00000001
  911. //******************************************************************************
  912. //
  913. // The following are defines for the bit fields in the
  914. // HIB3P3_O_HIB_1P8V_DET_EN register.
  915. //
  916. //******************************************************************************
  917. #define HIB3P3_HIB_1P8V_DET_EN_reserved_M \
  918. 0xFFFFFFFE
  919. #define HIB3P3_HIB_1P8V_DET_EN_reserved_S 1
  920. #define HIB3P3_HIB_1P8V_DET_EN_mem_hib_1p8v_det_en \
  921. 0x00000001
  922. //******************************************************************************
  923. //
  924. // The following are defines for the bit fields in the
  925. // HIB3P3_O_HIB_VBAT_MON_EN register.
  926. //
  927. //******************************************************************************
  928. #define HIB3P3_HIB_VBAT_MON_EN_reserved_M \
  929. 0xFFFFFFFC
  930. #define HIB3P3_HIB_VBAT_MON_EN_reserved_S 2
  931. #define HIB3P3_HIB_VBAT_MON_EN_mem_hib_vbat_mon_del_en \
  932. 0x00000002
  933. #define HIB3P3_HIB_VBAT_MON_EN_mem_hib_vbat_mon_en \
  934. 0x00000001
  935. //******************************************************************************
  936. //
  937. // The following are defines for the bit fields in the
  938. // HIB3P3_O_HIB_NHIB_ENABLE register.
  939. //
  940. //******************************************************************************
  941. #define HIB3P3_HIB_NHIB_ENABLE_mem_hib_nhib_enable \
  942. 0x00000001
  943. //******************************************************************************
  944. //
  945. // The following are defines for the bit fields in the
  946. // HIB3P3_O_HIB_UART_RTS_SW_ENABLE register.
  947. //
  948. //******************************************************************************
  949. #define HIB3P3_HIB_UART_RTS_SW_ENABLE_mem_hib_uart_rts_sw_enable \
  950. 0x00000001
  951. #endif // __HW_HIB3P3_H__