Lines Matching +full:3 +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)
175 #define DA9062AA_GPI3_SHIFT 3
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)
187 #define DA9062AA_LDO4_ILIM_SHIFT 3
188 #define DA9062AA_LDO4_ILIM_MASK BIT(3)
194 #define DA9062AA_POR_MASK BIT(1)
196 #define DA9062AA_VDD_FAULT_MASK BIT(2)
197 #define DA9062AA_VDD_START_SHIFT 3
198 #define DA9062AA_VDD_START_MASK BIT(3)
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)
215 #define DA9062AA_E_WDG_WARN_SHIFT 3
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)
222 #define DA9062AA_EVENTS_C_MASK BIT(6)
226 #define DA9062AA_E_TEMP_MASK BIT(1)
227 #define DA9062AA_E_LDO_LIM_SHIFT 3
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)
241 #define DA9062AA_E_GPI3_SHIFT 3
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)
253 #define DA9062AA_M_WDG_WARN_SHIFT 3
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)
261 #define DA9062AA_M_LDO_LIM_SHIFT 3
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)
275 #define DA9062AA_M_GPI3_SHIFT 3
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)
287 #define DA9062AA_STANDBY_SHIFT 3
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)
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)
301 #define DA9062AA_NRES_MODE_SHIFT 3
302 #define DA9062AA_NRES_MODE_MASK BIT(3)
304 #define DA9062AA_NONKEY_LOCK_MASK BIT(4)
308 #define DA9062AA_BUCK_SLOWSTART_MASK BIT(7)
313 #define DA9062AA_AUTO_BOOT_SHIFT 3
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)
354 #define DA9062AA_OUT32K_PAUSE_MASK BIT(6)
356 #define DA9062AA_PMCONT_DIS_MASK BIT(7)
362 #define DA9062AA_GPIO0_TYPE_MASK BIT(2)
363 #define DA9062AA_GPIO0_WEN_SHIFT 3
364 #define DA9062AA_GPIO0_WEN_MASK BIT(3)
368 #define DA9062AA_GPIO1_TYPE_MASK BIT(6)
370 #define DA9062AA_GPIO1_WEN_MASK BIT(7)
376 #define DA9062AA_GPIO2_TYPE_MASK BIT(2)
377 #define DA9062AA_GPIO2_WEN_SHIFT 3
378 #define DA9062AA_GPIO2_WEN_MASK BIT(3)
382 #define DA9062AA_GPIO3_TYPE_MASK BIT(6)
384 #define DA9062AA_GPIO3_WEN_MASK BIT(7)
390 #define DA9062AA_GPIO4_TYPE_MASK BIT(2)
391 #define DA9062AA_GPIO4_WEN_SHIFT 3
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)
401 #define DA9062AA_GPIO3_WKUP_MODE_SHIFT 3
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)
413 #define DA9062AA_GPIO3_MODE_SHIFT 3
414 #define DA9062AA_GPIO3_MODE_MASK BIT(3)
416 #define DA9062AA_GPIO4_MODE_MASK BIT(4)
421 #define DA9062AA_GPIO1_OUT_SHIFT 3
422 #define DA9062AA_GPIO1_OUT_MASK (0x07 << 3)
429 #define DA9062AA_GPIO4_OUT_SHIFT 3
430 #define DA9062AA_GPIO4_OUT_MASK (0x03 << 3)
437 #define DA9062AA_BUCK2_CONF_SHIFT 3
438 #define DA9062AA_BUCK2_CONF_MASK BIT(3)
447 #define DA9062AA_BUCK1_CONF_SHIFT 3
448 #define DA9062AA_BUCK1_CONF_MASK BIT(3)
457 #define DA9062AA_BUCK4_CONF_SHIFT 3
458 #define DA9062AA_BUCK4_CONF_MASK BIT(3)
467 #define DA9062AA_BUCK3_CONF_SHIFT 3
468 #define DA9062AA_BUCK3_CONF_MASK BIT(3)
477 #define DA9062AA_LDO1_PD_DIS_SHIFT 3
478 #define DA9062AA_LDO1_PD_DIS_MASK BIT(3)
482 #define DA9062AA_LDO1_CONF_MASK BIT(7)
489 #define DA9062AA_LDO2_PD_DIS_SHIFT 3
490 #define DA9062AA_LDO2_PD_DIS_MASK BIT(3)
494 #define DA9062AA_LDO2_CONF_MASK BIT(7)
501 #define DA9062AA_LDO3_PD_DIS_SHIFT 3
502 #define DA9062AA_LDO3_PD_DIS_MASK BIT(3)
506 #define DA9062AA_LDO3_CONF_MASK BIT(7)
513 #define DA9062AA_LDO4_PD_DIS_SHIFT 3
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)
527 #define DA9062AA_VBUCK3_SEL_SHIFT 3
528 #define DA9062AA_VBUCK3_SEL_MASK BIT(3)
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)
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)
708 #define DA9062AA_WAIT_MODE_MASK BIT(4)
710 #define DA9062AA_TIME_OUT_MASK BIT(5)
717 #define DA9062AA_CRYSTAL_SHIFT 3
718 #define DA9062AA_CRYSTAL_MASK BIT(3)
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)
750 #define DA9062AA_BUCK2_PD_DIS_MASK BIT(5)
756 #define DA9062AA_BUCK1_PD_DIS_MASK BIT(5)
761 #define DA9062AA_BUCK4_VTTR_EN_SHIFT 3
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)
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)
889 #define DA9062AA_PM_O_TYPE_MASK BIT(2)
890 #define DA9062AA_IRQ_TYPE_SHIFT 3
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)
897 #define DA9062AA_PM_IF_HSM_MASK BIT(6)
907 #define DA9062AA_BUCK_ACTV_DISCHRG_MASK BIT(2)
908 #define DA9062AA_BUCK1_CLK_INV_SHIFT 3
909 #define DA9062AA_BUCK1_CLK_INV_MASK BIT(3)
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)
933 #define DA9062AA_BUCK3_AUTO_MASK BIT(4)
939 #define DA9062AA_LDO2_AUTO_MASK BIT(1)
941 #define DA9062AA_LDO3_AUTO_MASK BIT(2)
942 #define DA9062AA_LDO4_AUTO_SHIFT 3
943 #define DA9062AA_LDO4_AUTO_MASK BIT(3)
946 #define DA9062AA_BUCK1_2_MERGE_SHIFT 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)
958 #define DA9062AA_WATCHDOG_SD_SHIFT 3
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)
965 #define DA9062AA_INT_SD_MODE_MASK BIT(6)
967 #define DA9062AA_LDO_SD_MASK BIT(7)
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)
988 #define DA9062AA_GPIO3_PUPD_SHIFT 3
989 #define DA9062AA_GPIO3_PUPD_MASK BIT(3)
991 #define DA9062AA_GPIO4_PUPD_MASK BIT(4)
995 #define DA9062AA_NSHUTDOWN_PU_MASK BIT(1)
996 #define DA9062AA_WDG_MODE_SHIFT 3
997 #define DA9062AA_WDG_MODE_MASK BIT(3)