rohm-bd71828.h 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /* Copyright (C) 2019 ROHM Semiconductors */
  3. #ifndef __LINUX_MFD_BD71828_H__
  4. #define __LINUX_MFD_BD71828_H__
  5. #include <linux/mfd/rohm-generic.h>
  6. #include <linux/mfd/rohm-shared.h>
  7. /* Regulator IDs */
  8. enum {
  9. BD71828_BUCK1,
  10. BD71828_BUCK2,
  11. BD71828_BUCK3,
  12. BD71828_BUCK4,
  13. BD71828_BUCK5,
  14. BD71828_BUCK6,
  15. BD71828_BUCK7,
  16. BD71828_LDO1,
  17. BD71828_LDO2,
  18. BD71828_LDO3,
  19. BD71828_LDO4,
  20. BD71828_LDO5,
  21. BD71828_LDO6,
  22. BD71828_LDO_SNVS,
  23. BD71828_REGULATOR_AMOUNT,
  24. };
  25. #define BD71828_BUCK1267_VOLTS 0x100
  26. #define BD71828_BUCK3_VOLTS 0x20
  27. #define BD71828_BUCK4_VOLTS 0x40
  28. #define BD71828_BUCK5_VOLTS 0x20
  29. #define BD71828_LDO_VOLTS 0x40
  30. /* LDO6 is fixed 1.8V voltage */
  31. #define BD71828_LDO_6_VOLTAGE 1800000
  32. /* Registers and masks*/
  33. /* MODE control */
  34. #define BD71828_REG_PS_CTRL_1 0x04
  35. #define BD71828_REG_PS_CTRL_2 0x05
  36. #define BD71828_REG_PS_CTRL_3 0x06
  37. //#define BD71828_REG_SWRESET 0x06
  38. #define BD71828_MASK_RUN_LVL_CTRL 0x30
  39. /* Regulator control masks */
  40. #define BD71828_MASK_RAMP_DELAY 0x6
  41. #define BD71828_MASK_RUN_EN 0x08
  42. #define BD71828_MASK_SUSP_EN 0x04
  43. #define BD71828_MASK_IDLE_EN 0x02
  44. #define BD71828_MASK_LPSR_EN 0x01
  45. #define BD71828_MASK_RUN0_EN 0x01
  46. #define BD71828_MASK_RUN1_EN 0x02
  47. #define BD71828_MASK_RUN2_EN 0x04
  48. #define BD71828_MASK_RUN3_EN 0x08
  49. #define BD71828_MASK_DVS_BUCK1_CTRL 0x10
  50. #define BD71828_DVS_BUCK1_CTRL_I2C 0
  51. #define BD71828_DVS_BUCK1_USE_RUNLVL 0x10
  52. #define BD71828_MASK_DVS_BUCK2_CTRL 0x20
  53. #define BD71828_DVS_BUCK2_CTRL_I2C 0
  54. #define BD71828_DVS_BUCK2_USE_RUNLVL 0x20
  55. #define BD71828_MASK_DVS_BUCK6_CTRL 0x40
  56. #define BD71828_DVS_BUCK6_CTRL_I2C 0
  57. #define BD71828_DVS_BUCK6_USE_RUNLVL 0x40
  58. #define BD71828_MASK_DVS_BUCK7_CTRL 0x80
  59. #define BD71828_DVS_BUCK7_CTRL_I2C 0
  60. #define BD71828_DVS_BUCK7_USE_RUNLVL 0x80
  61. #define BD71828_MASK_BUCK1267_VOLT 0xff
  62. #define BD71828_MASK_BUCK3_VOLT 0x1f
  63. #define BD71828_MASK_BUCK4_VOLT 0x3f
  64. #define BD71828_MASK_BUCK5_VOLT 0x1f
  65. #define BD71828_MASK_LDO_VOLT 0x3f
  66. /* Regulator control regs */
  67. #define BD71828_REG_BUCK1_EN 0x08
  68. #define BD71828_REG_BUCK1_CTRL 0x09
  69. #define BD71828_REG_BUCK1_MODE 0x0a
  70. #define BD71828_REG_BUCK1_IDLE_VOLT 0x0b
  71. #define BD71828_REG_BUCK1_SUSP_VOLT 0x0c
  72. #define BD71828_REG_BUCK1_VOLT 0x0d
  73. #define BD71828_REG_BUCK2_EN 0x12
  74. #define BD71828_REG_BUCK2_CTRL 0x13
  75. #define BD71828_REG_BUCK2_MODE 0x14
  76. #define BD71828_REG_BUCK2_IDLE_VOLT 0x15
  77. #define BD71828_REG_BUCK2_SUSP_VOLT 0x16
  78. #define BD71828_REG_BUCK2_VOLT 0x17
  79. #define BD71828_REG_BUCK3_EN 0x1c
  80. #define BD71828_REG_BUCK3_MODE 0x1d
  81. #define BD71828_REG_BUCK3_VOLT 0x1e
  82. #define BD71828_REG_BUCK4_EN 0x1f
  83. #define BD71828_REG_BUCK4_MODE 0x20
  84. #define BD71828_REG_BUCK4_VOLT 0x21
  85. #define BD71828_REG_BUCK5_EN 0x22
  86. #define BD71828_REG_BUCK5_MODE 0x23
  87. #define BD71828_REG_BUCK5_VOLT 0x24
  88. #define BD71828_REG_BUCK6_EN 0x25
  89. #define BD71828_REG_BUCK6_CTRL 0x26
  90. #define BD71828_REG_BUCK6_MODE 0x27
  91. #define BD71828_REG_BUCK6_IDLE_VOLT 0x28
  92. #define BD71828_REG_BUCK6_SUSP_VOLT 0x29
  93. #define BD71828_REG_BUCK6_VOLT 0x2a
  94. #define BD71828_REG_BUCK7_EN 0x2f
  95. #define BD71828_REG_BUCK7_CTRL 0x30
  96. #define BD71828_REG_BUCK7_MODE 0x31
  97. #define BD71828_REG_BUCK7_IDLE_VOLT 0x32
  98. #define BD71828_REG_BUCK7_SUSP_VOLT 0x33
  99. #define BD71828_REG_BUCK7_VOLT 0x34
  100. #define BD71828_REG_LDO1_EN 0x39
  101. #define BD71828_REG_LDO1_VOLT 0x3a
  102. #define BD71828_REG_LDO2_EN 0x3b
  103. #define BD71828_REG_LDO2_VOLT 0x3c
  104. #define BD71828_REG_LDO3_EN 0x3d
  105. #define BD71828_REG_LDO3_VOLT 0x3e
  106. #define BD71828_REG_LDO4_EN 0x3f
  107. #define BD71828_REG_LDO4_VOLT 0x40
  108. #define BD71828_REG_LDO5_EN 0x41
  109. #define BD71828_REG_LDO5_VOLT 0x43
  110. #define BD71828_REG_LDO5_VOLT_OPT 0x42
  111. #define BD71828_REG_LDO6_EN 0x44
  112. //#define BD71828_REG_LDO6_VOLT 0x4
  113. #define BD71828_REG_LDO7_EN 0x45
  114. #define BD71828_REG_LDO7_VOLT 0x46
  115. /* GPIO */
  116. #define BD71828_GPIO_DRIVE_MASK 0x2
  117. #define BD71828_GPIO_OPEN_DRAIN 0x0
  118. #define BD71828_GPIO_PUSH_PULL 0x2
  119. #define BD71828_GPIO_OUT_HI 0x1
  120. #define BD71828_GPIO_OUT_LO 0x0
  121. #define BD71828_GPIO_OUT_MASK 0x1
  122. #define BD71828_REG_GPIO_CTRL1 0x47
  123. #define BD71828_REG_GPIO_CTRL2 0x48
  124. #define BD71828_REG_GPIO_CTRL3 0x49
  125. #define BD71828_REG_IO_STAT 0xed
  126. /* clk */
  127. #define BD71828_REG_OUT32K 0x4b
  128. /* RTC */
  129. #define BD71828_REG_RTC_SEC 0x4c
  130. #define BD71828_REG_RTC_MINUTE 0x4d
  131. #define BD71828_REG_RTC_HOUR 0x4e
  132. #define BD71828_REG_RTC_WEEK 0x4f
  133. #define BD71828_REG_RTC_DAY 0x50
  134. #define BD71828_REG_RTC_MONTH 0x51
  135. #define BD71828_REG_RTC_YEAR 0x52
  136. #define BD71828_REG_RTC_ALM0_SEC 0x53
  137. #define BD71828_REG_RTC_ALM_START BD71828_REG_RTC_ALM0_SEC
  138. #define BD71828_REG_RTC_ALM0_MINUTE 0x54
  139. #define BD71828_REG_RTC_ALM0_HOUR 0x55
  140. #define BD71828_REG_RTC_ALM0_WEEK 0x56
  141. #define BD71828_REG_RTC_ALM0_DAY 0x57
  142. #define BD71828_REG_RTC_ALM0_MONTH 0x58
  143. #define BD71828_REG_RTC_ALM0_YEAR 0x59
  144. #define BD71828_REG_RTC_ALM0_MASK 0x61
  145. #define BD71828_REG_RTC_ALM1_SEC 0x5a
  146. #define BD71828_REG_RTC_ALM1_MINUTE 0x5b
  147. #define BD71828_REG_RTC_ALM1_HOUR 0x5c
  148. #define BD71828_REG_RTC_ALM1_WEEK 0x5d
  149. #define BD71828_REG_RTC_ALM1_DAY 0x5e
  150. #define BD71828_REG_RTC_ALM1_MONTH 0x5f
  151. #define BD71828_REG_RTC_ALM1_YEAR 0x60
  152. #define BD71828_REG_RTC_ALM1_MASK 0x62
  153. #define BD71828_REG_RTC_ALM2 0x63
  154. #define BD71828_REG_RTC_START BD71828_REG_RTC_SEC
  155. /* Charger/Battey */
  156. #define BD71828_REG_CHG_STATE 0x65
  157. #define BD71828_REG_CHG_FULL 0xd2
  158. /* LEDs */
  159. #define BD71828_REG_LED_CTRL 0x4A
  160. #define BD71828_MASK_LED_AMBER 0x80
  161. #define BD71828_MASK_LED_GREEN 0x40
  162. #define BD71828_LED_ON 0xff
  163. #define BD71828_LED_OFF 0x0
  164. /* IRQ registers */
  165. #define BD71828_REG_INT_MASK_BUCK 0xd3
  166. #define BD71828_REG_INT_MASK_DCIN1 0xd4
  167. #define BD71828_REG_INT_MASK_DCIN2 0xd5
  168. #define BD71828_REG_INT_MASK_VSYS 0xd6
  169. #define BD71828_REG_INT_MASK_CHG 0xd7
  170. #define BD71828_REG_INT_MASK_BAT 0xd8
  171. #define BD71828_REG_INT_MASK_BAT_MON1 0xd9
  172. #define BD71828_REG_INT_MASK_BAT_MON2 0xda
  173. #define BD71828_REG_INT_MASK_BAT_MON3 0xdb
  174. #define BD71828_REG_INT_MASK_BAT_MON4 0xdc
  175. #define BD71828_REG_INT_MASK_TEMP 0xdd
  176. #define BD71828_REG_INT_MASK_RTC 0xde
  177. #define BD71828_REG_INT_MAIN 0xdf
  178. #define BD71828_REG_INT_BUCK 0xe0
  179. #define BD71828_REG_INT_DCIN1 0xe1
  180. #define BD71828_REG_INT_DCIN2 0xe2
  181. #define BD71828_REG_INT_VSYS 0xe3
  182. #define BD71828_REG_INT_CHG 0xe4
  183. #define BD71828_REG_INT_BAT 0xe5
  184. #define BD71828_REG_INT_BAT_MON1 0xe6
  185. #define BD71828_REG_INT_BAT_MON2 0xe7
  186. #define BD71828_REG_INT_BAT_MON3 0xe8
  187. #define BD71828_REG_INT_BAT_MON4 0xe9
  188. #define BD71828_REG_INT_TEMP 0xea
  189. #define BD71828_REG_INT_RTC 0xeb
  190. #define BD71828_REG_INT_UPDATE 0xec
  191. #define BD71828_MAX_REGISTER BD71828_REG_IO_STAT
  192. /* Masks for main IRQ register bits */
  193. enum {
  194. BD71828_INT_BUCK,
  195. #define BD71828_INT_BUCK_MASK BIT(BD71828_INT_BUCK)
  196. BD71828_INT_DCIN,
  197. #define BD71828_INT_DCIN_MASK BIT(BD71828_INT_DCIN)
  198. BD71828_INT_VSYS,
  199. #define BD71828_INT_VSYS_MASK BIT(BD71828_INT_VSYS)
  200. BD71828_INT_CHG,
  201. #define BD71828_INT_CHG_MASK BIT(BD71828_INT_CHG)
  202. BD71828_INT_BAT,
  203. #define BD71828_INT_BAT_MASK BIT(BD71828_INT_BAT)
  204. BD71828_INT_BAT_MON,
  205. #define BD71828_INT_BAT_MON_MASK BIT(BD71828_INT_BAT_MON)
  206. BD71828_INT_TEMP,
  207. #define BD71828_INT_TEMP_MASK BIT(BD71828_INT_TEMP)
  208. BD71828_INT_RTC,
  209. #define BD71828_INT_RTC_MASK BIT(BD71828_INT_RTC)
  210. };
  211. /* Interrupts */
  212. enum {
  213. /* BUCK reg interrupts */
  214. BD71828_INT_BUCK1_OCP,
  215. BD71828_INT_BUCK2_OCP,
  216. BD71828_INT_BUCK3_OCP,
  217. BD71828_INT_BUCK4_OCP,
  218. BD71828_INT_BUCK5_OCP,
  219. BD71828_INT_BUCK6_OCP,
  220. BD71828_INT_BUCK7_OCP,
  221. BD71828_INT_PGFAULT,
  222. /* DCIN1 interrupts */
  223. BD71828_INT_DCIN_DET,
  224. BD71828_INT_DCIN_RMV,
  225. BD71828_INT_CLPS_OUT,
  226. BD71828_INT_CLPS_IN,
  227. /* DCIN2 interrupts */
  228. BD71828_INT_DCIN_MON_RES,
  229. BD71828_INT_DCIN_MON_DET,
  230. BD71828_INT_LONGPUSH,
  231. BD71828_INT_MIDPUSH,
  232. BD71828_INT_SHORTPUSH,
  233. BD71828_INT_PUSH,
  234. BD71828_INT_WDOG,
  235. BD71828_INT_SWRESET,
  236. /* Vsys */
  237. BD71828_INT_VSYS_UV_RES,
  238. BD71828_INT_VSYS_UV_DET,
  239. BD71828_INT_VSYS_LOW_RES,
  240. BD71828_INT_VSYS_LOW_DET,
  241. BD71828_INT_VSYS_HALL_IN,
  242. BD71828_INT_VSYS_HALL_TOGGLE,
  243. BD71828_INT_VSYS_MON_RES,
  244. BD71828_INT_VSYS_MON_DET,
  245. /* Charger */
  246. BD71828_INT_CHG_DCIN_ILIM,
  247. BD71828_INT_CHG_TOPOFF_TO_DONE,
  248. BD71828_INT_CHG_WDG_TEMP,
  249. BD71828_INT_CHG_WDG_TIME,
  250. BD71828_INT_CHG_RECHARGE_RES,
  251. BD71828_INT_CHG_RECHARGE_DET,
  252. BD71828_INT_CHG_RANGED_TEMP_TRANSITION,
  253. BD71828_INT_CHG_STATE_TRANSITION,
  254. /* Battery */
  255. BD71828_INT_BAT_TEMP_NORMAL,
  256. BD71828_INT_BAT_TEMP_ERANGE,
  257. BD71828_INT_BAT_TEMP_WARN,
  258. BD71828_INT_BAT_REMOVED,
  259. BD71828_INT_BAT_DETECTED,
  260. BD71828_INT_THERM_REMOVED,
  261. BD71828_INT_THERM_DETECTED,
  262. /* Battery Mon 1 */
  263. BD71828_INT_BAT_DEAD,
  264. BD71828_INT_BAT_SHORTC_RES,
  265. BD71828_INT_BAT_SHORTC_DET,
  266. BD71828_INT_BAT_LOW_VOLT_RES,
  267. BD71828_INT_BAT_LOW_VOLT_DET,
  268. BD71828_INT_BAT_OVER_VOLT_RES,
  269. BD71828_INT_BAT_OVER_VOLT_DET,
  270. /* Battery Mon 2 */
  271. BD71828_INT_BAT_MON_RES,
  272. BD71828_INT_BAT_MON_DET,
  273. /* Battery Mon 3 (Coulomb counter) */
  274. BD71828_INT_BAT_CC_MON1,
  275. BD71828_INT_BAT_CC_MON2,
  276. BD71828_INT_BAT_CC_MON3,
  277. /* Battery Mon 4 */
  278. BD71828_INT_BAT_OVER_CURR_1_RES,
  279. BD71828_INT_BAT_OVER_CURR_1_DET,
  280. BD71828_INT_BAT_OVER_CURR_2_RES,
  281. BD71828_INT_BAT_OVER_CURR_2_DET,
  282. BD71828_INT_BAT_OVER_CURR_3_RES,
  283. BD71828_INT_BAT_OVER_CURR_3_DET,
  284. /* Temperature */
  285. BD71828_INT_TEMP_BAT_LOW_RES,
  286. BD71828_INT_TEMP_BAT_LOW_DET,
  287. BD71828_INT_TEMP_BAT_HI_RES,
  288. BD71828_INT_TEMP_BAT_HI_DET,
  289. BD71828_INT_TEMP_CHIP_OVER_125_RES,
  290. BD71828_INT_TEMP_CHIP_OVER_125_DET,
  291. BD71828_INT_TEMP_CHIP_OVER_VF_DET,
  292. BD71828_INT_TEMP_CHIP_OVER_VF_RES,
  293. /* RTC Alarm */
  294. BD71828_INT_RTC0,
  295. BD71828_INT_RTC1,
  296. BD71828_INT_RTC2,
  297. };
  298. #define BD71828_INT_BUCK1_OCP_MASK 0x1
  299. #define BD71828_INT_BUCK2_OCP_MASK 0x2
  300. #define BD71828_INT_BUCK3_OCP_MASK 0x4
  301. #define BD71828_INT_BUCK4_OCP_MASK 0x8
  302. #define BD71828_INT_BUCK5_OCP_MASK 0x10
  303. #define BD71828_INT_BUCK6_OCP_MASK 0x20
  304. #define BD71828_INT_BUCK7_OCP_MASK 0x40
  305. #define BD71828_INT_PGFAULT_MASK 0x80
  306. #define BD71828_INT_DCIN_DET_MASK 0x1
  307. #define BD71828_INT_DCIN_RMV_MASK 0x2
  308. #define BD71828_INT_CLPS_OUT_MASK 0x4
  309. #define BD71828_INT_CLPS_IN_MASK 0x8
  310. /* DCIN2 interrupts */
  311. #define BD71828_INT_DCIN_MON_RES_MASK 0x1
  312. #define BD71828_INT_DCIN_MON_DET_MASK 0x2
  313. #define BD71828_INT_LONGPUSH_MASK 0x4
  314. #define BD71828_INT_MIDPUSH_MASK 0x8
  315. #define BD71828_INT_SHORTPUSH_MASK 0x10
  316. #define BD71828_INT_PUSH_MASK 0x20
  317. #define BD71828_INT_WDOG_MASK 0x40
  318. #define BD71828_INT_SWRESET_MASK 0x80
  319. /* Vsys */
  320. #define BD71828_INT_VSYS_UV_RES_MASK 0x1
  321. #define BD71828_INT_VSYS_UV_DET_MASK 0x2
  322. #define BD71828_INT_VSYS_LOW_RES_MASK 0x4
  323. #define BD71828_INT_VSYS_LOW_DET_MASK 0x8
  324. #define BD71828_INT_VSYS_HALL_IN_MASK 0x10
  325. #define BD71828_INT_VSYS_HALL_TOGGLE_MASK 0x20
  326. #define BD71828_INT_VSYS_MON_RES_MASK 0x40
  327. #define BD71828_INT_VSYS_MON_DET_MASK 0x80
  328. /* Charger */
  329. #define BD71828_INT_CHG_DCIN_ILIM_MASK 0x1
  330. #define BD71828_INT_CHG_TOPOFF_TO_DONE_MASK 0x2
  331. #define BD71828_INT_CHG_WDG_TEMP_MASK 0x4
  332. #define BD71828_INT_CHG_WDG_TIME_MASK 0x8
  333. #define BD71828_INT_CHG_RECHARGE_RES_MASK 0x10
  334. #define BD71828_INT_CHG_RECHARGE_DET_MASK 0x20
  335. #define BD71828_INT_CHG_RANGED_TEMP_TRANSITION_MASK 0x40
  336. #define BD71828_INT_CHG_STATE_TRANSITION_MASK 0x80
  337. /* Battery */
  338. #define BD71828_INT_BAT_TEMP_NORMAL_MASK 0x1
  339. #define BD71828_INT_BAT_TEMP_ERANGE_MASK 0x2
  340. #define BD71828_INT_BAT_TEMP_WARN_MASK 0x4
  341. #define BD71828_INT_BAT_REMOVED_MASK 0x10
  342. #define BD71828_INT_BAT_DETECTED_MASK 0x20
  343. #define BD71828_INT_THERM_REMOVED_MASK 0x40
  344. #define BD71828_INT_THERM_DETECTED_MASK 0x80
  345. /* Battery Mon 1 */
  346. #define BD71828_INT_BAT_DEAD_MASK 0x2
  347. #define BD71828_INT_BAT_SHORTC_RES_MASK 0x4
  348. #define BD71828_INT_BAT_SHORTC_DET_MASK 0x8
  349. #define BD71828_INT_BAT_LOW_VOLT_RES_MASK 0x10
  350. #define BD71828_INT_BAT_LOW_VOLT_DET_MASK 0x20
  351. #define BD71828_INT_BAT_OVER_VOLT_RES_MASK 0x40
  352. #define BD71828_INT_BAT_OVER_VOLT_DET_MASK 0x80
  353. /* Battery Mon 2 */
  354. #define BD71828_INT_BAT_MON_RES_MASK 0x1
  355. #define BD71828_INT_BAT_MON_DET_MASK 0x2
  356. /* Battery Mon 3 (Coulomb counter) */
  357. #define BD71828_INT_BAT_CC_MON1_MASK 0x1
  358. #define BD71828_INT_BAT_CC_MON2_MASK 0x2
  359. #define BD71828_INT_BAT_CC_MON3_MASK 0x4
  360. /* Battery Mon 4 */
  361. #define BD71828_INT_BAT_OVER_CURR_1_RES_MASK 0x1
  362. #define BD71828_INT_BAT_OVER_CURR_1_DET_MASK 0x2
  363. #define BD71828_INT_BAT_OVER_CURR_2_RES_MASK 0x4
  364. #define BD71828_INT_BAT_OVER_CURR_2_DET_MASK 0x8
  365. #define BD71828_INT_BAT_OVER_CURR_3_RES_MASK 0x10
  366. #define BD71828_INT_BAT_OVER_CURR_3_DET_MASK 0x20
  367. /* Temperature */
  368. #define BD71828_INT_TEMP_BAT_LOW_RES_MASK 0x1
  369. #define BD71828_INT_TEMP_BAT_LOW_DET_MASK 0x2
  370. #define BD71828_INT_TEMP_BAT_HI_RES_MASK 0x4
  371. #define BD71828_INT_TEMP_BAT_HI_DET_MASK 0x8
  372. #define BD71828_INT_TEMP_CHIP_OVER_125_RES_MASK 0x10
  373. #define BD71828_INT_TEMP_CHIP_OVER_125_DET_MASK 0x20
  374. #define BD71828_INT_TEMP_CHIP_OVER_VF_RES_MASK 0x40
  375. #define BD71828_INT_TEMP_CHIP_OVER_VF_DET_MASK 0x80
  376. /* RTC Alarm */
  377. #define BD71828_INT_RTC0_MASK 0x1
  378. #define BD71828_INT_RTC1_MASK 0x2
  379. #define BD71828_INT_RTC2_MASK 0x4
  380. #define BD71828_OUT_TYPE_MASK 0x2
  381. #define BD71828_OUT_TYPE_OPEN_DRAIN 0x0
  382. #define BD71828_OUT_TYPE_CMOS 0x2
  383. #endif /* __LINUX_MFD_BD71828_H__ */