Lines Matching refs:lane

349 static void usb3_reg_set16(u32 reg, u16 data, u16 mask, u32 lane)  in usb3_reg_set16()  argument
359 if (lane == 2) in usb3_reg_set16()
371 static int comphy_usb3_power_up(u32 lane, u32 type, u32 speed, u32 invert) in comphy_usb3_power_up() argument
391 usb3_reg_set16(LANE_CFG0, 0x1, 0xFF, lane); in comphy_usb3_power_up()
405 | gen2_tx_data_dly_mask | tx_elec_idle_mode_en, lane); in comphy_usb3_power_up()
408 usb3_reg_set16(LANE_CFG4, bf_spread_spectrum_clock_en, 0x80, lane); in comphy_usb3_power_up()
414 usb3_reg_set16(TEST_MODE_CTRL, rb_mode_margin_override, 0xFFFF, lane); in comphy_usb3_power_up()
418 usb3_reg_set16(GLOB_CLK_SRC_LO, 0x0, 0xFF, lane); in comphy_usb3_power_up()
421 usb3_reg_set16(GEN2_SETTINGS_2, g2_tx_ssc_amp, 0xF000, lane); in comphy_usb3_power_up()
427 usb3_reg_set16(GEN2_SETTINGS_3, 0x0, 0xFFFF, lane); in comphy_usb3_power_up()
436 usb3_reg_set16(PWR_PLL_CTRL, 0xFCA3, 0xFFFF, lane); in comphy_usb3_power_up()
437 usb3_reg_set16(PWR_MGM_TIM1, 0x10C, 0xFFFF, lane); in comphy_usb3_power_up()
440 usb3_reg_set16(PWR_PLL_CTRL, 0xFCA2, 0xFFFF, lane); in comphy_usb3_power_up()
441 usb3_reg_set16(PWR_MGM_TIM1, 0x107, 0xFFFF, lane); in comphy_usb3_power_up()
447 usb3_reg_set16(UNIT_CTRL, 0x60 | rb_idle_sync_en, 0xFFFF, lane); in comphy_usb3_power_up()
452 usb3_reg_set16(MISC_REG0, 0xA00D | rb_clk500m_en, 0xFFFF, lane); in comphy_usb3_power_up()
457 usb3_reg_set16(DIG_LB_EN, 0x0400, 0xFFFF, lane); in comphy_usb3_power_up()
463 lane); in comphy_usb3_power_up()
469 usb3_reg_set16(SYNC_PATTERN, phy_txd_inv, 0, lane); in comphy_usb3_power_up()
472 usb3_reg_set16(SYNC_PATTERN, phy_rxd_inv, 0, lane); in comphy_usb3_power_up()
477 usb3_reg_set16(SYNC_MASK_GEN, 0x0400, 0x0C00, lane); in comphy_usb3_power_up()
482 usb3_reg_set16(GEN3_SETTINGS_3, 0xF, 0xF, lane); in comphy_usb3_power_up()
489 | 0x20, 0xFFFF, lane); in comphy_usb3_power_up()
495 if (lane == 2) { in comphy_usb3_power_up()
673 static void comphy_sgmii_phy_init(u32 lane, u32 speed) in comphy_sgmii_phy_init() argument
698 reg_set16(sgmiiphy_addr(lane, addr), val, 0xFFFF); in comphy_sgmii_phy_init()
707 static int comphy_sgmii_power_up(u32 lane, u32 speed, u32 invert) in comphy_sgmii_power_up() argument
726 reg_set(COMPHY_PHY_CFG1_ADDR(lane), in comphy_sgmii_power_up()
734 reg_set(COMPHY_PHY_CFG1_ADDR(lane), 0, rb_pin_reset_comphy); in comphy_sgmii_power_up()
741 reg_set(COMPHY_PHY_CFG1_ADDR(lane), in comphy_sgmii_power_up()
747 reg_set(COMPHY_PHY_CFG1_ADDR(lane), in comphy_sgmii_power_up()
763 reg_set16(sgmiiphy_addr(lane, PWR_PLL_CTRL), in comphy_sgmii_power_up()
770 reg_set16(sgmiiphy_addr(lane, MISC_REG0), 0, rb_ref_clk_sel); in comphy_sgmii_power_up()
777 reg_set16(sgmiiphy_addr(lane, PWR_PLL_CTRL), in comphy_sgmii_power_up()
781 reg_set16(sgmiiphy_addr(lane, PWR_PLL_CTRL), in comphy_sgmii_power_up()
798 reg_set16(sgmiiphy_addr(lane, DIG_LB_EN), 0, rf_data_width_mask); in comphy_sgmii_power_up()
824 comphy_sgmii_phy_init(lane, speed); in comphy_sgmii_power_up()
841 reg_set16(sgmiiphy_addr(lane, SYNC_PATTERN), phy_txd_inv, 0); in comphy_sgmii_power_up()
844 reg_set16(sgmiiphy_addr(lane, SYNC_PATTERN), phy_rxd_inv, 0); in comphy_sgmii_power_up()
852 reg_set(COMPHY_PHY_CFG1_ADDR(lane), in comphy_sgmii_power_up()
860 ret = comphy_poll_reg(COMPHY_PHY_STAT1_ADDR(lane), /* address */ in comphy_sgmii_power_up()
865 printf("Failed to lock PLL for SGMII PHY %d\n", lane); in comphy_sgmii_power_up()
870 reg_set(COMPHY_PHY_CFG1_ADDR(lane), 0x0, rb_pin_tx_idle); in comphy_sgmii_power_up()
880 reg_set(COMPHY_PHY_CFG1_ADDR(lane), rb_phy_rx_init, 0x0); in comphy_sgmii_power_up()
882 ret = comphy_poll_reg(COMPHY_PHY_STAT1_ADDR(lane), /* address */ in comphy_sgmii_power_up()
887 printf("Failed to init RX of SGMII PHY %d\n", lane); in comphy_sgmii_power_up()
964 u32 lane, ret = 0; in comphy_a3700_init() local
972 for (lane = 0, comphy_map = serdes_map; lane < comphy_max_count; in comphy_a3700_init()
973 lane++, comphy_map++) { in comphy_a3700_init()
974 debug("Initialize serdes number %d\n", lane); in comphy_a3700_init()
990 ret = comphy_usb3_power_up(lane, in comphy_a3700_init()
998 ret = comphy_sgmii_power_up(lane, comphy_map->speed, in comphy_a3700_init()
1008 lane); in comphy_a3700_init()
1014 lane); in comphy_a3700_init()