Lines Matching refs:lane

610 static void comphy_sgmii_phy_init(u32 lane, u32 speed)  in comphy_sgmii_phy_init()  argument
635 phy_write16(lane, addr, val, 0xFFFF); in comphy_sgmii_phy_init()
644 static int comphy_sgmii_power_up(u32 lane, u32 speed, u32 invert) in comphy_sgmii_power_up() argument
653 reg_set((void __iomem *)COMPHY_SEL_ADDR, 0, rf_compy_select(lane)); in comphy_sgmii_power_up()
661 reg_set((void __iomem *)COMPHY_PHY_CFG1_ADDR(lane), in comphy_sgmii_power_up()
669 reg_set((void __iomem *)COMPHY_PHY_CFG1_ADDR(lane), in comphy_sgmii_power_up()
677 reg_set((void __iomem *)COMPHY_PHY_CFG1_ADDR(lane), in comphy_sgmii_power_up()
683 reg_set((void __iomem *)COMPHY_PHY_CFG1_ADDR(lane), in comphy_sgmii_power_up()
699 phy_write16(lane, PHY_PWR_PLL_CTRL_ADDR, in comphy_sgmii_power_up()
706 phy_write16(lane, PHY_MISC_REG0_ADDR, 0, rb_ref_clk_sel); in comphy_sgmii_power_up()
713 phy_write16(lane, PHY_PWR_PLL_CTRL_ADDR, in comphy_sgmii_power_up()
717 phy_write16(lane, PHY_PWR_PLL_CTRL_ADDR, in comphy_sgmii_power_up()
734 phy_write16(lane, PHY_DIG_LB_EN_ADDR, 0, rf_data_width_mask); in comphy_sgmii_power_up()
760 comphy_sgmii_phy_init(lane, speed); in comphy_sgmii_power_up()
777 phy_write16(lane, PHY_SYNC_PATTERN_ADDR, phy_txd_inv, 0); in comphy_sgmii_power_up()
780 phy_write16(lane, PHY_SYNC_PATTERN_ADDR, phy_rxd_inv, 0); in comphy_sgmii_power_up()
788 reg_set((void __iomem *)COMPHY_PHY_CFG1_ADDR(lane), in comphy_sgmii_power_up()
796 ret = comphy_poll_reg((void *)COMPHY_PHY_STAT1_ADDR(lane), /* address */ in comphy_sgmii_power_up()
802 printf("Failed to lock PLL for SGMII PHY %d\n", lane); in comphy_sgmii_power_up()
807 reg_set((void __iomem *)COMPHY_PHY_CFG1_ADDR(lane), in comphy_sgmii_power_up()
818 reg_set((void __iomem *)COMPHY_PHY_CFG1_ADDR(lane), rb_phy_rx_init, in comphy_sgmii_power_up()
821 ret = comphy_poll_reg((void *)COMPHY_PHY_STAT1_ADDR(lane), /* address */ in comphy_sgmii_power_up()
827 printf("Failed to init RX of SGMII PHY %d\n", lane); in comphy_sgmii_power_up()
915 u32 lane, ret = 0; in comphy_a3700_init() local
919 for (lane = 0, comphy_map = serdes_map; lane < comphy_max_count; in comphy_a3700_init()
920 lane++, comphy_map++) { in comphy_a3700_init()
921 debug("Initialize serdes number %d\n", lane); in comphy_a3700_init()
944 ret = comphy_sgmii_power_up(lane, comphy_map->speed, in comphy_a3700_init()
950 lane); in comphy_a3700_init()
956 lane); in comphy_a3700_init()