/external/u-boot/drivers/net/ldpaa_eth/ |
D | ldpaa_wriop.c | 17 __weak phy_interface_t wriop_dpmac_enet_if(int dpmac_id, int lane_prtc) in wriop_dpmac_enet_if() argument 22 void wriop_init_dpmac(int sd, int dpmac_id, int lane_prtcl) in wriop_init_dpmac() argument 26 dpmac_info[dpmac_id].enabled = 0; in wriop_init_dpmac() 27 dpmac_info[dpmac_id].id = 0; in wriop_init_dpmac() 28 dpmac_info[dpmac_id].phy_addr = -1; in wriop_init_dpmac() 29 dpmac_info[dpmac_id].enet_if = PHY_INTERFACE_MODE_NONE; in wriop_init_dpmac() 31 enet_if = wriop_dpmac_enet_if(dpmac_id, lane_prtcl); in wriop_init_dpmac() 33 dpmac_info[dpmac_id].enabled = 1; in wriop_init_dpmac() 34 dpmac_info[dpmac_id].id = dpmac_id; in wriop_init_dpmac() 35 dpmac_info[dpmac_id].enet_if = enet_if; in wriop_init_dpmac() [all …]
|
D | ls1088a.c | 25 static int is_device_disabled(int dpmac_id) in is_device_disabled() argument 30 return dpmac_to_devdisr[dpmac_id] & devdisr2; in is_device_disabled() 33 void wriop_dpmac_disable(int dpmac_id) in wriop_dpmac_disable() argument 37 setbits_le32(&gur->devdisr2, dpmac_to_devdisr[dpmac_id]); in wriop_dpmac_disable() 40 void wriop_dpmac_enable(int dpmac_id) in wriop_dpmac_enable() argument 44 clrbits_le32(&gur->devdisr2, dpmac_to_devdisr[dpmac_id]); in wriop_dpmac_enable() 47 phy_interface_t wriop_dpmac_enet_if(int dpmac_id, int lane_prtcl) in wriop_dpmac_enet_if() argument 51 if (is_device_disabled(dpmac_id + 1)) in wriop_dpmac_enet_if()
|
D | ls2080a.c | 38 static int is_device_disabled(int dpmac_id) in is_device_disabled() argument 43 return dpmac_to_devdisr[dpmac_id] & devdisr2; in is_device_disabled() 46 void wriop_dpmac_disable(int dpmac_id) in wriop_dpmac_disable() argument 50 setbits_le32(&gur->devdisr2, dpmac_to_devdisr[dpmac_id]); in wriop_dpmac_disable() 53 void wriop_dpmac_enable(int dpmac_id) in wriop_dpmac_enable() argument 57 clrbits_le32(&gur->devdisr2, dpmac_to_devdisr[dpmac_id]); in wriop_dpmac_enable() 60 phy_interface_t wriop_dpmac_enet_if(int dpmac_id, int lane_prtcl) in wriop_dpmac_enet_if() argument 64 if (is_device_disabled(dpmac_id + 1)) in wriop_dpmac_enet_if()
|
D | ldpaa_eth.c | 27 bus = wriop_get_mdio(priv->dpmac_id); in init_phy() 31 phydev = phy_connect(bus, wriop_get_phy_address(priv->dpmac_id), in init_phy() 32 dev, wriop_get_enet_if(priv->dpmac_id)); in init_phy() 428 bus = wriop_get_mdio(priv->dpmac_id); in ldpaa_eth_open() 429 enet_if = wriop_get_enet_if(priv->dpmac_id); in ldpaa_eth_open() 547 MC_CMD_NO_FLAGS, priv->dpmac_id); in ldpaa_eth_open() 557 struct mii_dev *bus = wriop_get_mdio(priv->dpmac_id); in ldpaa_eth_stop() 581 priv->dpmac_id); in ldpaa_eth_stop() 776 dpmac_cfg.mac_id = priv->dpmac_id; in ldpaa_dpmac_setup() 781 &priv->dpmac_id); in ldpaa_dpmac_setup() [all …]
|
D | ldpaa_eth.h | 120 uint32_t dpmac_id; member
|
/external/u-boot/board/freescale/ls2080aqds/ |
D | eth.c | 97 int dpmac_id = 0, dpmac, mii_bus = 0; in sgmii_configure_repeater() local 117 dpmac_id = dpmac + 1; in sgmii_configure_repeater() 121 dpmac_id = dpmac + 9; in sgmii_configure_repeater() 148 printf("DPMAC %d:PHY is ..... Configured\n", dpmac_id); in sgmii_configure_repeater() 195 dpmac_id); in sgmii_configure_repeater() 202 dpmac_id); in sgmii_configure_repeater() 212 printf("DPMAC %d ..... FAILED to configure PHY\n", dpmac_id); in sgmii_configure_repeater() 592 void ls2080a_handle_phy_interface_sgmii(int dpmac_id) in ls2080a_handle_phy_interface_sgmii() argument 612 if (dpmac_id > WRIOP1_DPMAC9) in ls2080a_handle_phy_interface_sgmii() 619 lane = serdes_get_first_lane(FSL_SRDS_1, SGMII1 + dpmac_id - 1); in ls2080a_handle_phy_interface_sgmii() [all …]
|
/external/u-boot/board/freescale/ls1088a/ |
D | eth_ls1088aqds.c | 464 void ls1088a_handle_phy_interface_sgmii(int dpmac_id) in ls1088a_handle_phy_interface_sgmii() argument 488 switch (dpmac_id) { in ls1088a_handle_phy_interface_sgmii() 490 wriop_set_phy_address(dpmac_id, riser_phy_addr[1]); in ls1088a_handle_phy_interface_sgmii() 493 wriop_set_phy_address(dpmac_id, riser_phy_addr[0]); in ls1088a_handle_phy_interface_sgmii() 496 wriop_set_phy_address(dpmac_id, riser_phy_addr[3]); in ls1088a_handle_phy_interface_sgmii() 499 wriop_set_phy_address(dpmac_id, riser_phy_addr[2]); in ls1088a_handle_phy_interface_sgmii() 502 printf("WRIOP: Wrong DPMAC%d set to SGMII", dpmac_id); in ls1088a_handle_phy_interface_sgmii() 511 dpmac_info[dpmac_id].board_mux = EMI1_SLOT1; in ls1088a_handle_phy_interface_sgmii() 513 wriop_set_mdio(dpmac_id, bus); in ls1088a_handle_phy_interface_sgmii() 516 void ls1088a_handle_phy_interface_qsgmii(int dpmac_id) in ls1088a_handle_phy_interface_qsgmii() argument [all …]
|
/external/u-boot/include/fsl-mc/ |
D | fsl_dpmac.h | 38 #define DPMAC_CMD_OPEN(cmd, dpmac_id) \ argument 39 MC_CMD_OP(cmd, 0, 0, 32, int, dpmac_id) 118 int dpmac_id,
|
D | fsl_mc_private.h | 69 int ldpaa_eth_init(int dpmac_id, phy_interface_t enet_if);
|
D | ldpaa_wriop.h | 58 u8 wriop_is_enabled_dpmac(int dpmac_id);
|
/external/u-boot/drivers/net/fsl-mc/ |
D | dpmac.c | 16 int dpmac_id, in dpmac_open() argument 26 DPMAC_CMD_OPEN(cmd, dpmac_id); in dpmac_open()
|
D | mc.c | 241 static int mc_fixup_dpl_mac_addr(void *blob, int dpmac_id, in mc_fixup_dpl_mac_addr() argument 250 sprintf(mac_name, "dpmac@%d", dpmac_id); in mc_fixup_dpl_mac_addr() 281 static int mc_fixup_dpc_mac_addr(void *blob, int dpmac_id, in mc_fixup_dpc_mac_addr() argument 289 sprintf(mac_name, "mac@%d", dpmac_id); in mc_fixup_dpc_mac_addr()
|