Lines Matching refs:dpmac_id
524 void ls1088a_handle_phy_interface_sgmii(int dpmac_id) in ls1088a_handle_phy_interface_sgmii() argument
548 switch (dpmac_id) { in ls1088a_handle_phy_interface_sgmii()
550 wriop_set_phy_address(dpmac_id, 0, riser_phy_addr[1]); in ls1088a_handle_phy_interface_sgmii()
553 wriop_set_phy_address(dpmac_id, 0, riser_phy_addr[0]); in ls1088a_handle_phy_interface_sgmii()
556 wriop_set_phy_address(dpmac_id, 0, riser_phy_addr[3]); in ls1088a_handle_phy_interface_sgmii()
559 wriop_set_phy_address(dpmac_id, 0, riser_phy_addr[2]); in ls1088a_handle_phy_interface_sgmii()
562 printf("WRIOP: Wrong DPMAC%d set to SGMII", dpmac_id); in ls1088a_handle_phy_interface_sgmii()
571 dpmac_info[dpmac_id].board_mux = EMI1_SLOT1; in ls1088a_handle_phy_interface_sgmii()
573 wriop_set_mdio(dpmac_id, bus); in ls1088a_handle_phy_interface_sgmii()
576 void ls1088a_handle_phy_interface_qsgmii(int dpmac_id) in ls1088a_handle_phy_interface_qsgmii() argument
590 switch (dpmac_id) { in ls1088a_handle_phy_interface_qsgmii()
595 wriop_set_phy_address(dpmac_id, 0, dpmac_id + 9); in ls1088a_handle_phy_interface_qsgmii()
601 wriop_set_phy_address(dpmac_id, 0, dpmac_id + 1); in ls1088a_handle_phy_interface_qsgmii()
605 dpmac_info[dpmac_id].board_mux = EMI1_SLOT1; in ls1088a_handle_phy_interface_qsgmii()
607 wriop_set_mdio(dpmac_id, bus); in ls1088a_handle_phy_interface_qsgmii()
640 static void ls1088a_handle_phy_interface_rgmii(int dpmac_id) in ls1088a_handle_phy_interface_rgmii() argument
651 switch (dpmac_id) { in ls1088a_handle_phy_interface_rgmii()
653 wriop_set_phy_address(dpmac_id, 0, RGMII_PHY1_ADDR); in ls1088a_handle_phy_interface_rgmii()
654 dpmac_info[dpmac_id].board_mux = EMI1_RGMII1; in ls1088a_handle_phy_interface_rgmii()
656 wriop_set_mdio(dpmac_id, bus); in ls1088a_handle_phy_interface_rgmii()
659 wriop_set_phy_address(dpmac_id, 0, RGMII_PHY2_ADDR); in ls1088a_handle_phy_interface_rgmii()
660 dpmac_info[dpmac_id].board_mux = EMI1_RGMII2; in ls1088a_handle_phy_interface_rgmii()
662 wriop_set_mdio(dpmac_id, bus); in ls1088a_handle_phy_interface_rgmii()