Lines Matching full:regmap

25 #include <linux/regmap.h>
322 struct regmap *regmap; member
323 struct regmap *regmap_common_cdb;
324 struct regmap *regmap_phy_pcs_common_cdb;
325 struct regmap *regmap_phy_pma_common_cdb;
326 struct regmap *regmap_tx_lane_cdb[MAX_NUM_LANES];
327 struct regmap *regmap_rx_lane_cdb[MAX_NUM_LANES];
328 struct regmap *regmap_phy_pcs_lane_cdb[MAX_NUM_LANES];
329 struct regmap *regmap_dptx_phy_reg;
512 static void cdns_torrent_phy_write(struct regmap *regmap, u32 offset, u32 val) in cdns_torrent_phy_write() argument
514 regmap_write(regmap, offset, val); in cdns_torrent_phy_write()
517 static u32 cdns_torrent_phy_read(struct regmap *regmap, u32 offset) in cdns_torrent_phy_read() argument
521 regmap_read(regmap, offset, &val); in cdns_torrent_phy_read()
527 static void cdns_torrent_dp_write(struct regmap *regmap, u32 offset, u32 val) in cdns_torrent_dp_write() argument
529 regmap_write(regmap, offset, val); in cdns_torrent_dp_write()
532 static u32 cdns_torrent_dp_read(struct regmap *regmap, u32 offset) in cdns_torrent_dp_read() argument
536 regmap_read(regmap, offset, &val); in cdns_torrent_dp_read()
630 struct regmap *regmap = cdns_phy->regmap_common_cdb; in cdns_torrent_dp_enable_ssc_19_2mhz() local
632 cdns_torrent_phy_write(regmap, CMN_PLL0_SS_CTRL1_M0, 0x0001); in cdns_torrent_dp_enable_ssc_19_2mhz()
633 cdns_torrent_phy_write(regmap, CMN_PLL0_SS_CTRL1_M0, ctrl2_val); in cdns_torrent_dp_enable_ssc_19_2mhz()
634 cdns_torrent_phy_write(regmap, CMN_PLL0_SS_CTRL1_M0, ctrl3_val); in cdns_torrent_dp_enable_ssc_19_2mhz()
635 cdns_torrent_phy_write(regmap, CMN_PLL0_SS_CTRL4_M0, 0x0003); in cdns_torrent_dp_enable_ssc_19_2mhz()
636 cdns_torrent_phy_write(regmap, CMN_PLL1_SS_CTRL1_M0, 0x0001); in cdns_torrent_dp_enable_ssc_19_2mhz()
637 cdns_torrent_phy_write(regmap, CMN_PLL1_SS_CTRL1_M0, ctrl2_val); in cdns_torrent_dp_enable_ssc_19_2mhz()
638 cdns_torrent_phy_write(regmap, CMN_PLL1_SS_CTRL1_M0, ctrl3_val); in cdns_torrent_dp_enable_ssc_19_2mhz()
639 cdns_torrent_phy_write(regmap, CMN_PLL1_SS_CTRL4_M0, 0x0003); in cdns_torrent_dp_enable_ssc_19_2mhz()
646 struct regmap *regmap = cdns_phy->regmap_common_cdb; in cdns_torrent_dp_pma_cmn_vco_cfg_19_2mhz() local
653 cdns_torrent_phy_write(regmap, CMN_PLL0_INTDIV_M0, 0x0119); in cdns_torrent_dp_pma_cmn_vco_cfg_19_2mhz()
654 cdns_torrent_phy_write(regmap, CMN_PLL0_FRACDIVL_M0, 0x4000); in cdns_torrent_dp_pma_cmn_vco_cfg_19_2mhz()
655 cdns_torrent_phy_write(regmap, CMN_PLL0_FRACDIVH_M0, 0x0002); in cdns_torrent_dp_pma_cmn_vco_cfg_19_2mhz()
656 cdns_torrent_phy_write(regmap, CMN_PLL0_HIGH_THR_M0, 0x00BC); in cdns_torrent_dp_pma_cmn_vco_cfg_19_2mhz()
657 cdns_torrent_phy_write(regmap, CMN_PDIAG_PLL0_CTRL_M0, 0x0012); in cdns_torrent_dp_pma_cmn_vco_cfg_19_2mhz()
658 cdns_torrent_phy_write(regmap, CMN_PLL1_INTDIV_M0, 0x0119); in cdns_torrent_dp_pma_cmn_vco_cfg_19_2mhz()
659 cdns_torrent_phy_write(regmap, CMN_PLL1_FRACDIVL_M0, 0x4000); in cdns_torrent_dp_pma_cmn_vco_cfg_19_2mhz()
660 cdns_torrent_phy_write(regmap, CMN_PLL1_FRACDIVH_M0, 0x0002); in cdns_torrent_dp_pma_cmn_vco_cfg_19_2mhz()
661 cdns_torrent_phy_write(regmap, CMN_PLL1_HIGH_THR_M0, 0x00BC); in cdns_torrent_dp_pma_cmn_vco_cfg_19_2mhz()
662 cdns_torrent_phy_write(regmap, CMN_PDIAG_PLL1_CTRL_M0, 0x0012); in cdns_torrent_dp_pma_cmn_vco_cfg_19_2mhz()
670 cdns_torrent_phy_write(regmap, CMN_PLL0_INTDIV_M0, 0x01FA); in cdns_torrent_dp_pma_cmn_vco_cfg_19_2mhz()
671 cdns_torrent_phy_write(regmap, CMN_PLL0_FRACDIVL_M0, 0x4000); in cdns_torrent_dp_pma_cmn_vco_cfg_19_2mhz()
672 cdns_torrent_phy_write(regmap, CMN_PLL0_FRACDIVH_M0, 0x0002); in cdns_torrent_dp_pma_cmn_vco_cfg_19_2mhz()
673 cdns_torrent_phy_write(regmap, CMN_PLL0_HIGH_THR_M0, 0x0152); in cdns_torrent_dp_pma_cmn_vco_cfg_19_2mhz()
674 cdns_torrent_phy_write(regmap, CMN_PDIAG_PLL0_CTRL_M0, 0x0002); in cdns_torrent_dp_pma_cmn_vco_cfg_19_2mhz()
675 cdns_torrent_phy_write(regmap, CMN_PLL1_INTDIV_M0, 0x01FA); in cdns_torrent_dp_pma_cmn_vco_cfg_19_2mhz()
676 cdns_torrent_phy_write(regmap, CMN_PLL1_FRACDIVL_M0, 0x4000); in cdns_torrent_dp_pma_cmn_vco_cfg_19_2mhz()
677 cdns_torrent_phy_write(regmap, CMN_PLL1_FRACDIVH_M0, 0x0002); in cdns_torrent_dp_pma_cmn_vco_cfg_19_2mhz()
678 cdns_torrent_phy_write(regmap, CMN_PLL1_HIGH_THR_M0, 0x0152); in cdns_torrent_dp_pma_cmn_vco_cfg_19_2mhz()
679 cdns_torrent_phy_write(regmap, CMN_PDIAG_PLL1_CTRL_M0, 0x0002); in cdns_torrent_dp_pma_cmn_vco_cfg_19_2mhz()
686 cdns_torrent_phy_write(regmap, CMN_PLL0_INTDIV_M0, 0x01C2); in cdns_torrent_dp_pma_cmn_vco_cfg_19_2mhz()
687 cdns_torrent_phy_write(regmap, CMN_PLL0_FRACDIVL_M0, 0x0000); in cdns_torrent_dp_pma_cmn_vco_cfg_19_2mhz()
688 cdns_torrent_phy_write(regmap, CMN_PLL0_FRACDIVH_M0, 0x0002); in cdns_torrent_dp_pma_cmn_vco_cfg_19_2mhz()
689 cdns_torrent_phy_write(regmap, CMN_PLL0_HIGH_THR_M0, 0x012C); in cdns_torrent_dp_pma_cmn_vco_cfg_19_2mhz()
690 cdns_torrent_phy_write(regmap, CMN_PDIAG_PLL0_CTRL_M0, 0x0002); in cdns_torrent_dp_pma_cmn_vco_cfg_19_2mhz()
691 cdns_torrent_phy_write(regmap, CMN_PLL1_INTDIV_M0, 0x01C2); in cdns_torrent_dp_pma_cmn_vco_cfg_19_2mhz()
692 cdns_torrent_phy_write(regmap, CMN_PLL1_FRACDIVL_M0, 0x0000); in cdns_torrent_dp_pma_cmn_vco_cfg_19_2mhz()
693 cdns_torrent_phy_write(regmap, CMN_PLL1_FRACDIVH_M0, 0x0002); in cdns_torrent_dp_pma_cmn_vco_cfg_19_2mhz()
694 cdns_torrent_phy_write(regmap, CMN_PLL1_HIGH_THR_M0, 0x012C); in cdns_torrent_dp_pma_cmn_vco_cfg_19_2mhz()
695 cdns_torrent_phy_write(regmap, CMN_PDIAG_PLL1_CTRL_M0, 0x0002); in cdns_torrent_dp_pma_cmn_vco_cfg_19_2mhz()
701 cdns_torrent_phy_write(regmap, CMN_PLL0_INTDIV_M0, 0x01A5); in cdns_torrent_dp_pma_cmn_vco_cfg_19_2mhz()
702 cdns_torrent_phy_write(regmap, CMN_PLL0_FRACDIVL_M0, 0xE000); in cdns_torrent_dp_pma_cmn_vco_cfg_19_2mhz()
703 cdns_torrent_phy_write(regmap, CMN_PLL0_FRACDIVH_M0, 0x0002); in cdns_torrent_dp_pma_cmn_vco_cfg_19_2mhz()
704 cdns_torrent_phy_write(regmap, CMN_PLL0_HIGH_THR_M0, 0x011A); in cdns_torrent_dp_pma_cmn_vco_cfg_19_2mhz()
705 cdns_torrent_phy_write(regmap, CMN_PDIAG_PLL0_CTRL_M0, 0x0002); in cdns_torrent_dp_pma_cmn_vco_cfg_19_2mhz()
706 cdns_torrent_phy_write(regmap, CMN_PLL1_INTDIV_M0, 0x01A5); in cdns_torrent_dp_pma_cmn_vco_cfg_19_2mhz()
707 cdns_torrent_phy_write(regmap, CMN_PLL1_FRACDIVL_M0, 0xE000); in cdns_torrent_dp_pma_cmn_vco_cfg_19_2mhz()
708 cdns_torrent_phy_write(regmap, CMN_PLL1_FRACDIVH_M0, 0x0002); in cdns_torrent_dp_pma_cmn_vco_cfg_19_2mhz()
709 cdns_torrent_phy_write(regmap, CMN_PLL1_HIGH_THR_M0, 0x011A); in cdns_torrent_dp_pma_cmn_vco_cfg_19_2mhz()
710 cdns_torrent_phy_write(regmap, CMN_PDIAG_PLL1_CTRL_M0, 0x0002); in cdns_torrent_dp_pma_cmn_vco_cfg_19_2mhz()
717 cdns_torrent_phy_write(regmap, CMN_PLL0_VCOCAL_PLLCNT_START, 0x025E); in cdns_torrent_dp_pma_cmn_vco_cfg_19_2mhz()
718 cdns_torrent_phy_write(regmap, CMN_PLL0_LOCK_PLLCNT_THR, 0x0005); in cdns_torrent_dp_pma_cmn_vco_cfg_19_2mhz()
719 cdns_torrent_phy_write(regmap, CMN_PLL1_VCOCAL_PLLCNT_START, 0x025E); in cdns_torrent_dp_pma_cmn_vco_cfg_19_2mhz()
720 cdns_torrent_phy_write(regmap, CMN_PLL1_LOCK_PLLCNT_THR, 0x0005); in cdns_torrent_dp_pma_cmn_vco_cfg_19_2mhz()
722 cdns_torrent_phy_write(regmap, CMN_PLL0_VCOCAL_PLLCNT_START, 0x0260); in cdns_torrent_dp_pma_cmn_vco_cfg_19_2mhz()
723 cdns_torrent_phy_write(regmap, CMN_PLL1_VCOCAL_PLLCNT_START, 0x0260); in cdns_torrent_dp_pma_cmn_vco_cfg_19_2mhz()
725 cdns_torrent_phy_write(regmap, CMN_PLL0_SS_CTRL1_M0, 0x0002); in cdns_torrent_dp_pma_cmn_vco_cfg_19_2mhz()
726 cdns_torrent_phy_write(regmap, CMN_PLL0_SS_CTRL2_M0, 0x0000); in cdns_torrent_dp_pma_cmn_vco_cfg_19_2mhz()
727 cdns_torrent_phy_write(regmap, CMN_PLL0_SS_CTRL3_M0, 0x0000); in cdns_torrent_dp_pma_cmn_vco_cfg_19_2mhz()
728 cdns_torrent_phy_write(regmap, CMN_PLL0_SS_CTRL4_M0, 0x0000); in cdns_torrent_dp_pma_cmn_vco_cfg_19_2mhz()
729 cdns_torrent_phy_write(regmap, CMN_PLL0_LOCK_PLLCNT_THR, 0x0003); in cdns_torrent_dp_pma_cmn_vco_cfg_19_2mhz()
730 cdns_torrent_phy_write(regmap, CMN_PLL1_SS_CTRL1_M0, 0x0002); in cdns_torrent_dp_pma_cmn_vco_cfg_19_2mhz()
731 cdns_torrent_phy_write(regmap, CMN_PLL1_SS_CTRL2_M0, 0x0000); in cdns_torrent_dp_pma_cmn_vco_cfg_19_2mhz()
732 cdns_torrent_phy_write(regmap, CMN_PLL1_SS_CTRL3_M0, 0x0000); in cdns_torrent_dp_pma_cmn_vco_cfg_19_2mhz()
733 cdns_torrent_phy_write(regmap, CMN_PLL1_SS_CTRL4_M0, 0x0000); in cdns_torrent_dp_pma_cmn_vco_cfg_19_2mhz()
734 cdns_torrent_phy_write(regmap, CMN_PLL1_LOCK_PLLCNT_THR, 0x0003); in cdns_torrent_dp_pma_cmn_vco_cfg_19_2mhz()
737 cdns_torrent_phy_write(regmap, CMN_PLL0_LOCK_REFCNT_START, 0x0099); in cdns_torrent_dp_pma_cmn_vco_cfg_19_2mhz()
738 cdns_torrent_phy_write(regmap, CMN_PLL0_LOCK_PLLCNT_START, 0x0099); in cdns_torrent_dp_pma_cmn_vco_cfg_19_2mhz()
739 cdns_torrent_phy_write(regmap, CMN_PLL1_LOCK_REFCNT_START, 0x0099); in cdns_torrent_dp_pma_cmn_vco_cfg_19_2mhz()
740 cdns_torrent_phy_write(regmap, CMN_PLL1_LOCK_PLLCNT_START, 0x0099); in cdns_torrent_dp_pma_cmn_vco_cfg_19_2mhz()
750 struct regmap *regmap = cdns_phy->regmap_common_cdb; in cdns_torrent_dp_enable_ssc_25mhz() local
752 cdns_torrent_phy_write(regmap, CMN_PLL0_SS_CTRL1_M0, 0x0001); in cdns_torrent_dp_enable_ssc_25mhz()
753 cdns_torrent_phy_write(regmap, CMN_PLL0_SS_CTRL1_M0, ctrl2_val); in cdns_torrent_dp_enable_ssc_25mhz()
754 cdns_torrent_phy_write(regmap, CMN_PLL0_SS_CTRL1_M0, 0x007F); in cdns_torrent_dp_enable_ssc_25mhz()
755 cdns_torrent_phy_write(regmap, CMN_PLL0_SS_CTRL4_M0, 0x0003); in cdns_torrent_dp_enable_ssc_25mhz()
756 cdns_torrent_phy_write(regmap, CMN_PLL1_SS_CTRL1_M0, 0x0001); in cdns_torrent_dp_enable_ssc_25mhz()
757 cdns_torrent_phy_write(regmap, CMN_PLL1_SS_CTRL1_M0, ctrl2_val); in cdns_torrent_dp_enable_ssc_25mhz()
758 cdns_torrent_phy_write(regmap, CMN_PLL1_SS_CTRL1_M0, 0x007F); in cdns_torrent_dp_enable_ssc_25mhz()
759 cdns_torrent_phy_write(regmap, CMN_PLL1_SS_CTRL4_M0, 0x0003); in cdns_torrent_dp_enable_ssc_25mhz()
766 struct regmap *regmap = cdns_phy->regmap_common_cdb; in cdns_torrent_dp_pma_cmn_vco_cfg_25mhz() local
773 cdns_torrent_phy_write(regmap, CMN_PLL0_INTDIV_M0, 0x01B0); in cdns_torrent_dp_pma_cmn_vco_cfg_25mhz()
774 cdns_torrent_phy_write(regmap, CMN_PLL0_FRACDIVL_M0, 0x0000); in cdns_torrent_dp_pma_cmn_vco_cfg_25mhz()
775 cdns_torrent_phy_write(regmap, CMN_PLL0_FRACDIVH_M0, 0x0002); in cdns_torrent_dp_pma_cmn_vco_cfg_25mhz()
776 cdns_torrent_phy_write(regmap, CMN_PLL0_HIGH_THR_M0, 0x0120); in cdns_torrent_dp_pma_cmn_vco_cfg_25mhz()
777 cdns_torrent_phy_write(regmap, CMN_PLL1_INTDIV_M0, 0x01B0); in cdns_torrent_dp_pma_cmn_vco_cfg_25mhz()
778 cdns_torrent_phy_write(regmap, CMN_PLL1_FRACDIVL_M0, 0x0000); in cdns_torrent_dp_pma_cmn_vco_cfg_25mhz()
779 cdns_torrent_phy_write(regmap, CMN_PLL1_FRACDIVH_M0, 0x0002); in cdns_torrent_dp_pma_cmn_vco_cfg_25mhz()
780 cdns_torrent_phy_write(regmap, CMN_PLL1_HIGH_THR_M0, 0x0120); in cdns_torrent_dp_pma_cmn_vco_cfg_25mhz()
788 cdns_torrent_phy_write(regmap, CMN_PLL0_INTDIV_M0, 0x0184); in cdns_torrent_dp_pma_cmn_vco_cfg_25mhz()
789 cdns_torrent_phy_write(regmap, CMN_PLL0_FRACDIVL_M0, 0xCCCD); in cdns_torrent_dp_pma_cmn_vco_cfg_25mhz()
790 cdns_torrent_phy_write(regmap, CMN_PLL0_FRACDIVH_M0, 0x0002); in cdns_torrent_dp_pma_cmn_vco_cfg_25mhz()
791 cdns_torrent_phy_write(regmap, CMN_PLL0_HIGH_THR_M0, 0x0104); in cdns_torrent_dp_pma_cmn_vco_cfg_25mhz()
792 cdns_torrent_phy_write(regmap, CMN_PLL1_INTDIV_M0, 0x0184); in cdns_torrent_dp_pma_cmn_vco_cfg_25mhz()
793 cdns_torrent_phy_write(regmap, CMN_PLL1_FRACDIVL_M0, 0xCCCD); in cdns_torrent_dp_pma_cmn_vco_cfg_25mhz()
794 cdns_torrent_phy_write(regmap, CMN_PLL1_FRACDIVH_M0, 0x0002); in cdns_torrent_dp_pma_cmn_vco_cfg_25mhz()
795 cdns_torrent_phy_write(regmap, CMN_PLL1_HIGH_THR_M0, 0x0104); in cdns_torrent_dp_pma_cmn_vco_cfg_25mhz()
802 cdns_torrent_phy_write(regmap, CMN_PLL0_INTDIV_M0, 0x0159); in cdns_torrent_dp_pma_cmn_vco_cfg_25mhz()
803 cdns_torrent_phy_write(regmap, CMN_PLL0_FRACDIVL_M0, 0x999A); in cdns_torrent_dp_pma_cmn_vco_cfg_25mhz()
804 cdns_torrent_phy_write(regmap, CMN_PLL0_FRACDIVH_M0, 0x0002); in cdns_torrent_dp_pma_cmn_vco_cfg_25mhz()
805 cdns_torrent_phy_write(regmap, CMN_PLL0_HIGH_THR_M0, 0x00E7); in cdns_torrent_dp_pma_cmn_vco_cfg_25mhz()
806 cdns_torrent_phy_write(regmap, CMN_PLL1_INTDIV_M0, 0x0159); in cdns_torrent_dp_pma_cmn_vco_cfg_25mhz()
807 cdns_torrent_phy_write(regmap, CMN_PLL1_FRACDIVL_M0, 0x999A); in cdns_torrent_dp_pma_cmn_vco_cfg_25mhz()
808 cdns_torrent_phy_write(regmap, CMN_PLL1_FRACDIVH_M0, 0x0002); in cdns_torrent_dp_pma_cmn_vco_cfg_25mhz()
809 cdns_torrent_phy_write(regmap, CMN_PLL1_HIGH_THR_M0, 0x00E7); in cdns_torrent_dp_pma_cmn_vco_cfg_25mhz()
815 cdns_torrent_phy_write(regmap, CMN_PLL0_INTDIV_M0, 0x0144); in cdns_torrent_dp_pma_cmn_vco_cfg_25mhz()
816 cdns_torrent_phy_write(regmap, CMN_PLL0_FRACDIVL_M0, 0x0000); in cdns_torrent_dp_pma_cmn_vco_cfg_25mhz()
817 cdns_torrent_phy_write(regmap, CMN_PLL0_FRACDIVH_M0, 0x0002); in cdns_torrent_dp_pma_cmn_vco_cfg_25mhz()
818 cdns_torrent_phy_write(regmap, CMN_PLL0_HIGH_THR_M0, 0x00D8); in cdns_torrent_dp_pma_cmn_vco_cfg_25mhz()
819 cdns_torrent_phy_write(regmap, CMN_PLL1_INTDIV_M0, 0x0144); in cdns_torrent_dp_pma_cmn_vco_cfg_25mhz()
820 cdns_torrent_phy_write(regmap, CMN_PLL1_FRACDIVL_M0, 0x0000); in cdns_torrent_dp_pma_cmn_vco_cfg_25mhz()
821 cdns_torrent_phy_write(regmap, CMN_PLL1_FRACDIVH_M0, 0x0002); in cdns_torrent_dp_pma_cmn_vco_cfg_25mhz()
822 cdns_torrent_phy_write(regmap, CMN_PLL1_HIGH_THR_M0, 0x00D8); in cdns_torrent_dp_pma_cmn_vco_cfg_25mhz()
828 cdns_torrent_phy_write(regmap, CMN_PDIAG_PLL0_CTRL_M0, 0x0002); in cdns_torrent_dp_pma_cmn_vco_cfg_25mhz()
829 cdns_torrent_phy_write(regmap, CMN_PDIAG_PLL1_CTRL_M0, 0x0002); in cdns_torrent_dp_pma_cmn_vco_cfg_25mhz()
832 cdns_torrent_phy_write(regmap, in cdns_torrent_dp_pma_cmn_vco_cfg_25mhz()
834 cdns_torrent_phy_write(regmap, in cdns_torrent_dp_pma_cmn_vco_cfg_25mhz()
836 cdns_torrent_phy_write(regmap, in cdns_torrent_dp_pma_cmn_vco_cfg_25mhz()
838 cdns_torrent_phy_write(regmap, in cdns_torrent_dp_pma_cmn_vco_cfg_25mhz()
841 cdns_torrent_phy_write(regmap, in cdns_torrent_dp_pma_cmn_vco_cfg_25mhz()
843 cdns_torrent_phy_write(regmap, in cdns_torrent_dp_pma_cmn_vco_cfg_25mhz()
846 cdns_torrent_phy_write(regmap, CMN_PLL0_SS_CTRL1_M0, 0x0002); in cdns_torrent_dp_pma_cmn_vco_cfg_25mhz()
847 cdns_torrent_phy_write(regmap, CMN_PLL0_SS_CTRL2_M0, 0x0000); in cdns_torrent_dp_pma_cmn_vco_cfg_25mhz()
848 cdns_torrent_phy_write(regmap, CMN_PLL0_SS_CTRL3_M0, 0x0000); in cdns_torrent_dp_pma_cmn_vco_cfg_25mhz()
849 cdns_torrent_phy_write(regmap, CMN_PLL0_SS_CTRL4_M0, 0x0000); in cdns_torrent_dp_pma_cmn_vco_cfg_25mhz()
850 cdns_torrent_phy_write(regmap, in cdns_torrent_dp_pma_cmn_vco_cfg_25mhz()
852 cdns_torrent_phy_write(regmap, CMN_PLL1_SS_CTRL1_M0, 0x0002); in cdns_torrent_dp_pma_cmn_vco_cfg_25mhz()
853 cdns_torrent_phy_write(regmap, CMN_PLL1_SS_CTRL2_M0, 0x0000); in cdns_torrent_dp_pma_cmn_vco_cfg_25mhz()
854 cdns_torrent_phy_write(regmap, CMN_PLL1_SS_CTRL3_M0, 0x0000); in cdns_torrent_dp_pma_cmn_vco_cfg_25mhz()
855 cdns_torrent_phy_write(regmap, CMN_PLL1_SS_CTRL4_M0, 0x0000); in cdns_torrent_dp_pma_cmn_vco_cfg_25mhz()
856 cdns_torrent_phy_write(regmap, in cdns_torrent_dp_pma_cmn_vco_cfg_25mhz()
860 cdns_torrent_phy_write(regmap, CMN_PLL0_LOCK_REFCNT_START, 0x00C7); in cdns_torrent_dp_pma_cmn_vco_cfg_25mhz()
861 cdns_torrent_phy_write(regmap, CMN_PLL0_LOCK_PLLCNT_START, 0x00C7); in cdns_torrent_dp_pma_cmn_vco_cfg_25mhz()
862 cdns_torrent_phy_write(regmap, CMN_PLL1_LOCK_REFCNT_START, 0x00C7); in cdns_torrent_dp_pma_cmn_vco_cfg_25mhz()
863 cdns_torrent_phy_write(regmap, CMN_PLL1_LOCK_PLLCNT_START, 0x00C7); in cdns_torrent_dp_pma_cmn_vco_cfg_25mhz()
870 struct regmap *regmap = cdns_phy->regmap_common_cdb; in cdns_torrent_dp_pma_cmn_vco_cfg_100mhz() local
877 cdns_torrent_phy_write(regmap, CMN_PDIAG_PLL1_CP_PADJ_M0, 0x0028); in cdns_torrent_dp_pma_cmn_vco_cfg_100mhz()
878 cdns_torrent_phy_write(regmap, CMN_PLL0_DSM_FBH_OVRD_M0, 0x0022); in cdns_torrent_dp_pma_cmn_vco_cfg_100mhz()
879 cdns_torrent_phy_write(regmap, CMN_PLL1_DSM_FBH_OVRD_M0, 0x0022); in cdns_torrent_dp_pma_cmn_vco_cfg_100mhz()
880 cdns_torrent_phy_write(regmap, CMN_PLL1_DSM_FBL_OVRD_M0, 0x000C); in cdns_torrent_dp_pma_cmn_vco_cfg_100mhz()
886 cdns_torrent_phy_write(regmap, CMN_PLL0_DSM_DIAG_M0, 0x0004); in cdns_torrent_dp_pma_cmn_vco_cfg_100mhz()
887 cdns_torrent_phy_write(regmap, CMN_PLL1_DSM_DIAG_M0, 0x0004); in cdns_torrent_dp_pma_cmn_vco_cfg_100mhz()
888 cdns_torrent_phy_write(regmap, CMN_PDIAG_PLL0_CP_PADJ_M0, 0x0509); in cdns_torrent_dp_pma_cmn_vco_cfg_100mhz()
889 cdns_torrent_phy_write(regmap, CMN_PDIAG_PLL1_CP_PADJ_M0, 0x0509); in cdns_torrent_dp_pma_cmn_vco_cfg_100mhz()
890 cdns_torrent_phy_write(regmap, CMN_PDIAG_PLL0_CP_IADJ_M0, 0x0F00); in cdns_torrent_dp_pma_cmn_vco_cfg_100mhz()
891 cdns_torrent_phy_write(regmap, CMN_PDIAG_PLL1_CP_IADJ_M0, 0x0F00); in cdns_torrent_dp_pma_cmn_vco_cfg_100mhz()
892 cdns_torrent_phy_write(regmap, CMN_PDIAG_PLL0_FILT_PADJ_M0, 0x0F08); in cdns_torrent_dp_pma_cmn_vco_cfg_100mhz()
893 cdns_torrent_phy_write(regmap, CMN_PDIAG_PLL1_FILT_PADJ_M0, 0x0F08); in cdns_torrent_dp_pma_cmn_vco_cfg_100mhz()
894 cdns_torrent_phy_write(regmap, CMN_PLL0_INTDIV_M0, 0x0061); in cdns_torrent_dp_pma_cmn_vco_cfg_100mhz()
895 cdns_torrent_phy_write(regmap, CMN_PLL1_INTDIV_M0, 0x0061); in cdns_torrent_dp_pma_cmn_vco_cfg_100mhz()
896 cdns_torrent_phy_write(regmap, CMN_PLL0_FRACDIVL_M0, 0x3333); in cdns_torrent_dp_pma_cmn_vco_cfg_100mhz()
897 cdns_torrent_phy_write(regmap, CMN_PLL1_FRACDIVL_M0, 0x3333); in cdns_torrent_dp_pma_cmn_vco_cfg_100mhz()
898 cdns_torrent_phy_write(regmap, CMN_PLL0_FRACDIVH_M0, 0x0002); in cdns_torrent_dp_pma_cmn_vco_cfg_100mhz()
899 cdns_torrent_phy_write(regmap, CMN_PLL1_FRACDIVH_M0, 0x0002); in cdns_torrent_dp_pma_cmn_vco_cfg_100mhz()
900 cdns_torrent_phy_write(regmap, CMN_PLL0_HIGH_THR_M0, 0x0042); in cdns_torrent_dp_pma_cmn_vco_cfg_100mhz()
901 cdns_torrent_phy_write(regmap, CMN_PLL1_HIGH_THR_M0, 0x0042); in cdns_torrent_dp_pma_cmn_vco_cfg_100mhz()
902 cdns_torrent_phy_write(regmap, CMN_PDIAG_PLL0_CTRL_M0, 0x0002); in cdns_torrent_dp_pma_cmn_vco_cfg_100mhz()
903 cdns_torrent_phy_write(regmap, CMN_PDIAG_PLL1_CTRL_M0, 0x0002); in cdns_torrent_dp_pma_cmn_vco_cfg_100mhz()
908 cdns_torrent_phy_write(regmap, CMN_PLL0_DSM_DIAG_M0, 0x0004); in cdns_torrent_dp_pma_cmn_vco_cfg_100mhz()
909 cdns_torrent_phy_write(regmap, CMN_PLL1_DSM_DIAG_M0, 0x0004); in cdns_torrent_dp_pma_cmn_vco_cfg_100mhz()
910 cdns_torrent_phy_write(regmap, CMN_PDIAG_PLL0_CP_PADJ_M0, 0x0509); in cdns_torrent_dp_pma_cmn_vco_cfg_100mhz()
911 cdns_torrent_phy_write(regmap, CMN_PDIAG_PLL1_CP_PADJ_M0, 0x0509); in cdns_torrent_dp_pma_cmn_vco_cfg_100mhz()
912 cdns_torrent_phy_write(regmap, CMN_PDIAG_PLL0_CP_IADJ_M0, 0x0F00); in cdns_torrent_dp_pma_cmn_vco_cfg_100mhz()
913 cdns_torrent_phy_write(regmap, CMN_PDIAG_PLL1_CP_IADJ_M0, 0x0F00); in cdns_torrent_dp_pma_cmn_vco_cfg_100mhz()
914 cdns_torrent_phy_write(regmap, CMN_PDIAG_PLL0_FILT_PADJ_M0, 0x0F08); in cdns_torrent_dp_pma_cmn_vco_cfg_100mhz()
915 cdns_torrent_phy_write(regmap, CMN_PDIAG_PLL1_FILT_PADJ_M0, 0x0F08); in cdns_torrent_dp_pma_cmn_vco_cfg_100mhz()
916 cdns_torrent_phy_write(regmap, CMN_PLL0_INTDIV_M0, 0x0056); in cdns_torrent_dp_pma_cmn_vco_cfg_100mhz()
917 cdns_torrent_phy_write(regmap, CMN_PLL1_INTDIV_M0, 0x0056); in cdns_torrent_dp_pma_cmn_vco_cfg_100mhz()
918 cdns_torrent_phy_write(regmap, CMN_PLL0_FRACDIVL_M0, 0x6666); in cdns_torrent_dp_pma_cmn_vco_cfg_100mhz()
919 cdns_torrent_phy_write(regmap, CMN_PLL1_FRACDIVL_M0, 0x6666); in cdns_torrent_dp_pma_cmn_vco_cfg_100mhz()
920 cdns_torrent_phy_write(regmap, CMN_PLL0_FRACDIVH_M0, 0x0002); in cdns_torrent_dp_pma_cmn_vco_cfg_100mhz()
921 cdns_torrent_phy_write(regmap, CMN_PLL1_FRACDIVH_M0, 0x0002); in cdns_torrent_dp_pma_cmn_vco_cfg_100mhz()
922 cdns_torrent_phy_write(regmap, CMN_PLL0_HIGH_THR_M0, 0x003A); in cdns_torrent_dp_pma_cmn_vco_cfg_100mhz()
923 cdns_torrent_phy_write(regmap, CMN_PLL1_HIGH_THR_M0, 0x003A); in cdns_torrent_dp_pma_cmn_vco_cfg_100mhz()
924 cdns_torrent_phy_write(regmap, CMN_PDIAG_PLL0_CTRL_M0, 0x0002); in cdns_torrent_dp_pma_cmn_vco_cfg_100mhz()
925 cdns_torrent_phy_write(regmap, CMN_PDIAG_PLL1_CTRL_M0, 0x0002); in cdns_torrent_dp_pma_cmn_vco_cfg_100mhz()
929 cdns_torrent_phy_write(regmap, CMN_PLL0_DSM_DIAG_M0, 0x0004); in cdns_torrent_dp_pma_cmn_vco_cfg_100mhz()
930 cdns_torrent_phy_write(regmap, CMN_PLL1_DSM_DIAG_M0, 0x0004); in cdns_torrent_dp_pma_cmn_vco_cfg_100mhz()
931 cdns_torrent_phy_write(regmap, CMN_PDIAG_PLL0_CP_PADJ_M0, 0x0509); in cdns_torrent_dp_pma_cmn_vco_cfg_100mhz()
932 cdns_torrent_phy_write(regmap, CMN_PDIAG_PLL1_CP_PADJ_M0, 0x0509); in cdns_torrent_dp_pma_cmn_vco_cfg_100mhz()
933 cdns_torrent_phy_write(regmap, CMN_PDIAG_PLL0_CP_IADJ_M0, 0x0F00); in cdns_torrent_dp_pma_cmn_vco_cfg_100mhz()
934 cdns_torrent_phy_write(regmap, CMN_PDIAG_PLL1_CP_IADJ_M0, 0x0F00); in cdns_torrent_dp_pma_cmn_vco_cfg_100mhz()
935 cdns_torrent_phy_write(regmap, CMN_PDIAG_PLL0_FILT_PADJ_M0, 0x0F08); in cdns_torrent_dp_pma_cmn_vco_cfg_100mhz()
936 cdns_torrent_phy_write(regmap, CMN_PDIAG_PLL1_FILT_PADJ_M0, 0x0F08); in cdns_torrent_dp_pma_cmn_vco_cfg_100mhz()
937 cdns_torrent_phy_write(regmap, CMN_PLL0_INTDIV_M0, 0x0051); in cdns_torrent_dp_pma_cmn_vco_cfg_100mhz()
938 cdns_torrent_phy_write(regmap, CMN_PLL1_INTDIV_M0, 0x0051); in cdns_torrent_dp_pma_cmn_vco_cfg_100mhz()
939 cdns_torrent_phy_write(regmap, CMN_PLL0_FRACDIVH_M0, 0x0002); in cdns_torrent_dp_pma_cmn_vco_cfg_100mhz()
940 cdns_torrent_phy_write(regmap, CMN_PLL1_FRACDIVH_M0, 0x0002); in cdns_torrent_dp_pma_cmn_vco_cfg_100mhz()
941 cdns_torrent_phy_write(regmap, CMN_PLL0_HIGH_THR_M0, 0x0036); in cdns_torrent_dp_pma_cmn_vco_cfg_100mhz()
942 cdns_torrent_phy_write(regmap, CMN_PLL1_HIGH_THR_M0, 0x0036); in cdns_torrent_dp_pma_cmn_vco_cfg_100mhz()
943 cdns_torrent_phy_write(regmap, CMN_PDIAG_PLL0_CTRL_M0, 0x0002); in cdns_torrent_dp_pma_cmn_vco_cfg_100mhz()
944 cdns_torrent_phy_write(regmap, CMN_PDIAG_PLL1_CTRL_M0, 0x0002); in cdns_torrent_dp_pma_cmn_vco_cfg_100mhz()
958 struct regmap *regmap = cdns_phy->regmap_dptx_phy_reg; in cdns_torrent_dp_set_pll_en() local
991 cdns_torrent_dp_write(regmap, PHY_PMA_XCVR_PLLCLK_EN, pll_val); in cdns_torrent_dp_set_pll_en()
994 ret = regmap_read_poll_timeout(regmap, in cdns_torrent_dp_set_pll_en()
1013 struct regmap *regmap = cdns_phy->regmap_dptx_phy_reg; in cdns_torrent_dp_set_power_state() local
1054 cdns_torrent_dp_write(regmap, PHY_PMA_XCVR_POWER_STATE_REQ, value); in cdns_torrent_dp_set_power_state()
1056 ret = regmap_read_poll_timeout(regmap, PHY_PMA_XCVR_POWER_STATE_ACK, in cdns_torrent_dp_set_power_state()
1059 cdns_torrent_dp_write(regmap, PHY_PMA_XCVR_POWER_STATE_REQ, 0x00000000); in cdns_torrent_dp_set_power_state()
1069 struct regmap *regmap = cdns_phy->regmap_dptx_phy_reg; in cdns_torrent_dp_run() local
1075 ret = regmap_read_poll_timeout(regmap, PHY_PMA_XCVR_PLLCLK_EN_ACK, in cdns_torrent_dp_run()
1101 struct regmap *regmap = cdns_phy->regmap_dptx_phy_reg; in cdns_torrent_dp_wait_pma_cmn_ready() local
1103 ret = regmap_read_poll_timeout(regmap, PHY_PMA_CMN_READY, reg, in cdns_torrent_dp_wait_pma_cmn_ready()
1275 struct regmap *regmap = cdns_phy->regmap_dptx_phy_reg; in cdns_torrent_dp_set_a0_pll() local
1276 u32 pwr_state = cdns_torrent_dp_read(regmap, in cdns_torrent_dp_set_a0_pll()
1278 u32 pll_clk_en = cdns_torrent_dp_read(regmap, in cdns_torrent_dp_set_a0_pll()
1303 cdns_torrent_dp_write(regmap, PHY_PMA_XCVR_POWER_STATE_REQ, pwr_state); in cdns_torrent_dp_set_a0_pll()
1304 cdns_torrent_dp_write(regmap, PHY_PMA_XCVR_PLLCLK_EN, pll_clk_en); in cdns_torrent_dp_set_a0_pll()
1313 struct regmap *regmap = cdns_phy->regmap_dptx_phy_reg; in cdns_torrent_dp_set_lanes() local
1316 value = cdns_torrent_dp_read(regmap, PHY_RESET); in cdns_torrent_dp_set_lanes()
1322 cdns_torrent_dp_write(regmap, PHY_RESET, value); in cdns_torrent_dp_set_lanes()
1325 cdns_torrent_dp_write(regmap, PHY_RESET, in cdns_torrent_dp_set_lanes()
1333 cdns_torrent_dp_write(regmap, PHY_RESET, value); in cdns_torrent_dp_set_lanes()
1339 cdns_torrent_dp_write(regmap, PHY_RESET, value); in cdns_torrent_dp_set_lanes()
1349 cdns_torrent_dp_write(regmap, PHY_PMA_XCVR_PLLCLK_EN, 0x0001); in cdns_torrent_dp_set_lanes()
1532 struct regmap *regmap = cdns_phy->regmap_dptx_phy_reg; in cdns_torrent_dp_common_init() local
1535 cdns_torrent_dp_write(regmap, PHY_AUX_CTRL, 0x0003); /* enable AUX */ in cdns_torrent_dp_common_init()
1548 cdns_torrent_dp_write(regmap, PHY_RESET, in cdns_torrent_dp_common_init()
1552 cdns_torrent_dp_write(regmap, PHY_PMA_XCVR_PLLCLK_EN, 0x0001); in cdns_torrent_dp_common_init()
1660 struct regmap *regmap; in cdns_torrent_derived_refclk_register() local
1689 regmap = cdns_phy->regmap_phy_pcs_common_cdb; in cdns_torrent_derived_refclk_register()
1690 field = devm_regmap_field_alloc(dev, regmap, phy_pipe_cmn_ctrl1_0); in cdns_torrent_derived_refclk_register()
1697 regmap = cdns_phy->regmap_common_cdb; in cdns_torrent_derived_refclk_register()
1699 field = devm_regmap_field_alloc(dev, regmap, refclk_out_cmn_cfg[i]); in cdns_torrent_derived_refclk_register()
1718 static struct regmap *cdns_regmap_init(struct device *dev, void __iomem *base, in cdns_regmap_init()
1740 struct regmap *regmap; in cdns_torrent_dp_regfield_init() local
1742 regmap = cdns_phy->regmap_dptx_phy_reg; in cdns_torrent_dp_regfield_init()
1743 field = devm_regmap_field_alloc(dev, regmap, phy_reset_ctrl); in cdns_torrent_dp_regfield_init()
1757 struct regmap *regmap; in cdns_torrent_regfield_init() local
1760 regmap = cdns_phy->regmap_phy_pcs_common_cdb; in cdns_torrent_regfield_init()
1761 field = devm_regmap_field_alloc(dev, regmap, phy_pll_cfg); in cdns_torrent_regfield_init()
1768 regmap = cdns_phy->regmap_phy_pma_common_cdb; in cdns_torrent_regfield_init()
1769 field = devm_regmap_field_alloc(dev, regmap, phy_pma_cmn_ctrl_1); in cdns_torrent_regfield_init()
1776 regmap = cdns_phy->regmap_phy_pma_common_cdb; in cdns_torrent_regfield_init()
1777 field = devm_regmap_field_alloc(dev, regmap, phy_pma_cmn_ctrl_2); in cdns_torrent_regfield_init()
1784 regmap = cdns_phy->regmap_phy_pma_common_cdb; in cdns_torrent_regfield_init()
1785 field = devm_regmap_field_alloc(dev, regmap, phy_pma_pll_raw_ctrl); in cdns_torrent_regfield_init()
1793 regmap = cdns_phy->regmap_phy_pcs_lane_cdb[i]; in cdns_torrent_regfield_init()
1794 field = devm_regmap_field_alloc(dev, regmap, phy_pcs_iso_link_ctrl_1); in cdns_torrent_regfield_init()
1809 struct regmap *regmap; in cdns_torrent_dp_regmap_init() local
1816 regmap = cdns_regmap_init(dev, base, block_offset, in cdns_torrent_dp_regmap_init()
1819 if (IS_ERR(regmap)) { in cdns_torrent_dp_regmap_init()
1820 dev_err(dev, "Failed to init DPTX PHY regmap\n"); in cdns_torrent_dp_regmap_init()
1821 return PTR_ERR(regmap); in cdns_torrent_dp_regmap_init()
1823 cdns_phy->regmap_dptx_phy_reg = regmap; in cdns_torrent_dp_regmap_init()
1833 struct regmap *regmap; in cdns_torrent_regmap_init() local
1843 regmap = cdns_regmap_init(dev, sd_base, block_offset, in cdns_torrent_regmap_init()
1846 if (IS_ERR(regmap)) { in cdns_torrent_regmap_init()
1847 dev_err(dev, "Failed to init tx lane CDB regmap\n"); in cdns_torrent_regmap_init()
1848 return PTR_ERR(regmap); in cdns_torrent_regmap_init()
1850 cdns_phy->regmap_tx_lane_cdb[i] = regmap; in cdns_torrent_regmap_init()
1854 regmap = cdns_regmap_init(dev, sd_base, block_offset, in cdns_torrent_regmap_init()
1857 if (IS_ERR(regmap)) { in cdns_torrent_regmap_init()
1858 dev_err(dev, "Failed to init rx lane CDB regmap\n"); in cdns_torrent_regmap_init()
1859 return PTR_ERR(regmap); in cdns_torrent_regmap_init()
1861 cdns_phy->regmap_rx_lane_cdb[i] = regmap; in cdns_torrent_regmap_init()
1865 regmap = cdns_regmap_init(dev, sd_base, block_offset, in cdns_torrent_regmap_init()
1868 if (IS_ERR(regmap)) { in cdns_torrent_regmap_init()
1869 dev_err(dev, "Failed to init PHY PCS lane CDB regmap\n"); in cdns_torrent_regmap_init()
1870 return PTR_ERR(regmap); in cdns_torrent_regmap_init()
1872 cdns_phy->regmap_phy_pcs_lane_cdb[i] = regmap; in cdns_torrent_regmap_init()
1876 regmap = cdns_regmap_init(dev, sd_base, block_offset, in cdns_torrent_regmap_init()
1879 if (IS_ERR(regmap)) { in cdns_torrent_regmap_init()
1880 dev_err(dev, "Failed to init common CDB regmap\n"); in cdns_torrent_regmap_init()
1881 return PTR_ERR(regmap); in cdns_torrent_regmap_init()
1883 cdns_phy->regmap_common_cdb = regmap; in cdns_torrent_regmap_init()
1886 regmap = cdns_regmap_init(dev, sd_base, block_offset, in cdns_torrent_regmap_init()
1889 if (IS_ERR(regmap)) { in cdns_torrent_regmap_init()
1890 dev_err(dev, "Failed to init PHY PCS common CDB regmap\n"); in cdns_torrent_regmap_init()
1891 return PTR_ERR(regmap); in cdns_torrent_regmap_init()
1893 cdns_phy->regmap_phy_pcs_common_cdb = regmap; in cdns_torrent_regmap_init()
1896 regmap = cdns_regmap_init(dev, sd_base, block_offset, in cdns_torrent_regmap_init()
1899 if (IS_ERR(regmap)) { in cdns_torrent_regmap_init()
1900 dev_err(dev, "Failed to init PHY PMA common CDB regmap\n"); in cdns_torrent_regmap_init()
1901 return PTR_ERR(regmap); in cdns_torrent_regmap_init()
1903 cdns_phy->regmap_phy_pma_common_cdb = regmap; in cdns_torrent_regmap_init()
1920 struct regmap *regmap; in cdns_torrent_phy_init() local
1939 regmap = cdns_phy->regmap_common_cdb; in cdns_torrent_phy_init()
1948 regmap_write(regmap, reg_pairs[i].off, in cdns_torrent_phy_init()
1957 regmap = cdns_phy->regmap_tx_lane_cdb[i + inst->mlane]; in cdns_torrent_phy_init()
1959 regmap_write(regmap, reg_pairs[j].off, in cdns_torrent_phy_init()
1969 regmap = cdns_phy->regmap_phy_pcs_common_cdb; in cdns_torrent_phy_init()
1971 regmap_write(regmap, reg_pairs[i].off, in cdns_torrent_phy_init()
1980 regmap = cdns_phy->regmap_common_cdb; in cdns_torrent_phy_init()
1982 regmap_write(regmap, reg_pairs[i].off, in cdns_torrent_phy_init()
1992 regmap = cdns_phy->regmap_tx_lane_cdb[i + inst->mlane]; in cdns_torrent_phy_init()
1994 regmap_write(regmap, reg_pairs[j].off, in cdns_torrent_phy_init()
2005 regmap = cdns_phy->regmap_rx_lane_cdb[i + inst->mlane]; in cdns_torrent_phy_init()
2007 regmap_write(regmap, reg_pairs[j].off, in cdns_torrent_phy_init()
2051 struct regmap *regmap; in cdns_torrent_phy_configure_multilink() local
2095 regmap = cdns_phy->regmap_common_cdb; in cdns_torrent_phy_configure_multilink()
2105 regmap_write(regmap, reg_pairs[i].off, in cdns_torrent_phy_configure_multilink()
2114 regmap = cdns_phy->regmap_tx_lane_cdb[i + mlane]; in cdns_torrent_phy_configure_multilink()
2116 regmap_write(regmap, reg_pairs[j].off, in cdns_torrent_phy_configure_multilink()
2126 regmap = cdns_phy->regmap_phy_pcs_common_cdb; in cdns_torrent_phy_configure_multilink()
2128 regmap_write(regmap, reg_pairs[i].off, in cdns_torrent_phy_configure_multilink()
2137 regmap = cdns_phy->regmap_common_cdb; in cdns_torrent_phy_configure_multilink()
2139 regmap_write(regmap, reg_pairs[i].off, in cdns_torrent_phy_configure_multilink()
2149 regmap = cdns_phy->regmap_tx_lane_cdb[i + mlane]; in cdns_torrent_phy_configure_multilink()
2151 regmap_write(regmap, reg_pairs[j].off, in cdns_torrent_phy_configure_multilink()
2162 regmap = cdns_phy->regmap_rx_lane_cdb[i + mlane]; in cdns_torrent_phy_configure_multilink()
2164 regmap_write(regmap, reg_pairs[j].off, in cdns_torrent_phy_configure_multilink()