Lines Matching +full:7 +full:- +full:bit
1 /* SPDX-License-Identifier: GPL-2.0 */
5 * Copyright (C) 2023 BayLibre Incorporated - https://www.baylibre.com/
248 #define TPS6594_BIT_BUCK_EN BIT(0)
249 #define TPS6594_BIT_BUCK_FPWM BIT(1)
250 #define TPS6594_BIT_BUCK_FPWM_MP BIT(2)
251 #define TPS6594_BIT_BUCK_VSEL BIT(3)
252 #define TPS6594_BIT_BUCK_VMON_EN BIT(4)
253 #define TPS6594_BIT_BUCK_PLDN BIT(5)
254 #define TPS6594_BIT_BUCK_RV_SEL BIT(7)
271 #define TPS6594_MASK_BUCKS_VSET GENMASK(7, 0)
274 #define TPS65224_MASK_BUCK1_VSET GENMASK(7, 0)
278 #define TPS6594_BIT_LDO_EN BIT(0)
279 #define TPS6594_BIT_LDO_SLOW_RAMP BIT(1)
280 #define TPS6594_BIT_LDO_VMON_EN BIT(4)
282 #define TPS6594_BIT_LDO_RV_SEL BIT(7)
283 #define TPS65224_BIT_LDO_DISCHARGE_EN BIT(5)
286 #define TPS6594_BIT_LDORTC_DIS BIT(0)
291 #define TPS6594_BIT_LDO_BYPASS BIT(7)
301 #define TPS6594_BIT_VMON_EN BIT(0)
302 #define TPS6594_BIT_VMON1_EN BIT(1)
303 #define TPS6594_BIT_VMON1_RV_SEL BIT(2)
304 #define TPS6594_BIT_VMON2_EN BIT(3)
305 #define TPS6594_BIT_VMON2_RV_SEL BIT(4)
306 #define TPS6594_BIT_VMON_DEGLITCH_SEL BIT(5)
307 #define TPS65224_BIT_VMON_DEGLITCH_SEL GENMASK(7, 5)
313 #define TPS6594_BIT_VCCA_PG_SET BIT(6)
318 #define TPS6594_BIT_VMONX_RANGE BIT(6)
324 #define TPS6594_BIT_GPIO_DIR BIT(0)
325 #define TPS6594_BIT_GPIO_OD BIT(1)
326 #define TPS6594_BIT_GPIO_PU_SEL BIT(2)
327 #define TPS6594_BIT_GPIO_PU_PD_EN BIT(3)
328 #define TPS6594_BIT_GPIO_DEGLITCH_EN BIT(4)
329 #define TPS6594_MASK_GPIO_SEL GENMASK(7, 5)
331 #define TPS65224_MASK_GPIO_SEL_GPIO6 GENMASK(7, 5)
334 #define TPS6594_BIT_NRSTOUT_OD BIT(0)
335 #define TPS6594_BIT_ENABLE_PU_SEL BIT(2)
336 #define TPS6594_BIT_ENABLE_PU_PD_EN BIT(3)
337 #define TPS6594_BIT_ENABLE_DEGLITCH_EN BIT(4)
338 #define TPS6594_BIT_ENABLE_POL BIT(5)
339 #define TPS6594_MASK_NPWRON_SEL GENMASK(7, 6)
342 #define TPS65224_BIT_NINT_ENDRV_PU_SEL BIT(0)
343 #define TPS65224_BIT_NINT_ENDRV_SEL BIT(1)
344 #define TPS65224_BIT_EN_PB_DEGL BIT(5)
345 #define TPS65224_MASK_EN_PB_VSENSE_CONFIG GENMASK(7, 6)
348 #define TPS6594_BIT_GPIOX_OUT(gpio_inst) BIT((gpio_inst) % 8)
351 #define TPS6594_BIT_GPIOX_IN(gpio_inst) BIT((gpio_inst) % 8)
352 #define TPS6594_BIT_NPWRON_IN BIT(3)
355 #define TPS65224_BIT_GPIOX_OUT(gpio_inst) BIT((gpio_inst))
358 #define TPS65224_BIT_GPIOX_IN(gpio_inst) BIT((gpio_inst))
364 #define TPS6594_MASK_BUCK4_GRP_SEL GENMASK(7, 6)
370 #define TPS6594_MASK_LDO3_GRP_SEL GENMASK(7, 6)
376 #define TPS6594_MASK_VMON2_GRP_SEL GENMASK(7, 6)
382 #define TPS6594_MASK_SEVERE_ERR_TRIG GENMASK(7, 6)
388 #define TPS6594_BIT_GPIOX_FSM_MASK(gpio_inst) BIT(((gpio_inst) << 1) % 8)
389 #define TPS6594_BIT_GPIOX_FSM_MASK_POL(gpio_inst) BIT(((gpio_inst) << 1) % 8 + 1)
391 #define TPS65224_BIT_GPIOX_FSM_MASK(gpio_inst) BIT(((gpio_inst) << 1) % 6)
392 #define TPS65224_BIT_GPIOX_FSM_MASK_POL(gpio_inst) BIT(((gpio_inst) << 1) % 6 + 1)
395 #define TPS6594_BIT_BUCKX_OV_MASK(buck_inst) BIT(((buck_inst) << 2) % 8)
396 #define TPS6594_BIT_BUCKX_UV_MASK(buck_inst) BIT(((buck_inst) << 2) % 8 + 1)
397 #define TPS6594_BIT_BUCKX_ILIM_MASK(buck_inst) BIT(((buck_inst) << 2) % 8 + 3)
400 #define TPS6594_BIT_LDOX_OV_MASK(ldo_inst) BIT(((ldo_inst) << 2) % 8)
401 #define TPS6594_BIT_LDOX_UV_MASK(ldo_inst) BIT(((ldo_inst) << 2) % 8 + 1)
402 #define TPS6594_BIT_LDOX_ILIM_MASK(ldo_inst) BIT(((ldo_inst) << 2) % 8 + 3)
405 #define TPS6594_BIT_VCCA_OV_MASK BIT(0)
406 #define TPS6594_BIT_VCCA_UV_MASK BIT(1)
407 #define TPS6594_BIT_VMON1_OV_MASK BIT(2)
408 #define TPS6594_BIT_VMON1_UV_MASK BIT(3)
409 #define TPS6594_BIT_VMON2_OV_MASK BIT(5)
410 #define TPS6594_BIT_VMON2_UV_MASK BIT(6)
413 #define TPS65224_BIT_BUCK1_UVOV_MASK BIT(0)
414 #define TPS65224_BIT_BUCK2_UVOV_MASK BIT(1)
415 #define TPS65224_BIT_BUCK3_UVOV_MASK BIT(2)
416 #define TPS65224_BIT_BUCK4_UVOV_MASK BIT(4)
419 #define TPS65224_BIT_LDO1_UVOV_MASK BIT(0)
420 #define TPS65224_BIT_LDO2_UVOV_MASK BIT(1)
421 #define TPS65224_BIT_LDO3_UVOV_MASK BIT(2)
422 #define TPS65224_BIT_VCCA_UVOV_MASK BIT(4)
423 #define TPS65224_BIT_VMON1_UVOV_MASK BIT(5)
424 #define TPS65224_BIT_VMON2_UVOV_MASK BIT(6)
427 #define TPS6594_BIT_GPIOX_FALL_MASK(gpio_inst) BIT((gpio_inst) < 8 ? \
429 #define TPS6594_BIT_GPIOX_RISE_MASK(gpio_inst) BIT((gpio_inst) < 8 ? \
432 #define TPS65224_BIT_GPIOX_FALL_MASK(gpio_inst) BIT((gpio_inst))
433 #define TPS65224_BIT_GPIOX_RISE_MASK(gpio_inst) BIT((gpio_inst))
436 #define TPS6594_BIT_NPWRON_START_MASK BIT(0)
437 #define TPS6594_BIT_ENABLE_MASK BIT(1)
438 #define TPS6594_BIT_FSD_MASK BIT(4)
439 #define TPS6594_BIT_SOFT_REBOOT_MASK BIT(5)
440 #define TPS65224_BIT_VSENSE_MASK BIT(0)
441 #define TPS65224_BIT_PB_SHORT_MASK BIT(2)
444 #define TPS6594_BIT_BIST_PASS_MASK BIT(0)
445 #define TPS6594_BIT_EXT_CLK_MASK BIT(1)
446 #define TPS65224_BIT_REG_UNLOCK_MASK BIT(2)
447 #define TPS6594_BIT_TWARN_MASK BIT(3)
448 #define TPS65224_BIT_PB_LONG_MASK BIT(4)
449 #define TPS65224_BIT_PB_FALL_MASK BIT(5)
450 #define TPS65224_BIT_PB_RISE_MASK BIT(6)
451 #define TPS65224_BIT_ADC_CONV_READY_MASK BIT(7)
454 #define TPS6594_BIT_BIST_FAIL_MASK BIT(1)
455 #define TPS6594_BIT_REG_CRC_ERR_MASK BIT(2)
456 #define TPS6594_BIT_SPMI_ERR_MASK BIT(4)
457 #define TPS6594_BIT_NPWRON_LONG_MASK BIT(5)
458 #define TPS6594_BIT_NINT_READBACK_MASK BIT(6)
459 #define TPS6594_BIT_NRSTOUT_READBACK_MASK BIT(7)
462 #define TPS6594_BIT_IMM_SHUTDOWN_MASK BIT(0)
463 #define TPS6594_BIT_ORD_SHUTDOWN_MASK BIT(1)
464 #define TPS6594_BIT_MCU_PWR_ERR_MASK BIT(2)
465 #define TPS6594_BIT_SOC_PWR_ERR_MASK BIT(3)
466 #define TPS65224_BIT_COMM_ERR_MASK BIT(4)
467 #define TPS65224_BIT_I2C2_ERR_MASK BIT(5)
470 #define TPS6594_BIT_COMM_FRM_ERR_MASK BIT(0)
471 #define TPS6594_BIT_COMM_CRC_ERR_MASK BIT(1)
472 #define TPS6594_BIT_COMM_ADR_ERR_MASK BIT(3)
473 #define TPS6594_BIT_I2C2_CRC_ERR_MASK BIT(5)
474 #define TPS6594_BIT_I2C2_ADR_ERR_MASK BIT(7)
477 #define TPS6594_BIT_EN_DRV_READBACK_MASK BIT(0)
478 #define TPS6594_BIT_NRSTOUT_SOC_READBACK_MASK BIT(3)
481 #define TPS6594_BIT_ESM_SOC_PIN_MASK BIT(0)
482 #define TPS6594_BIT_ESM_SOC_FAIL_MASK BIT(1)
483 #define TPS6594_BIT_ESM_SOC_RST_MASK BIT(2)
484 #define TPS6594_BIT_ESM_MCU_PIN_MASK BIT(3)
485 #define TPS6594_BIT_ESM_MCU_FAIL_MASK BIT(4)
486 #define TPS6594_BIT_ESM_MCU_RST_MASK BIT(5)
489 #define TPS6594_BIT_BUCK_INT BIT(0)
490 #define TPS6594_BIT_LDO_VMON_INT BIT(1)
491 #define TPS6594_BIT_GPIO_INT BIT(2)
492 #define TPS6594_BIT_STARTUP_INT BIT(3)
493 #define TPS6594_BIT_MISC_INT BIT(4)
494 #define TPS6594_BIT_MODERATE_ERR_INT BIT(5)
495 #define TPS6594_BIT_SEVERE_ERR_INT BIT(6)
496 #define TPS6594_BIT_FSM_ERR_INT BIT(7)
499 #define TPS6594_BIT_BUCK1_2_INT BIT(0)
500 #define TPS6594_BIT_BUCK3_4_INT BIT(1)
501 #define TPS6594_BIT_BUCK5_INT BIT(2)
504 #define TPS65224_BIT_BUCK1_UVOV_INT BIT(0)
505 #define TPS65224_BIT_BUCK2_UVOV_INT BIT(1)
506 #define TPS65224_BIT_BUCK3_UVOV_INT BIT(2)
507 #define TPS65224_BIT_BUCK4_UVOV_INT BIT(3)
510 #define TPS6594_BIT_BUCKX_OV_INT(buck_inst) BIT(((buck_inst) << 2) % 8)
511 #define TPS6594_BIT_BUCKX_UV_INT(buck_inst) BIT(((buck_inst) << 2) % 8 + 1)
512 #define TPS6594_BIT_BUCKX_SC_INT(buck_inst) BIT(((buck_inst) << 2) % 8 + 2)
513 #define TPS6594_BIT_BUCKX_ILIM_INT(buck_inst) BIT(((buck_inst) << 2) % 8 + 3)
516 #define TPS6594_BIT_LDO1_2_INT BIT(0)
517 #define TPS6594_BIT_LDO3_4_INT BIT(1)
518 #define TPS6594_BIT_VCCA_INT BIT(4)
521 #define TPS65224_BIT_LDO1_UVOV_INT BIT(0)
522 #define TPS65224_BIT_LDO2_UVOV_INT BIT(1)
523 #define TPS65224_BIT_LDO3_UVOV_INT BIT(2)
524 #define TPS65224_BIT_VCCA_UVOV_INT BIT(4)
525 #define TPS65224_BIT_VMON1_UVOV_INT BIT(5)
526 #define TPS65224_BIT_VMON2_UVOV_INT BIT(6)
529 #define TPS6594_BIT_LDOX_OV_INT(ldo_inst) BIT(((ldo_inst) << 2) % 8)
530 #define TPS6594_BIT_LDOX_UV_INT(ldo_inst) BIT(((ldo_inst) << 2) % 8 + 1)
531 #define TPS6594_BIT_LDOX_SC_INT(ldo_inst) BIT(((ldo_inst) << 2) % 8 + 2)
532 #define TPS6594_BIT_LDOX_ILIM_INT(ldo_inst) BIT(((ldo_inst) << 2) % 8 + 3)
535 #define TPS6594_BIT_VCCA_OV_INT BIT(0)
536 #define TPS6594_BIT_VCCA_UV_INT BIT(1)
537 #define TPS6594_BIT_VMON1_OV_INT BIT(2)
538 #define TPS6594_BIT_VMON1_UV_INT BIT(3)
539 #define TPS6594_BIT_VMON1_RV_INT BIT(4)
540 #define TPS6594_BIT_VMON2_OV_INT BIT(5)
541 #define TPS6594_BIT_VMON2_UV_INT BIT(6)
542 #define TPS6594_BIT_VMON2_RV_INT BIT(7)
545 #define TPS6594_BIT_GPIO9_INT BIT(0)
546 #define TPS6594_BIT_GPIO10_INT BIT(1)
547 #define TPS6594_BIT_GPIO11_INT BIT(2)
548 #define TPS6594_BIT_GPIO1_8_INT BIT(3)
551 #define TPS6594_BIT_GPIOX_INT(gpio_inst) BIT(gpio_inst)
554 #define TPS65224_BIT_GPIO1_INT BIT(0)
555 #define TPS65224_BIT_GPIO2_INT BIT(1)
556 #define TPS65224_BIT_GPIO3_INT BIT(2)
557 #define TPS65224_BIT_GPIO4_INT BIT(3)
558 #define TPS65224_BIT_GPIO5_INT BIT(4)
559 #define TPS65224_BIT_GPIO6_INT BIT(5)
562 #define TPS6594_BIT_NPWRON_START_INT BIT(0)
563 #define TPS65224_BIT_VSENSE_INT BIT(0)
564 #define TPS6594_BIT_ENABLE_INT BIT(1)
565 #define TPS6594_BIT_RTC_INT BIT(2)
566 #define TPS65224_BIT_PB_SHORT_INT BIT(2)
567 #define TPS6594_BIT_FSD_INT BIT(4)
568 #define TPS6594_BIT_SOFT_REBOOT_INT BIT(5)
571 #define TPS6594_BIT_BIST_PASS_INT BIT(0)
572 #define TPS6594_BIT_EXT_CLK_INT BIT(1)
573 #define TPS65224_BIT_REG_UNLOCK_INT BIT(2)
574 #define TPS6594_BIT_TWARN_INT BIT(3)
575 #define TPS65224_BIT_PB_LONG_INT BIT(4)
576 #define TPS65224_BIT_PB_FALL_INT BIT(5)
577 #define TPS65224_BIT_PB_RISE_INT BIT(6)
578 #define TPS65224_BIT_ADC_CONV_READY_INT BIT(7)
581 #define TPS6594_BIT_TSD_ORD_INT BIT(0)
582 #define TPS6594_BIT_BIST_FAIL_INT BIT(1)
583 #define TPS6594_BIT_REG_CRC_ERR_INT BIT(2)
584 #define TPS6594_BIT_RECOV_CNT_INT BIT(3)
585 #define TPS6594_BIT_SPMI_ERR_INT BIT(4)
586 #define TPS6594_BIT_NPWRON_LONG_INT BIT(5)
587 #define TPS6594_BIT_NINT_READBACK_INT BIT(6)
588 #define TPS6594_BIT_NRSTOUT_READBACK_INT BIT(7)
591 #define TPS6594_BIT_TSD_IMM_INT BIT(0)
592 #define TPS6594_BIT_VCCA_OVP_INT BIT(1)
593 #define TPS6594_BIT_PFSM_ERR_INT BIT(2)
594 #define TPS65224_BIT_BG_XMON_INT BIT(3)
597 #define TPS6594_BIT_IMM_SHUTDOWN_INT BIT(0)
598 #define TPS6594_BIT_ORD_SHUTDOWN_INT BIT(1)
599 #define TPS6594_BIT_MCU_PWR_ERR_INT BIT(2)
600 #define TPS6594_BIT_SOC_PWR_ERR_INT BIT(3)
601 #define TPS6594_BIT_COMM_ERR_INT BIT(4)
602 #define TPS6594_BIT_READBACK_ERR_INT BIT(5)
603 #define TPS65224_BIT_I2C2_ERR_INT BIT(5)
604 #define TPS6594_BIT_ESM_INT BIT(6)
605 #define TPS6594_BIT_WD_INT BIT(7)
608 #define TPS6594_BIT_COMM_FRM_ERR_INT BIT(0)
609 #define TPS6594_BIT_COMM_CRC_ERR_INT BIT(1)
610 #define TPS6594_BIT_COMM_ADR_ERR_INT BIT(3)
611 #define TPS6594_BIT_I2C2_CRC_ERR_INT BIT(5)
612 #define TPS6594_BIT_I2C2_ADR_ERR_INT BIT(7)
615 #define TPS6594_BIT_EN_DRV_READBACK_INT BIT(0)
616 #define TPS6594_BIT_NRSTOUT_SOC_READBACK_INT BIT(3)
619 #define TPS6594_BIT_ESM_SOC_PIN_INT BIT(0)
620 #define TPS6594_BIT_ESM_SOC_FAIL_INT BIT(1)
621 #define TPS6594_BIT_ESM_SOC_RST_INT BIT(2)
622 #define TPS6594_BIT_ESM_MCU_PIN_INT BIT(3)
623 #define TPS6594_BIT_ESM_MCU_FAIL_INT BIT(4)
624 #define TPS6594_BIT_ESM_MCU_RST_INT BIT(5)
627 #define TPS6594_BIT_BUCKX_OV_STAT(buck_inst) BIT(((buck_inst) << 2) % 8)
628 #define TPS6594_BIT_BUCKX_UV_STAT(buck_inst) BIT(((buck_inst) << 2) % 8 + 1)
629 #define TPS6594_BIT_BUCKX_ILIM_STAT(buck_inst) BIT(((buck_inst) << 2) % 8 + 3)
632 #define TPS6594_BIT_LDOX_OV_STAT(ldo_inst) BIT(((ldo_inst) << 2) % 8)
633 #define TPS6594_BIT_LDOX_UV_STAT(ldo_inst) BIT(((ldo_inst) << 2) % 8 + 1)
634 #define TPS6594_BIT_LDOX_ILIM_STAT(ldo_inst) BIT(((ldo_inst) << 2) % 8 + 3)
637 #define TPS6594_BIT_VCCA_OV_STAT BIT(0)
638 #define TPS6594_BIT_VCCA_UV_STAT BIT(1)
639 #define TPS6594_BIT_VMON1_OV_STAT BIT(2)
640 #define TPS6594_BIT_VMON1_UV_STAT BIT(3)
641 #define TPS6594_BIT_VMON2_OV_STAT BIT(5)
642 #define TPS6594_BIT_VMON2_UV_STAT BIT(6)
645 #define TPS65224_BIT_LDO1_UVOV_STAT BIT(0)
646 #define TPS65224_BIT_LDO2_UVOV_STAT BIT(1)
647 #define TPS65224_BIT_LDO3_UVOV_STAT BIT(2)
648 #define TPS65224_BIT_VCCA_UVOV_STAT BIT(4)
649 #define TPS65224_BIT_VMON1_UVOV_STAT BIT(5)
650 #define TPS65224_BIT_VMON2_UVOV_STAT BIT(6)
653 #define TPS65224_BIT_VSENSE_STAT BIT(0)
654 #define TPS6594_BIT_ENABLE_STAT BIT(1)
655 #define TPS65224_BIT_PB_LEVEL_STAT BIT(2)
658 #define TPS6594_BIT_EXT_CLK_STAT BIT(1)
659 #define TPS6594_BIT_TWARN_STAT BIT(3)
662 #define TPS6594_BIT_TSD_ORD_STAT BIT(0)
665 #define TPS6594_BIT_TSD_IMM_STAT BIT(0)
666 #define TPS6594_BIT_VCCA_OVP_STAT BIT(1)
667 #define TPS65224_BIT_BG_XMON_STAT BIT(3)
670 #define TPS6594_BIT_EN_DRV_READBACK_STAT BIT(0)
671 #define TPS6594_BIT_NINT_READBACK_STAT BIT(1)
672 #define TPS6594_BIT_NRSTOUT_READBACK_STAT BIT(2)
673 #define TPS6594_BIT_NRSTOUT_SOC_READBACK_STAT BIT(3)
679 #define TPS6594_MASK_PGOOD_SEL_BUCK4 GENMASK(7, 6)
688 #define TPS6594_MASK_PGOOD_SEL_LDO4 GENMASK(7, 6)
691 #define TPS6594_BIT_PGOOD_SEL_VCCA BIT(0)
692 #define TPS6594_BIT_PGOOD_SEL_VMON1 BIT(1)
693 #define TPS6594_BIT_PGOOD_SEL_VMON2 BIT(2)
694 #define TPS6594_BIT_PGOOD_SEL_TDIE_WARN BIT(3)
695 #define TPS6594_BIT_PGOOD_SEL_NRSTOUT BIT(4)
696 #define TPS6594_BIT_PGOOD_SEL_NRSTOUT_SOC BIT(5)
697 #define TPS6594_BIT_PGOOD_POL BIT(6)
698 #define TPS6594_BIT_PGOOD_WINDOW BIT(7)
704 #define TPS6594_BIT_TWARN_LEVEL BIT(0)
705 #define TPS6594_BIT_TSD_ORD_LEVEL BIT(1)
706 #define TPS6594_BIT_I2C1_HS BIT(3)
707 #define TPS6594_BIT_I2C2_HS BIT(4)
708 #define TPS6594_BIT_EN_ILIM_FSM_CTRL BIT(5)
709 #define TPS6594_BIT_NSLEEP1_MASK BIT(6)
710 #define TPS6594_BIT_NSLEEP2_MASK BIT(7)
713 #define TPS6594_BIT_BB_CHARGER_EN BIT(0)
714 #define TPS6594_BIT_BB_ICHR BIT(1)
716 #define TPS65224_BIT_I2C1_SPI_CRC_EN BIT(4)
717 #define TPS65224_BIT_I2C2_CRC_EN BIT(5)
718 #define TPS6594_BB_EOC_RDY BIT(7)
721 #define TPS6594_BIT_ENABLE_DRV BIT(0)
724 #define TPS6594_BIT_NRSTOUT BIT(0)
725 #define TPS6594_BIT_NRSTOUT_SOC BIT(1)
726 #define TPS6594_BIT_LPM_EN BIT(2)
727 #define TPS6594_BIT_CLKMON_EN BIT(3)
728 #define TPS6594_BIT_AMUXOUT_EN BIT(4)
729 #define TPS6594_BIT_SEL_EXT_CLK BIT(5)
730 #define TPS6594_MASK_SYNCCLKOUT_FREQ_SEL GENMASK(7, 6)
733 #define TPS6594_BIT_EN_DRV_IN BIT(0)
734 #define TPS6594_BIT_NRSTOUT_IN BIT(1)
735 #define TPS6594_BIT_NRSTOUT_SOC_IN BIT(2)
736 #define TPS6594_BIT_FORCE_EN_DRV_LOW BIT(3)
737 #define TPS6594_BIT_SPMI_LPM_EN BIT(4)
738 #define TPS65224_BIT_TSD_DISABLE BIT(5)
745 #define TPS6594_BIT_RECOV_CNT_CLR BIT(4)
748 #define TPS6594_BIT_TRIGGER_I2C(bit) BIT(bit) argument
751 #define TPS6594_BIT_NSLEEP1B BIT(0)
752 #define TPS6594_BIT_NSLEEP2B BIT(1)
755 #define TPS6594_BIT_BUCKX_RESET(buck_inst) BIT(buck_inst)
759 #define TPS6594_BIT_SS_EN BIT(2)
762 #define TPS6594_BIT_BUCKX_FREQ_SEL(buck_inst) BIT(buck_inst)
769 #define TPS6594_MASK_LDO2_RV_TIMEOUT GENMASK(7, 4)
773 #define TPS6594_MASK_LDO4_RV_TIMEOUT GENMASK(7, 4)
776 #define TPS6594_BIT_USER_SPARE(bit) BIT(bit) argument
779 #define TPS6594_BIT_ESM_MCU_START BIT(0)
783 #define TPS6594_BIT_ESM_MCU_ENDRV BIT(5)
784 #define TPS6594_BIT_ESM_MCU_EN BIT(6)
785 #define TPS6594_BIT_ESM_MCU_MODE BIT(7)
791 #define TPS6594_BIT_ESM_SOC_START BIT(0)
794 #define TPS65224_BIT_ESM_MCU_START BIT(0)
798 #define TPS6594_BIT_ESM_SOC_ENDRV BIT(5)
799 #define TPS6594_BIT_ESM_SOC_EN BIT(6)
800 #define TPS6594_BIT_ESM_SOC_MODE BIT(7)
804 #define TPS65224_BIT_ESM_MCU_ENDRV BIT(5)
805 #define TPS65224_BIT_ESM_MCU_EN BIT(6)
806 #define TPS65224_BIT_ESM_MCU_MODE BIT(7)
815 #define TPS6594_BIT_REGISTER_LOCK_STATUS BIT(0)
822 #define TPS65224_MASk_SRAM_UNLOCK_SEQ GENMASK(7, 0)
825 #define TPS65224_BIT_SRAM_WRITE_MODE BIT(0)
826 #define TPS65224_BIT_OTP_PROG_USER BIT(1)
827 #define TPS65224_BIT_OTP_PROG_PFSM BIT(2)
828 #define TPS65224_BIT_OTP_PROG_STATUS BIT(3)
829 #define TPS65224_BIT_SRAM_UNLOCKED BIT(6)
830 #define TPS65224_USER_PROG_ALLOWED BIT(7)
836 #define TPS65224_BIT_INCREMENT_RECOV_CNT BIT(0)
839 #define TPS65224_MASK_SILICON_REV GENMASK(7, 0)
842 #define TPS65224_MASK_CUSTOMER_NVM_ID GENMASK(7, 0)
845 #define TPS6594_BIT_SOFT_REBOOT BIT(0)
858 #define TPS6594_BIT_PM_NAM BIT(7)
866 #define TPS6594_BIT_MONTH_1 BIT(4)
870 #define TPS6594_MASK_YEAR_1 GENMASK(7, 4)
876 #define TPS6594_BIT_STOP_RTC BIT(0)
877 #define TPS6594_BIT_ROUND_30S BIT(1)
878 #define TPS6594_BIT_AUTO_COMP BIT(2)
879 #define TPS6594_BIT_MODE_12_24 BIT(3)
880 #define TPS6594_BIT_SET_32_COUNTER BIT(5)
881 #define TPS6594_BIT_GET_TIME BIT(6)
882 #define TPS6594_BIT_RTC_V_OPT BIT(7)
885 #define TPS6594_BIT_XTAL_EN BIT(0)
887 #define TPS6594_BIT_LP_STANDBY_SEL BIT(3)
888 #define TPS6594_BIT_FAST_BIST BIT(4)
890 #define TPS6594_BIT_FIRST_STARTUP_DONE BIT(7)
893 #define TPS6594_BIT_RUN BIT(1)
894 #define TPS6594_BIT_TIMER BIT(5)
895 #define TPS6594_BIT_ALARM BIT(6)
896 #define TPS6594_BIT_POWER_UP BIT(7)
900 #define TPS6594_BIT_IT_TIMER BIT(2)
901 #define TPS6594_BIT_IT_ALARM BIT(3)
904 #define TPS6594_BIT_RESET_STATUS_RTC BIT(0)
907 #define TPS6594_BIT_I2C_SPI_SEL BIT(0)
908 #define TPS6594_BIT_I2C1_SPI_CRC_EN BIT(1)
909 #define TPS6594_BIT_I2C2_CRC_EN BIT(2)
910 #define TPS6594_MASK_T_CRC GENMASK(7, 3)
913 #define TPS65224_BIT_ADC_START BIT(0)
914 #define TPS65224_BIT_ADC_CONT_CONV BIT(1)
915 #define TPS65224_BIT_ADC_THERMAL_SEL BIT(2)
916 #define TPS65224_BIT_ADC_RDIV_EN BIT(3)
917 #define TPS65224_BIT_ADC_STATUS BIT(7)
920 #define TPS65224_MASK_ADC_RESULT_11_4 GENMASK(7, 0)
923 #define TPS65224_MASK_ADC_RESULT_3_0 GENMASK(7, 4)
927 #define TPS65224_BIT_FIRST_STARTUP_DONE BIT(7)
930 #define TPS6594_MASK_SCRATCH_PAD_1 GENMASK(7, 0)
933 #define TPS6594_MASK_SCRATCH_PAD_2 GENMASK(7, 0)
936 #define TPS6594_MASK_SCRATCH_PAD_3 GENMASK(7, 0)
939 #define TPS6594_MASK_SCRATCH_PAD_4 GENMASK(7, 0)
942 #define TPS6594_MASK_PFSM_DELAY1 GENMASK(7, 0)
945 #define TPS6594_MASK_PFSM_DELAY2 GENMASK(7, 0)
948 #define TPS6594_MASK_PFSM_DELAY3 GENMASK(7, 0)
951 #define TPS6594_MASK_PFSM_DELAY4 GENMASK(7, 0)
954 #define TPS65224_BIT_RUN_CRC_BIST BIT(0)
955 #define TPS65224_BIT_RUN_CRC_UPDATE BIT(1)
958 #define TPS65224_MASK_ADC_GAIN_COMP GENMASK(7, 0)
961 #define TPS65224_MASK_REGMAP_USER_CRC16_LOW GENMASK(7, 0)
964 #define TPS65224_MASK_REGMAP_USER_CRC16_HIGH GENMASK(7, 0)
967 #define TPS6594_MASK_WD_ANSWER GENMASK(7, 0)
972 #define TPS65224_BIT_INT_TOP_STATUS BIT(7)
981 #define TPS6594_MASK_WD_LONGWIN_CFG GENMASK(7, 0)
984 #define TPS6594_BIT_WD_RETURN_LONGWIN BIT(0)
985 #define TPS6594_BIT_WD_MODE_SELECT BIT(1)
986 #define TPS6594_BIT_WD_PWRHOLD BIT(2)
987 #define TPS65224_BIT_WD_ENDRV_SEL BIT(6)
988 #define TPS65224_BIT_WD_CNT_SEL BIT(7)
993 #define TPS6594_MASK_WD_QA_FDBK GENMASK(7, 6)
996 #define TPS6594_BIT_WD_LONGWIN_TIMEOUT_INT BIT(0)
997 #define TPS6594_BIT_WD_TIMEOUT BIT(1)
998 #define TPS6594_BIT_WD_TRIG_EARLY BIT(2)
999 #define TPS6594_BIT_WD_ANSW_EARLY BIT(3)
1000 #define TPS6594_BIT_WD_SEQ_ERR BIT(4)
1001 #define TPS6594_BIT_WD_ANSW_ERR BIT(5)
1002 #define TPS6594_BIT_WD_FAIL_INT BIT(6)
1003 #define TPS6594_BIT_WD_RST_INT BIT(7)
1008 #define TPS6594_BIT_WD_EN BIT(6)
1009 #define TPS6594_BIT_WD_RST_EN BIT(7)
1013 #define TPS6594_BIT_WD_FIRST_OK BIT(5)
1014 #define TPS6594_BIT_WD_BAD_EVENT BIT(6)
1320 * struct tps6594 - device private data structure