/u-boot/drivers/net/ldpaa_eth/ |
A D | ldpaa_wriop.c | 27 dpmac_info[dpmac_id].enabled = 0; in wriop_init_dpmac() 28 dpmac_info[dpmac_id].id = 0; 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() 47 dpmac_info[dpmac_id].enabled = 1; in wriop_init_dpmac_enet_if() 48 dpmac_info[dpmac_id].id = dpmac_id; in wriop_init_dpmac_enet_if() 63 if (dpmac_info[i].id == dpmac_id) in wriop_dpmac_to_index() 70 int wriop_disable_dpmac(int dpmac_id) in wriop_disable_dpmac() argument 78 wriop_dpmac_disable(dpmac_id); in wriop_disable_dpmac() 83 int wriop_enable_dpmac(int dpmac_id) in wriop_enable_dpmac() argument [all …]
|
A D | lx2160a.c | 34 static int is_device_disabled(int dpmac_id) in is_device_disabled() argument 39 return dpmac_to_devdisr[dpmac_id] & devdisr2; in is_device_disabled() 42 void wriop_dpmac_disable(int dpmac_id) in wriop_dpmac_disable() argument 46 setbits_le32(&gur->devdisr2, dpmac_to_devdisr[dpmac_id]); in wriop_dpmac_disable() 49 void wriop_dpmac_enable(int dpmac_id) in wriop_dpmac_enable() argument 53 clrbits_le32(&gur->devdisr2, dpmac_to_devdisr[dpmac_id]); in wriop_dpmac_enable() 56 phy_interface_t wriop_dpmac_enet_if(int dpmac_id, int lane_prtcl) in wriop_dpmac_enet_if() argument 60 if (is_device_disabled(dpmac_id)) in wriop_dpmac_enet_if()
|
A D | ls1088a.c | 26 static int is_device_disabled(int dpmac_id) in is_device_disabled() argument 31 return dpmac_to_devdisr[dpmac_id] & devdisr2; in is_device_disabled() 34 void wriop_dpmac_disable(int dpmac_id) in wriop_dpmac_disable() argument 38 setbits_le32(&gur->devdisr2, dpmac_to_devdisr[dpmac_id]); in wriop_dpmac_disable() 41 void wriop_dpmac_enable(int dpmac_id) in wriop_dpmac_enable() argument 45 clrbits_le32(&gur->devdisr2, dpmac_to_devdisr[dpmac_id]); in wriop_dpmac_enable() 48 phy_interface_t wriop_dpmac_enet_if(int dpmac_id, int lane_prtcl) in wriop_dpmac_enet_if() argument 52 if (is_device_disabled(dpmac_id + 1)) in wriop_dpmac_enet_if()
|
A 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()
|
A D | ldpaa_eth.c | 48 bus = wriop_get_mdio(priv->dpmac_id); in init_phy() 58 wriop_get_enet_if(priv->dpmac_id)); in init_phy() 696 priv->dpmac_id); 886 dpmac_cfg.mac_id = priv->dpmac_id; 891 &priv->dpmac_id); 903 priv->dpmac_id, 938 dpmac_endpoint.id = priv->dpmac_id; 1140 uint32_t dpmac_id; local 1152 dpmac_id = ldpaa_eth_get_dpmac_id(dev); 1153 if (dpmac_id == -1) { [all …]
|
A D | ldpaa_eth.h | 126 uint32_t dpmac_id; member
|
/u-boot/include/fsl-mc/ |
A D | ldpaa_wriop.h | 55 void wriop_init_dpmac(int sd, int dpmac_id, int lane_prtcl); 57 int wriop_disable_dpmac(int dpmac_id); 58 int wriop_enable_dpmac(int dpmac_id); 59 int wriop_is_enabled_dpmac(int dpmac_id); 60 int wriop_set_mdio(int dpmac_id, struct mii_dev *bus); 61 struct mii_dev *wriop_get_mdio(int dpmac_id); 63 int wriop_get_phy_address(int dpmac_id, int phy_num); 65 struct phy_device *wriop_get_phy_dev(int dpmac_id, int phy_num); 66 phy_interface_t wriop_get_enet_if(int dpmac_id); 68 void wriop_dpmac_disable(int dpmac_id); [all …]
|
A 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,
|
A D | fsl_mc_private.h | 83 int ldpaa_eth_init(int dpmac_id, phy_interface_t enet_if);
|
/u-boot/board/freescale/ls2080aqds/ |
A D | eth.c | 148 dpmac_id = dpmac + 1; in sgmii_configure_repeater() 152 dpmac_id = dpmac + 9; in sgmii_configure_repeater() 234 dpmac_id); in sgmii_configure_repeater() 241 dpmac_id); in sgmii_configure_repeater() 675 if (dpmac_id > WRIOP1_DPMAC9) in ls2080a_handle_phy_interface_sgmii() 693 wriop_set_mdio(dpmac_id, bus); in ls2080a_handle_phy_interface_sgmii() 701 wriop_set_mdio(dpmac_id, bus); in ls2080a_handle_phy_interface_sgmii() 723 wriop_set_mdio(dpmac_id, bus); in ls2080a_handle_phy_interface_sgmii() 747 (dpmac_id - 9)); in ls2080a_handle_phy_interface_sgmii() 809 switch (dpmac_id) { in ls2080a_handle_phy_interface_qsgmii() [all …]
|
/u-boot/board/freescale/ls1088a/ |
A D | eth_ls1088aqds.c | 548 switch (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() 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() 651 switch (dpmac_id) { in ls1088a_handle_phy_interface_rgmii() 656 wriop_set_mdio(dpmac_id, bus); in ls1088a_handle_phy_interface_rgmii() [all …]
|
/u-boot/board/freescale/lx2160a/ |
A D | eth_lx2162aqds.c | 633 sprintf(dpmac_str, "dpmac@%x", dpmac_id); in fdt_fixup_dpmac_phy_handle() 782 #define is_rgmii(dpmac_id) \ argument 790 int ret, dpmac_id, phandle, i; in fdt_fixup_board_phy() local 827 dpmac_id = WRIOP1_DPMAC1; in fdt_fixup_board_phy() 828 while (dpmac_id < NUM_WRIOP_PORTS) { in fdt_fixup_board_phy() 831 dpmac_id, in fdt_fixup_board_phy() 835 dpmac_id++; in fdt_fixup_board_phy() 837 if (dpmac_id == NUM_WRIOP_PORTS) in fdt_fixup_board_phy() 840 if ((dpmac_id == 17 || dpmac_id == 18) && in fdt_fixup_board_phy() 841 is_rgmii(dpmac_id)) in fdt_fixup_board_phy() [all …]
|
A D | eth_lx2160aqds.c | 624 sprintf(dpmac_str, "dpmac@%x", dpmac_id); in fdt_fixup_dpmac_phy_handle() 636 printf("Interface %d in backplane KR mode\n", dpmac_id); in fdt_fixup_dpmac_phy_handle() 644 phy_string = phy_string_for_interface(wriop_get_enet_if(dpmac_id)); in fdt_fixup_dpmac_phy_handle() 778 int ret, dpmac_id, phandle, i; in fdt_fixup_board_phy() local 815 dpmac_id = WRIOP1_DPMAC1; in fdt_fixup_board_phy() 816 while (dpmac_id < NUM_WRIOP_PORTS) { in fdt_fixup_board_phy() 817 phy_iface = wriop_get_enet_if(dpmac_id); in fdt_fixup_board_phy() 819 dpmac_id, in fdt_fixup_board_phy() 823 dpmac_id++; in fdt_fixup_board_phy() 825 if (dpmac_id == NUM_WRIOP_PORTS) in fdt_fixup_board_phy() [all …]
|
/u-boot/drivers/net/fsl-mc/ |
A D | dpmac.c | 16 int dpmac_id, in dpmac_open() argument 26 DPMAC_CMD_OPEN(cmd, dpmac_id); in dpmac_open()
|
A D | mc.c | 267 static int mc_fixup_dpl_mac_addr(void *blob, int dpmac_id, in mc_fixup_dpl_mac_addr() argument 280 sprintf(mac_name, "dpmac@%d", dpmac_id); in mc_fixup_dpl_mac_addr() 370 static int mc_fixup_dpc_mac_addr(void *blob, int dpmac_id, in mc_fixup_dpc_mac_addr() argument 382 sprintf(mac_name, "mac@%d", dpmac_id); in mc_fixup_dpc_mac_addr()
|