drv_pmic.h 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515
  1. /**
  2. ******************************************************************************
  3. * @file stm32mp15xx_eval_stpmic1.h
  4. * @author MCD Application Team
  5. * @brief stpmu driver functions used for ST internal validation
  6. ******************************************************************************
  7. * @attention
  8. *
  9. * <h2><center>&copy; Copyright (c) 2019 STMicroelectronics.
  10. * All rights reserved.</center></h2>
  11. *
  12. * This software component is licensed by ST under BSD 3-Clause license,
  13. * the "License"; You may not use this file except in compliance with the
  14. * License. You may obtain a copy of the License at:
  15. * opensource.org/licenses/BSD-3-Clause
  16. *
  17. *
  18. ******************************************************************************
  19. */
  20. #ifndef __STPMIC_H__
  21. #define __STPMIC_H__
  22. #ifdef __cplusplus
  23. extern "C" {
  24. #endif
  25. #include "stm32mp1xx_hal.h"
  26. /* Exported types ------------------------------------------------------------*/
  27. typedef enum
  28. {
  29. STPMU1_BUCK1=1,
  30. STPMU1_BUCK2,
  31. STPMU1_BUCK3,
  32. STPMU1_BUCK4,
  33. STPMU1_LDO1,
  34. STPMU1_LDO2,
  35. STPMU1_LDO3,
  36. STPMU1_LDO4,
  37. STPMU1_LDO5,
  38. STPMU1_LDO6,
  39. STPMU1_VREFDDR,
  40. }PMIC_RegulId_TypeDef;
  41. /* IRQ definitions */
  42. typedef enum {
  43. /* Interrupt Register 1 (0x50 for latch) */
  44. IT_SWOUT_R,
  45. IT_SWOUT_F,
  46. IT_VBUS_OTG_R,
  47. IT_VBUS_OTG_F,
  48. IT_WAKEUP_R,
  49. IT_WAKEUP_F,
  50. IT_PONKEY_R,
  51. IT_PONKEY_F,
  52. /* Interrupt Register 2 (0x51 for latch) */
  53. IT_OVP_BOOST,
  54. IT_OCP_BOOST,
  55. IT_OCP_SWOUT,
  56. IT_OCP_OTG,
  57. IT_CURLIM_BUCK4,
  58. IT_CURLIM_BUCK3,
  59. IT_CURLIM_BUCK2,
  60. IT_CURLIM_BUCK1,
  61. /* Interrupt Register 3 (0x52 for latch) */
  62. IT_SHORT_SWOUT,
  63. IT_SHORT_SWOTG,
  64. IT_CURLIM_LDO6,
  65. IT_CURLIM_LDO5,
  66. IT_CURLIM_LDO4,
  67. IT_CURLIM_LDO3,
  68. IT_CURLIM_LDO2,
  69. IT_CURLIM_LDO1,
  70. /* Interrupt Register 3 (0x52 for latch) */
  71. IT_SWIN_R,
  72. IT_SWIN_F,
  73. IT_RESERVED_1,
  74. IT_RESERVED_2,
  75. IT_VINLOW_R,
  76. IT_VINLOW_F,
  77. IT_TWARN_R,
  78. IT_TWARN_F,
  79. IRQ_NR,
  80. } PMIC_IRQn;
  81. /* Private typedef -----------------------------------------------------------*/
  82. typedef struct {
  83. PMIC_RegulId_TypeDef id;
  84. uint16_t *voltage_table;
  85. uint8_t voltage_table_size;
  86. uint8_t control_reg;
  87. uint8_t low_power_reg;
  88. uint8_t rank ;
  89. uint8_t nvm_info ;
  90. } regul_struct;
  91. /* Those define should reflect NVM_USER section
  92. * For ES Eval Configuration this is specified as
  93. * 0xF7,
  94. 0x92,
  95. 0xC0,
  96. 0x02,
  97. 0xFA,
  98. 0x30,
  99. 0x00,
  100. 0x33,
  101. * */
  102. #define NVM_SECTOR3_REGISTER_0 0xF7
  103. #define NVM_SECTOR3_REGISTER_1 0x92
  104. #define NVM_SECTOR3_REGISTER_2 0xC0
  105. #define NVM_SECTOR3_REGISTER_3 0x02
  106. #define NVM_SECTOR3_REGISTER_4 0xFA
  107. #define NVM_SECTOR3_REGISTER_5 0x30
  108. #define NVM_SECTOR3_REGISTER_6 0x00
  109. #define NVM_SECTOR3_REGISTER_7 0x33
  110. /* nvm_vinok_hyst: VINOK hysteresis voltage
  111. 00: 200mV
  112. 01: 300mV
  113. 10: 400mV
  114. 11: 500mV
  115. *
  116. * nvm_vinok: VINOK threshold voltage
  117. 00: 3.1v
  118. 01: 3.3v
  119. 10: 3.5v
  120. 11: 4.5v
  121. Otp_ldo4_forced :
  122. 0: LDO4 ranks following OTP_RANK_LDO4<1:0>
  123. if VBUS_OTG or SWOUT is turn ON condition
  124. 1: LDO4 follows normal ranking procedure
  125. nvm_longkeypress:
  126. 0: Turn OFF on long key press inactive
  127. 1: Turn OFF on long key press active
  128. nvm_autoturnon:
  129. 0: PMIC does not start automatically on VIN rising
  130. 1: PMIC starts automatically on VIN rising
  131. nvm_cc_keepoff :
  132. 0: short circuit does not turn OFF PMIC
  133. 1: short circuit turn OFF PMIC and keep it OFF till CC_flag is reset
  134. *
  135. */
  136. #define OTP_VINOK_HYST ((NVM_SECTOR3_REGISTER_0 & 0xC0) >> 6) // nvm_vinok_hyst
  137. #define OTP_VINOK ((NVM_SECTOR3_REGISTER_0 & 0x30) >> 4) // nvm_vinok
  138. #define OTP_LDO4_FORCED ((NVM_SECTOR3_REGISTER_0 & 0x08) >> 3) // Otp_ldo4_forced
  139. #define OTP_LONGKEYPRESSED ((NVM_SECTOR3_REGISTER_0 & 0x04) >> 2) // nvm_longkeypress
  140. #define OTP_AUTOTURNON ((NVM_SECTOR3_REGISTER_0 & 0x02) >> 1) // nvm_autoturnon
  141. #define OTP_CC_KEEPOFF ((NVM_SECTOR3_REGISTER_0 & 0x01)) // nvm_cc_keepoff
  142. /*
  143. * nvm_rank_buck4:
  144. 00: rank0
  145. 01: rank1
  146. 10: rank2
  147. 11: rank3
  148. nvm_rank_buck3:
  149. 00: rank0
  150. 01: rank1
  151. 10: rank2
  152. 11: rank3
  153. nvm_rank_buck2:
  154. 00: rank0
  155. 01: rank1
  156. 10: rank2
  157. 11: rank3
  158. nvm_rank_buck1:
  159. 00: rank0
  160. 01: rank1
  161. 10: rank2
  162. 11: rank3
  163. *
  164. */
  165. #define OTP_RANK_BUCK4 ((NVM_SECTOR3_REGISTER_1 & 0xC0) >> 6) // nvm_rank_buck4
  166. #define OTP_RANK_BUCK3 ((NVM_SECTOR3_REGISTER_1 & 0x30) >> 4) // nvm_rank_buck3
  167. #define OTP_RANK_BUCK2 ((NVM_SECTOR3_REGISTER_1 & 0x0C) >> 2) // nvm_rank_buck2
  168. #define OTP_RANK_BUCK1 ((NVM_SECTOR3_REGISTER_1 & 0x03)) // nvm_rank_buck1
  169. /*
  170. * nvm_rank_ldo4:
  171. 00: rank0
  172. 01: rank1
  173. 10: rank2
  174. 11: rank3
  175. nvm_rank_ldo3:
  176. 00: rank0
  177. 01: rank1
  178. 10: rank2
  179. 11: rank3
  180. nvm_rank_ldo2:
  181. 00: rank0
  182. 01: rank1
  183. 10: rank2
  184. 11: rank3
  185. nvm_rank_ldo1:
  186. 00: rank0
  187. 01: rank1
  188. 10: rank2
  189. 11: rank3
  190. *
  191. */
  192. #define OTP_RANK_LDO4 ((NVM_SECTOR3_REGISTER_2 & 0xC0) >> 6) // nvm_rank_ldo4
  193. #define OTP_RANK_LDO3 ((NVM_SECTOR3_REGISTER_2 & 0x30) >> 4) // nvm_rank_ldo3
  194. #define OTP_RANK_LDO2 ((NVM_SECTOR3_REGISTER_2 & 0x0C) >> 2) // nvm_rank_ldo2
  195. #define OTP_RANK_LDO1 ((NVM_SECTOR3_REGISTER_2 & 0x03)) // nvm_rank_ldo1
  196. /*
  197. * nvm_clamp_output_buck: Clamp output value to 1.3V max
  198. 0: output_buck4<5:0> not clamped
  199. 1: output_buck4<5:0> to b011100(1.3V)
  200. nvm_bypass_mode_ldo3: LDO3 forced bypass mode
  201. 0: LDO3 not in bypass mode
  202. 1: LDO3 in bypass mode
  203. nvm_rank_vrefddr:
  204. 00: rank0
  205. 01: rank1
  206. 10: rank2
  207. 11: rank3
  208. nvm_rank_ldo6:
  209. 00: rank0
  210. 01: rank1
  211. 10: rank2
  212. 11: rank3
  213. nvm_rank_ldo5:
  214. 00: rank0
  215. 01: rank1
  216. 10: rank2
  217. 11: rank3
  218. *
  219. */
  220. #define OTP_CLAMP_OUTPUT_BUCK4 ((NVM_SECTOR3_REGISTER_3 & 0x80) >> 7) // nvm_clamp_output_buck4
  221. #define OTP_BYPASS_MODE_LDO3 ((NVM_SECTOR3_REGISTER_3 & 0x40) >> 6) // nvm_bypass_mode_ldo3
  222. #define OTP_RANK_VREFDDR ((NVM_SECTOR3_REGISTER_3 & 0x30) >> 4) // nvm_rank_vrefddr
  223. #define OTP_RANK_LDO6 ((NVM_SECTOR3_REGISTER_3 & 0x0C) >> 2) // nvm_rank_ldo6
  224. #define OTP_RANK_LDO5 ((NVM_SECTOR3_REGISTER_3 & 0x03)) // nvm_rank_ldo5
  225. /*
  226. * nvm_output_buck4: Buck4 default output selection
  227. 00: 1.15V
  228. 01: 1.2V
  229. 10: 1.8V
  230. 11: 3.3V
  231. nvm_output_buck3: Buck3 default output selection
  232. 00: 1.2V
  233. 01: 1.8V
  234. 10: 3.0V
  235. 11: 3.3V
  236. nvm_output_buck2: Buck2 default output selection
  237. 00: 1.1V
  238. 01: 1.2V
  239. 10: 1.35V
  240. 11: 1.5V
  241. nvm_output_buck1: Buck1 default output selection
  242. 00: 1.1V
  243. 01: 1.15V
  244. 10: 1.2V
  245. 11: 1.25V
  246. *
  247. */
  248. #define OTP_OUTPUT_BUCK4 ((NVM_SECTOR3_REGISTER_4 & 0xC0) >> 6) // nvm_output_buck4
  249. #define OTP_OUTPUT_BUCK3 ((NVM_SECTOR3_REGISTER_4 & 0x30) >> 4) // nvm_output_buck3
  250. #define OTP_OUTPUT_BUCK2 ((NVM_SECTOR3_REGISTER_4 & 0x0C) >> 2) // nvm_output_buck2
  251. #define OTP_OUTPUT_BUCK1 ((NVM_SECTOR3_REGISTER_4 & 0x03)) // nvm_output_buck1
  252. /*
  253. * [7] OTP_SWOFF_BY_BOOST_OVP:
  254. 0 -> SWOUT will not turnoff bu boost OVP
  255. 1 -> SWOUT will be turnoff by BOOST OVP
  256. [6] reserved
  257. [5:4] nvm_output_ldo3: LDO3 default output selection
  258. 00: 1.8V
  259. 01: 2.5V
  260. 10: 3.3V
  261. 11: output_buck2<4:0>/2 (VTT termination for DDR3 x32, Analog divider implemented in Analog)
  262. [3:2] nvm_output_ldo2: LDO2 default output selection
  263. 00: 1.8V
  264. 01: 2.5V
  265. 10: 2.9V
  266. 11: 3.3V
  267. [1:0] nvm_output_ldo1: LDO1 default output selection
  268. 00: 1.8V
  269. 01: 2.5V
  270. 10: 2.9V
  271. 11: 3.3V
  272. *
  273. */
  274. #define OTP_SWOFF_BY_BOOST_OVP ((NVM_SECTOR3_REGISTER_5 & 0x80) >> 7) // OTP_SWOFF_BY_BOOST_OVP
  275. #define OTP_OUTPUT_LDO3 ((NVM_SECTOR3_REGISTER_5 & 0x30) >> 4) // nvm_output_ldo3
  276. #define OTP_OUTPUT_LDO2 ((NVM_SECTOR3_REGISTER_5 & 0x0C) >> 2) // nvm_output_ldo2
  277. #define OTP_OUTPUT_LDO1 ((NVM_SECTOR3_REGISTER_5 & 0x03)) // nvm_output_ldo1
  278. /*
  279. * [7:4] reserved
  280. *
  281. [3:2] nvm_output_ldo6: LDO6 default output selection
  282. 00: 1.0V
  283. 01: 1.2V
  284. 10: 1.8V
  285. 11: 3.3V
  286. [1:0] nvm_output_ldo5: LDO5 default output selection
  287. 00: 1.8V
  288. 01: 2.5V
  289. 10: 2.9V
  290. 11 : 3.3V
  291. *
  292. */
  293. #define OTP_OUTPUT_LDO6 ((NVM_SECTOR3_REGISTER_6 & 0x0C) >> 2) // nvm_output_ldo6
  294. #define OTP_OUTPUT_LDO5 ((NVM_SECTOR3_REGISTER_6 & 0x03)) // nvm_output_ldo5
  295. #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
  296. #define BIT(_x) (1<<(_x))
  297. #define STM32_PMIC_NUM_IRQ_REGS 4
  298. #define TURN_ON_REG 0x1
  299. #define TURN_OFF_REG 0x2
  300. #define ICC_LDO_TURN_OFF_REG 0x3
  301. #define ICC_BUCK_TURN_OFF_REG 0x4
  302. #define RESET_STATUS_REG 0x5
  303. #define VERSION_STATUS_REG 0x6
  304. #define MAIN_CONTROL_REG 0x10
  305. #define PADS_PULL_REG 0x11
  306. #define BUCK_PULL_DOWN_REG 0x12
  307. #define LDO14_PULL_DOWN_REG 0x13
  308. #define LDO56_PULL_DOWN_REG 0x14
  309. #define VIN_CONTROL_REG 0x15
  310. #define PONKEY_TIMER_REG 0x16
  311. #define MASK_RANK_BUCK_REG 0x17
  312. #define MASK_RESET_BUCK_REG 0x18
  313. #define MASK_RANK_LDO_REG 0x19
  314. #define MASK_RESET_LDO_REG 0x1A
  315. #define WATCHDOG_CONTROL_REG 0x1B
  316. #define WATCHDOG_TIMER_REG 0x1C
  317. #define BUCK_ICC_TURNOFF_REG 0x1D
  318. #define LDO_ICC_TURNOFF_REG 0x1E
  319. #define BUCK_APM_CONTROL_REG 0x1F
  320. #define BUCK1_CONTROL_REG 0x20
  321. #define BUCK2_CONTROL_REG 0x21
  322. #define BUCK3_CONTROL_REG 0x22
  323. #define BUCK4_CONTROL_REG 0x23
  324. #define VREF_DDR_CONTROL_REG 0x24
  325. #define LDO1_CONTROL_REG 0x25
  326. #define LDO2_CONTROL_REG 0x26
  327. #define LDO3_CONTROL_REG 0x27
  328. #define LDO4_CONTROL_REG 0x28
  329. #define LDO5_CONTROL_REG 0x29
  330. #define LDO6_CONTROL_REG 0x2A
  331. #define BUCK1_PWRCTRL_REG 0x30
  332. #define BUCK2_PWRCTRL_REG 0x31
  333. #define BUCK3_PWRCTRL_REG 0x32
  334. #define BUCK4_PWRCTRL_REG 0x33
  335. #define VREF_DDR_PWRCTRL_REG 0x34
  336. #define LDO1_PWRCTRL_REG 0x35
  337. #define LDO2_PWRCTRL_REG 0x36
  338. #define LDO3_PWRCTRL_REG 0x37
  339. #define LDO4_PWRCTRL_REG 0x38
  340. #define LDO5_PWRCTRL_REG 0x39
  341. #define LDO6_PWRCTRL_REG 0x3A
  342. #define FREQUENCY_SPREADING_REG 0x3B
  343. #define USB_CONTROL_REG 0x40
  344. #define ITLATCH1_REG 0x50
  345. #define ITLATCH2_REG 0x51
  346. #define ITLATCH3_REG 0x52
  347. #define ITLATCH4_REG 0x53
  348. #define ITSETLATCH1_REG 0x60
  349. #define ITSETLATCH2_REG 0x61
  350. #define ITSETLATCH3_REG 0x62
  351. #define ITSETLATCH4_REG 0x63
  352. #define ITCLEARLATCH1_REG 0x70
  353. #define ITCLEARLATCH2_REG 0x71
  354. #define ITCLEARLATCH3_REG 0x72
  355. #define ITCLEARLATCH4_REG 0x73
  356. #define ITMASK1_REG 0x80
  357. #define ITMASK2_REG 0x81
  358. #define ITMASK3_REG 0x82
  359. #define ITMASK4_REG 0x83
  360. #define ITSETMASK1_REG 0x90
  361. #define ITSETMASK2_REG 0x91
  362. #define ITSETMASK3_REG 0x92
  363. #define ITSETMASK4_REG 0x93
  364. #define ITCLEARMASK1_REG 0xA0
  365. #define ITCLEARMASK2_REG 0xA1
  366. #define ITCLEARMASK3_REG 0xA2
  367. #define ITCLEARMASK4_REG 0xA3
  368. #define ITSOURCE1_REG 0xB0
  369. #define ITSOURCE2_REG 0xB1
  370. #define ITSOURCE3_REG 0xB2
  371. #define ITSOURCE4_REG 0xB3
  372. #define LDO_VOLTAGE_MASK 0x7C
  373. #define BUCK_VOLTAGE_MASK 0xFC
  374. #define LDO_BUCK_VOLTAGE_SHIFT 2
  375. #define LDO_ENABLE_MASK 0x01
  376. #define BUCK_ENABLE_MASK 0x01
  377. #define BUCK_HPLP_ENABLE_MASK 0x02
  378. #define LDO_HPLP_ENABLE_MASK 0x02
  379. #define LDO_BUCK_HPLP_SHIFT 1
  380. #define LDO_BUCK_RANK_MASK 0x01
  381. #define LDO_BUCK_RESET_MASK 0x01
  382. #define LDO_BUCK_PULL_DOWN_MASK 0x03
  383. /* Main PMIC Control Register
  384. * MAIN_CONTROL_REG
  385. * Address : 0x10
  386. * */
  387. #define ICC_EVENT_ENABLED BIT(4)
  388. #define PWRCTRL_POLARITY_HIGH BIT(3)
  389. #define PWRCTRL_PIN_VALID BIT(2)
  390. #define RESTART_REQUEST_ENABLED BIT(1)
  391. #define SOFTWARE_SWITCH_OFF_ENABLED BIT(0)
  392. /* Main PMIC PADS Control Register
  393. * PADS_PULL_REG
  394. * Address : 0x11
  395. * */
  396. #define WAKEUP_DETECTOR_DISABLED BIT(4)
  397. #define PWRCTRL_PD_ACTIVE BIT(3)
  398. #define PWRCTRL_PU_ACTIVE BIT(2)
  399. #define WAKEUP_PD_ACTIVE BIT(1)
  400. #define PONKEY_PU_ACTIVE BIT(0)
  401. /* Main PMIC VINLOW Control Register
  402. * VIN_CONTROL_REGC DMSC
  403. * Address : 0x15
  404. * */
  405. #define SWIN_DETECTOR_ENABLED BIT(7)
  406. #define SWOUT_DETECTOR_ENABLED BIT(6)
  407. #define VINLOW_HYST_MASK 0x3
  408. #define VINLOW_HYST_SHIFT 4
  409. #define VINLOW_THRESHOLD_MASK 0x7
  410. #define VINLOW_THRESHOLD_SHIFT 1
  411. #define VINLOW_ENABLED 0x01
  412. #define VINLOW_CTRL_REG_MASK 0xFF
  413. /* USB Control Register
  414. * Address : 0x40
  415. * */
  416. #define BOOST_OVP_DISABLED BIT(7)
  417. #define VBUS_OTG_DETECTION_DISABLED BIT(6)
  418. // Discharge not implemented
  419. #define OCP_LIMIT_HIGH BIT(3)
  420. #define SWIN_SWOUT_ENABLED BIT(2)
  421. #define USBSW_OTG_SWITCH_ENABLED BIT(1)
  422. /* IRQ masks */
  423. /* Interrupt Mask for Register 1 (0x50 for latch) */
  424. #define IT_SWOUT_R_MASK BIT(7)
  425. #define IT_SWOUT_F_MASK BIT(6)
  426. #define IT_VBUS_OTG_R_MASK BIT(5)
  427. #define IT_VBUS_OTG_F_MASK BIT(4)
  428. #define IT_WAKEUP_R_MASK BIT(3)
  429. #define IT_WAKEUP_F_MASK BIT(2)
  430. #define IT_PONKEY_R_MASK BIT(1)
  431. #define IT_PONKEY_F_MASK BIT(0)
  432. /* Interrupt Mask for Register 2 (0x51 for latch) */
  433. #define IT_OVP_BOOST_MASK BIT(7)
  434. #define IT_OCP_BOOST_MASK BIT(6)
  435. #define IT_OCP_SWOUT_MASK BIT(5)
  436. #define IT_OCP_OTG_MASK BIT(4)
  437. #define IT_CURLIM_BUCK4_MASK BIT(3)
  438. #define IT_CURLIM_BUCK3_MASK BIT(2)
  439. #define IT_CURLIM_BUCK2_MASK BIT(1)
  440. #define IT_CURLIM_BUCK1_MASK BIT(0)
  441. /* Interrupt Mask for Register 3 (0x52 for latch) */
  442. #define IT_SHORT_SWOUT_MASK BIT(7)
  443. #define IT_SHORT_SWOTG_MASK BIT(6)
  444. #define IT_CURLIM_LDO6_MASK BIT(5)
  445. #define IT_CURLIM_LDO5_MASK BIT(4)
  446. #define IT_CURLIM_LDO4_MASK BIT(3)
  447. #define IT_CURLIM_LDO3_MASK BIT(2)
  448. #define IT_CURLIM_LDO2_MASK BIT(1)
  449. #define IT_CURLIM_LDO1_MASK BIT(0)
  450. /* Interrupt Mask for Register 4 (0x53 for latch) */
  451. #define IT_SWIN_R_MASK BIT(7)
  452. #define IT_SWIN_F_MASK BIT(6)
  453. /* Reserved 1 */
  454. /* Reserved 2 */
  455. #define IT_VINLOW_R_MASK BIT(3)
  456. #define IT_VINLOW_F_MASK BIT(2)
  457. #define IT_TWARN_R_MASK BIT(1)
  458. #define IT_TWARN_F_MASK BIT(0)
  459. #define PMIC_VERSION_ID 0x10
  460. #define STPMU1_I2C_ADDRESS (NVM_SECTOR3_REGISTER_7 & 0x7F)
  461. #ifdef __cplusplus
  462. }
  463. #endif
  464. #endif