Lines Matching +full:6 +full:- +full:bit

1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * Copyright (C) 2015-2017 Dialog Semiconductor
151 * Bit fields
157 #define DA9062AA_WRITE_MODE_SHIFT 6
158 #define DA9062AA_WRITE_MODE_MASK BIT(6)
160 #define DA9062AA_REVERT_MASK BIT(7)
166 #define DA9062AA_DVC_BUSY_MASK BIT(2)
172 #define DA9062AA_GPI1_MASK BIT(1)
174 #define DA9062AA_GPI2_MASK BIT(2)
176 #define DA9062AA_GPI3_MASK BIT(3)
178 #define DA9062AA_GPI4_MASK BIT(4)
184 #define DA9062AA_LDO2_ILIM_MASK BIT(1)
186 #define DA9062AA_LDO3_ILIM_MASK BIT(2)
188 #define DA9062AA_LDO4_ILIM_MASK BIT(3)
194 #define DA9062AA_POR_MASK BIT(1)
196 #define DA9062AA_VDD_FAULT_MASK BIT(2)
198 #define DA9062AA_VDD_START_MASK BIT(3)
200 #define DA9062AA_TEMP_CRIT_MASK BIT(4)
202 #define DA9062AA_KEY_RESET_MASK BIT(5)
203 #define DA9062AA_NSHUTDOWN_SHIFT 6
204 #define DA9062AA_NSHUTDOWN_MASK BIT(6)
206 #define DA9062AA_WAIT_SHUT_MASK BIT(7)
212 #define DA9062AA_E_ALARM_MASK BIT(1)
214 #define DA9062AA_E_TICK_MASK BIT(2)
216 #define DA9062AA_E_WDG_WARN_MASK BIT(3)
218 #define DA9062AA_E_SEQ_RDY_MASK BIT(4)
220 #define DA9062AA_EVENTS_B_MASK BIT(5)
221 #define DA9062AA_EVENTS_C_SHIFT 6
222 #define DA9062AA_EVENTS_C_MASK BIT(6)
226 #define DA9062AA_E_TEMP_MASK BIT(1)
228 #define DA9062AA_E_LDO_LIM_MASK BIT(3)
230 #define DA9062AA_E_DVC_RDY_MASK BIT(5)
232 #define DA9062AA_E_VDD_WARN_MASK BIT(7)
238 #define DA9062AA_E_GPI1_MASK BIT(1)
240 #define DA9062AA_E_GPI2_MASK BIT(2)
242 #define DA9062AA_E_GPI3_MASK BIT(3)
244 #define DA9062AA_E_GPI4_MASK BIT(4)
250 #define DA9062AA_M_ALARM_MASK BIT(1)
252 #define DA9062AA_M_TICK_MASK BIT(2)
254 #define DA9062AA_M_WDG_WARN_MASK BIT(3)
256 #define DA9062AA_M_SEQ_RDY_MASK BIT(4)
260 #define DA9062AA_M_TEMP_MASK BIT(1)
262 #define DA9062AA_M_LDO_LIM_MASK BIT(3)
264 #define DA9062AA_M_DVC_RDY_MASK BIT(5)
266 #define DA9062AA_M_VDD_WARN_MASK BIT(7)
272 #define DA9062AA_M_GPI1_MASK BIT(1)
274 #define DA9062AA_M_GPI2_MASK BIT(2)
276 #define DA9062AA_M_GPI3_MASK BIT(3)
278 #define DA9062AA_M_GPI4_MASK BIT(4)
284 #define DA9062AA_POWER_EN_MASK BIT(1)
286 #define DA9062AA_POWER1_EN_MASK BIT(2)
288 #define DA9062AA_STANDBY_MASK BIT(3)
290 #define DA9062AA_M_SYSTEM_EN_MASK BIT(4)
292 #define DA9062AA_M_POWER_EN_MASK BIT(5)
293 #define DA9062AA_M_POWER1_EN_SHIFT 6
294 #define DA9062AA_M_POWER1_EN_MASK BIT(6)
298 #define DA9062AA_WATCHDOG_PD_MASK BIT(1)
300 #define DA9062AA_FREEZE_EN_MASK BIT(2)
302 #define DA9062AA_NRES_MODE_MASK BIT(3)
304 #define DA9062AA_NONKEY_LOCK_MASK BIT(4)
308 #define DA9062AA_BUCK_SLOWSTART_MASK BIT(7)
314 #define DA9062AA_AUTO_BOOT_MASK BIT(3)
316 #define DA9062AA_OTPREAD_EN_MASK BIT(4)
320 #define DA9062AA_DEF_SUPPLY_MASK BIT(7)
330 #define DA9062AA_RTC_MODE_SD_MASK BIT(1)
332 #define DA9062AA_RTC_EN_MASK BIT(2)
334 #define DA9062AA_V_LOCK_MASK BIT(7)
340 #define DA9062AA_SHUTDOWN_MASK BIT(1)
342 #define DA9062AA_WAKE_UP_MASK BIT(2)
348 #define DA9062AA_PMIF_DIS_MASK BIT(2)
350 #define DA9062AA_CLDR_PAUSE_MASK BIT(4)
352 #define DA9062AA_BBAT_DIS_MASK BIT(5)
353 #define DA9062AA_OUT32K_PAUSE_SHIFT 6
354 #define DA9062AA_OUT32K_PAUSE_MASK BIT(6)
356 #define DA9062AA_PMCONT_DIS_MASK BIT(7)
362 #define DA9062AA_GPIO0_TYPE_MASK BIT(2)
364 #define DA9062AA_GPIO0_WEN_MASK BIT(3)
367 #define DA9062AA_GPIO1_TYPE_SHIFT 6
368 #define DA9062AA_GPIO1_TYPE_MASK BIT(6)
370 #define DA9062AA_GPIO1_WEN_MASK BIT(7)
376 #define DA9062AA_GPIO2_TYPE_MASK BIT(2)
378 #define DA9062AA_GPIO2_WEN_MASK BIT(3)
381 #define DA9062AA_GPIO3_TYPE_SHIFT 6
382 #define DA9062AA_GPIO3_TYPE_MASK BIT(6)
384 #define DA9062AA_GPIO3_WEN_MASK BIT(7)
390 #define DA9062AA_GPIO4_TYPE_MASK BIT(2)
392 #define DA9062AA_GPIO4_WEN_MASK BIT(3)
398 #define DA9062AA_GPIO1_WKUP_MODE_MASK BIT(1)
400 #define DA9062AA_GPIO2_WKUP_MODE_MASK BIT(2)
402 #define DA9062AA_GPIO3_WKUP_MODE_MASK BIT(3)
404 #define DA9062AA_GPIO4_WKUP_MODE_MASK BIT(4)
410 #define DA9062AA_GPIO1_MODE_MASK BIT(1)
412 #define DA9062AA_GPIO2_MODE_MASK BIT(2)
414 #define DA9062AA_GPIO3_MODE_MASK BIT(3)
416 #define DA9062AA_GPIO4_MODE_MASK BIT(4)
423 #define DA9062AA_GPIO2_OUT_SHIFT 6
424 #define DA9062AA_GPIO2_OUT_MASK (0x03 << 6)
438 #define DA9062AA_BUCK2_CONF_MASK BIT(3)
448 #define DA9062AA_BUCK1_CONF_MASK BIT(3)
458 #define DA9062AA_BUCK4_CONF_MASK BIT(3)
468 #define DA9062AA_BUCK3_CONF_MASK BIT(3)
478 #define DA9062AA_LDO1_PD_DIS_MASK BIT(3)
482 #define DA9062AA_LDO1_CONF_MASK BIT(7)
490 #define DA9062AA_LDO2_PD_DIS_MASK BIT(3)
494 #define DA9062AA_LDO2_CONF_MASK BIT(7)
502 #define DA9062AA_LDO3_PD_DIS_MASK BIT(3)
506 #define DA9062AA_LDO3_CONF_MASK BIT(7)
514 #define DA9062AA_LDO4_PD_DIS_MASK BIT(3)
518 #define DA9062AA_LDO4_CONF_MASK BIT(7)
524 #define DA9062AA_VBUCK2_SEL_MASK BIT(1)
526 #define DA9062AA_VBUCK4_SEL_MASK BIT(2)
528 #define DA9062AA_VBUCK3_SEL_MASK BIT(3)
530 #define DA9062AA_VLDO1_SEL_MASK BIT(4)
532 #define DA9062AA_VLDO2_SEL_MASK BIT(5)
533 #define DA9062AA_VLDO3_SEL_SHIFT 6
534 #define DA9062AA_VLDO3_SEL_MASK BIT(6)
536 #define DA9062AA_VLDO4_SEL_MASK BIT(7)
542 #define DA9062AA_RTC_READ_MASK BIT(7)
563 #define DA9062AA_MONITOR_SHIFT 6
564 #define DA9062AA_MONITOR_MASK BIT(6)
569 #define DA9062AA_ALARM_STATUS_SHIFT 6
570 #define DA9062AA_ALARM_STATUS_MASK (0x03 << 6)
588 #define DA9062AA_TICK_TYPE_MASK BIT(4)
590 #define DA9062AA_TICK_WAKE_MASK BIT(5)
595 #define DA9062AA_ALARM_ON_SHIFT 6
596 #define DA9062AA_ALARM_ON_MASK BIT(6)
598 #define DA9062AA_TICK_ON_MASK BIT(7)
708 #define DA9062AA_WAIT_MODE_MASK BIT(4)
710 #define DA9062AA_TIME_OUT_MASK BIT(5)
711 #define DA9062AA_WAIT_DIR_SHIFT 6
712 #define DA9062AA_WAIT_DIR_MASK (0x03 << 6)
718 #define DA9062AA_CRYSTAL_MASK BIT(3)
720 #define DA9062AA_DELAY_MODE_MASK BIT(4)
722 #define DA9062AA_OUT_CLOCK_MASK BIT(5)
723 #define DA9062AA_RTC_CLOCK_SHIFT 6
724 #define DA9062AA_RTC_CLOCK_MASK BIT(6)
726 #define DA9062AA_EN_32KOUT_MASK BIT(7)
731 #define DA9062AA_RESET_EVENT_SHIFT 6
732 #define DA9062AA_RESET_EVENT_MASK (0x03 << 6)
750 #define DA9062AA_BUCK2_PD_DIS_MASK BIT(5)
751 #define DA9062AA_BUCK2_MODE_SHIFT 6
752 #define DA9062AA_BUCK2_MODE_MASK (0x03 << 6)
756 #define DA9062AA_BUCK1_PD_DIS_MASK BIT(5)
757 #define DA9062AA_BUCK1_MODE_SHIFT 6
758 #define DA9062AA_BUCK1_MODE_MASK (0x03 << 6)
762 #define DA9062AA_BUCK4_VTTR_EN_MASK BIT(3)
764 #define DA9062AA_BUCK4_VTT_EN_MASK BIT(4)
766 #define DA9062AA_BUCK4_PD_DIS_MASK BIT(5)
767 #define DA9062AA_BUCK4_MODE_SHIFT 6
768 #define DA9062AA_BUCK4_MODE_MASK (0x03 << 6)
772 #define DA9062AA_BUCK3_PD_DIS_MASK BIT(5)
773 #define DA9062AA_BUCK3_MODE_SHIFT 6
774 #define DA9062AA_BUCK3_MODE_MASK (0x03 << 6)
780 #define DA9062AA_BUCK2_SL_A_MASK BIT(7)
786 #define DA9062AA_BUCK1_SL_A_MASK BIT(7)
792 #define DA9062AA_BUCK4_SL_A_MASK BIT(7)
798 #define DA9062AA_BUCK3_SL_A_MASK BIT(7)
800 /* DA9062AA_VLDO[1-4]_A common */
807 #define DA9062AA_LDO1_SL_A_MASK BIT(7)
813 #define DA9062AA_LDO2_SL_A_MASK BIT(7)
819 #define DA9062AA_LDO3_SL_A_MASK BIT(7)
825 #define DA9062AA_LDO4_SL_A_MASK BIT(7)
831 #define DA9062AA_BUCK2_SL_B_MASK BIT(7)
837 #define DA9062AA_BUCK1_SL_B_MASK BIT(7)
843 #define DA9062AA_BUCK4_SL_B_MASK BIT(7)
849 #define DA9062AA_BUCK3_SL_B_MASK BIT(7)
855 #define DA9062AA_LDO1_SL_B_MASK BIT(7)
861 #define DA9062AA_LDO2_SL_B_MASK BIT(7)
867 #define DA9062AA_LDO3_SL_B_MASK BIT(7)
873 #define DA9062AA_LDO4_SL_B_MASK BIT(7)
889 #define DA9062AA_PM_O_TYPE_MASK BIT(2)
891 #define DA9062AA_IRQ_TYPE_MASK BIT(3)
893 #define DA9062AA_PM_IF_V_MASK BIT(4)
895 #define DA9062AA_PM_IF_FMP_MASK BIT(5)
896 #define DA9062AA_PM_IF_HSM_SHIFT 6
897 #define DA9062AA_PM_IF_HSM_MASK BIT(6)
907 #define DA9062AA_BUCK_ACTV_DISCHRG_MASK BIT(2)
909 #define DA9062AA_BUCK1_CLK_INV_MASK BIT(3)
911 #define DA9062AA_BUCK4_CLK_INV_MASK BIT(4)
912 #define DA9062AA_BUCK3_CLK_INV_SHIFT 6
913 #define DA9062AA_BUCK3_CLK_INV_MASK BIT(6)
919 #define DA9062AA_NIRQ_MODE_MASK BIT(1)
921 #define DA9062AA_SYSTEM_EN_RD_MASK BIT(2)
923 #define DA9062AA_FORCE_RESET_MASK BIT(5)
929 #define DA9062AA_BUCK2_AUTO_MASK BIT(1)
931 #define DA9062AA_BUCK4_AUTO_MASK BIT(2)
933 #define DA9062AA_BUCK3_AUTO_MASK BIT(4)
939 #define DA9062AA_LDO2_AUTO_MASK BIT(1)
941 #define DA9062AA_LDO3_AUTO_MASK BIT(2)
943 #define DA9062AA_LDO4_AUTO_MASK BIT(3)
947 #define DA9062AA_BUCK1_2_MERGE_MASK BIT(3)
949 #define DA9062AA_BUCK2_OD_MASK BIT(5)
950 #define DA9062AA_BUCK1_OD_SHIFT 6
951 #define DA9062AA_BUCK1_OD_MASK BIT(6)
957 #define DA9062AA_nONKEY_SD_MASK BIT(2)
959 #define DA9062AA_WATCHDOG_SD_MASK BIT(3)
961 #define DA9062AA_KEY_SD_MODE_MASK BIT(4)
963 #define DA9062AA_HOST_SD_MODE_MASK BIT(5)
964 #define DA9062AA_INT_SD_MODE_SHIFT 6
965 #define DA9062AA_INT_SD_MODE_MASK BIT(6)
967 #define DA9062AA_LDO_SD_MASK BIT(7)
976 #define DA9062AA_TWOWIRE_TO_SHIFT 6
977 #define DA9062AA_TWOWIRE_TO_MASK BIT(6)
979 #define DA9062AA_IF_RESET_MASK BIT(7)
985 #define DA9062AA_GPIO1_PUPD_MASK BIT(1)
987 #define DA9062AA_GPIO2_PUPD_MASK BIT(2)
989 #define DA9062AA_GPIO3_PUPD_MASK BIT(3)
991 #define DA9062AA_GPIO4_PUPD_MASK BIT(4)
995 #define DA9062AA_NSHUTDOWN_PU_MASK BIT(1)
997 #define DA9062AA_WDG_MODE_MASK BIT(3)