Lines Matching +full:4 +full:- +full:bit
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * Copyright (C) 2015-2017 Dialog Semiconductor
151 * Bit fields
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)
177 #define DA9062AA_GPI4_SHIFT 4
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)
199 #define DA9062AA_TEMP_CRIT_SHIFT 4
200 #define DA9062AA_TEMP_CRIT_MASK BIT(4)
202 #define DA9062AA_KEY_RESET_MASK BIT(5)
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)
217 #define DA9062AA_E_SEQ_RDY_SHIFT 4
218 #define DA9062AA_E_SEQ_RDY_MASK BIT(4)
220 #define DA9062AA_EVENTS_B_MASK BIT(5)
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)
243 #define DA9062AA_E_GPI4_SHIFT 4
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)
255 #define DA9062AA_M_SEQ_RDY_SHIFT 4
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)
277 #define DA9062AA_M_GPI4_SHIFT 4
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)
289 #define DA9062AA_M_SYSTEM_EN_SHIFT 4
290 #define DA9062AA_M_SYSTEM_EN_MASK BIT(4)
292 #define DA9062AA_M_POWER_EN_MASK BIT(5)
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)
303 #define DA9062AA_NONKEY_LOCK_SHIFT 4
304 #define DA9062AA_NONKEY_LOCK_MASK BIT(4)
308 #define DA9062AA_BUCK_SLOWSTART_MASK BIT(7)
314 #define DA9062AA_AUTO_BOOT_MASK BIT(3)
315 #define DA9062AA_OTPREAD_EN_SHIFT 4
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)
349 #define DA9062AA_CLDR_PAUSE_SHIFT 4
350 #define DA9062AA_CLDR_PAUSE_MASK BIT(4)
352 #define DA9062AA_BBAT_DIS_MASK BIT(5)
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)
365 #define DA9062AA_GPIO1_PIN_SHIFT 4
366 #define DA9062AA_GPIO1_PIN_MASK (0x03 << 4)
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)
379 #define DA9062AA_GPIO3_PIN_SHIFT 4
380 #define DA9062AA_GPIO3_PIN_MASK (0x03 << 4)
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)
403 #define DA9062AA_GPIO4_WKUP_MODE_SHIFT 4
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)
415 #define DA9062AA_GPIO4_MODE_SHIFT 4
416 #define DA9062AA_GPIO4_MODE_MASK BIT(4)
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)
529 #define DA9062AA_VLDO1_SEL_SHIFT 4
530 #define DA9062AA_VLDO1_SEL_MASK BIT(4)
532 #define DA9062AA_VLDO2_SEL_MASK BIT(5)
534 #define DA9062AA_VLDO3_SEL_MASK BIT(6)
536 #define DA9062AA_VLDO4_SEL_MASK BIT(7)
542 #define DA9062AA_RTC_READ_MASK BIT(7)
564 #define DA9062AA_MONITOR_MASK BIT(6)
587 #define DA9062AA_TICK_TYPE_SHIFT 4
588 #define DA9062AA_TICK_TYPE_MASK BIT(4)
590 #define DA9062AA_TICK_WAKE_MASK BIT(5)
596 #define DA9062AA_ALARM_ON_MASK BIT(6)
598 #define DA9062AA_TICK_ON_MASK BIT(7)
619 #define DA9062AA_NXT_SEQ_START_SHIFT 4
620 #define DA9062AA_NXT_SEQ_START_MASK (0x0f << 4)
625 #define DA9062AA_SEQ_DUMMY_SHIFT 4
626 #define DA9062AA_SEQ_DUMMY_MASK (0x0f << 4)
631 #define DA9062AA_LDO2_STEP_SHIFT 4
632 #define DA9062AA_LDO2_STEP_MASK (0x0f << 4)
637 #define DA9062AA_LDO4_STEP_SHIFT 4
638 #define DA9062AA_LDO4_STEP_MASK (0x0f << 4)
641 #define DA9062AA_PD_DIS_STEP_SHIFT 4
642 #define DA9062AA_PD_DIS_STEP_MASK (0x0f << 4)
647 #define DA9062AA_BUCK2_STEP_SHIFT 4
648 #define DA9062AA_BUCK2_STEP_MASK (0x0f << 4)
653 #define DA9062AA_BUCK3_STEP_SHIFT 4
654 #define DA9062AA_BUCK3_STEP_MASK (0x0f << 4)
659 #define DA9062AA_GP_FALL1_STEP_SHIFT 4
660 #define DA9062AA_GP_FALL1_STEP_MASK (0x0f << 4)
665 #define DA9062AA_GP_FALL2_STEP_SHIFT 4
666 #define DA9062AA_GP_FALL2_STEP_MASK (0x0f << 4)
671 #define DA9062AA_GP_FALL3_STEP_SHIFT 4
672 #define DA9062AA_GP_FALL3_STEP_MASK (0x0f << 4)
677 #define DA9062AA_GP_FALL4_STEP_SHIFT 4
678 #define DA9062AA_GP_FALL4_STEP_MASK (0x0f << 4)
683 #define DA9062AA_GP_FALL5_STEP_SHIFT 4
684 #define DA9062AA_GP_FALL5_STEP_MASK (0x0f << 4)
689 #define DA9062AA_EN32K_STEP_SHIFT 4
690 #define DA9062AA_EN32K_STEP_MASK (0x0f << 4)
695 #define DA9062AA_POWER_END_SHIFT 4
696 #define DA9062AA_POWER_END_MASK (0x0f << 4)
701 #define DA9062AA_PART_DOWN_SHIFT 4
702 #define DA9062AA_PART_DOWN_MASK (0x0f << 4)
707 #define DA9062AA_WAIT_MODE_SHIFT 4
708 #define DA9062AA_WAIT_MODE_MASK BIT(4)
710 #define DA9062AA_TIME_OUT_MASK BIT(5)
718 #define DA9062AA_CRYSTAL_MASK BIT(3)
719 #define DA9062AA_DELAY_MODE_SHIFT 4
720 #define DA9062AA_DELAY_MODE_MASK BIT(4)
722 #define DA9062AA_OUT_CLOCK_MASK BIT(5)
724 #define DA9062AA_RTC_CLOCK_MASK BIT(6)
726 #define DA9062AA_EN_32KOUT_MASK BIT(7)
745 #define DA9062AA_BUCK2_ILIM_SHIFT 4
746 #define DA9062AA_BUCK2_ILIM_MASK (0x0f << 4)
750 #define DA9062AA_BUCK2_PD_DIS_MASK BIT(5)
756 #define DA9062AA_BUCK1_PD_DIS_MASK BIT(5)
762 #define DA9062AA_BUCK4_VTTR_EN_MASK BIT(3)
763 #define DA9062AA_BUCK4_VTT_EN_SHIFT 4
764 #define DA9062AA_BUCK4_VTT_EN_MASK BIT(4)
766 #define DA9062AA_BUCK4_PD_DIS_MASK BIT(5)
772 #define DA9062AA_BUCK3_PD_DIS_MASK BIT(5)
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)
878 #define DA9062AA_BCHG_ISET_SHIFT 4
879 #define DA9062AA_BCHG_ISET_MASK (0x0f << 4)
882 #define DA9062AA_IF_BASE_ADDR_SHIFT 4
883 #define DA9062AA_IF_BASE_ADDR_MASK (0x0f << 4)
889 #define DA9062AA_PM_O_TYPE_MASK BIT(2)
891 #define DA9062AA_IRQ_TYPE_MASK BIT(3)
892 #define DA9062AA_PM_IF_V_SHIFT 4
893 #define DA9062AA_PM_IF_V_MASK BIT(4)
895 #define DA9062AA_PM_IF_FMP_MASK BIT(5)
897 #define DA9062AA_PM_IF_HSM_MASK BIT(6)
902 #define DA9062AA_VDD_HYST_ADJ_SHIFT 4
903 #define DA9062AA_VDD_HYST_ADJ_MASK (0x07 << 4)
907 #define DA9062AA_BUCK_ACTV_DISCHRG_MASK BIT(2)
909 #define DA9062AA_BUCK1_CLK_INV_MASK BIT(3)
910 #define DA9062AA_BUCK4_CLK_INV_SHIFT 4
911 #define DA9062AA_BUCK4_CLK_INV_MASK BIT(4)
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)
932 #define DA9062AA_BUCK3_AUTO_SHIFT 4
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)
951 #define DA9062AA_BUCK1_OD_MASK BIT(6)
957 #define DA9062AA_nONKEY_SD_MASK BIT(2)
959 #define DA9062AA_WATCHDOG_SD_MASK BIT(3)
960 #define DA9062AA_KEY_SD_MODE_SHIFT 4
961 #define DA9062AA_KEY_SD_MODE_MASK BIT(4)
963 #define DA9062AA_HOST_SD_MODE_MASK BIT(5)
965 #define DA9062AA_INT_SD_MODE_MASK BIT(6)
967 #define DA9062AA_LDO_SD_MASK BIT(7)
974 #define DA9062AA_RESET_DURATION_SHIFT 4
975 #define DA9062AA_RESET_DURATION_MASK (0x03 << 4)
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)
990 #define DA9062AA_GPIO4_PUPD_SHIFT 4
991 #define DA9062AA_GPIO4_PUPD_MASK BIT(4)
995 #define DA9062AA_NSHUTDOWN_PU_MASK BIT(1)
997 #define DA9062AA_WDG_MODE_MASK BIT(3)
998 #define DA9062AA_OSC_FRQ_SHIFT 4
999 #define DA9062AA_OSC_FRQ_MASK (0x0f << 4)
1092 #define DA9062AA_MRC_SHIFT 4
1093 #define DA9062AA_MRC_MASK (0x0f << 4)