Lines Matching +full:5 +full:gbase +full:- +full:kr
1 // SPDX-License-Identifier: GPL-2.0+
38 #define EMI1_SLOT5 5
43 #define EMI1_SLOT5 5
134 struct t208xqds_mdio *priv = bus->priv; in t208xqds_mdio_read()
136 t208xqds_mux_mdio(priv->muxval); in t208xqds_mdio_read()
138 return priv->realbus->read(priv->realbus, addr, devad, regnum); in t208xqds_mdio_read()
144 struct t208xqds_mdio *priv = bus->priv; in t208xqds_mdio_write()
146 t208xqds_mux_mdio(priv->muxval); in t208xqds_mdio_write()
148 return priv->realbus->write(priv->realbus, addr, devad, regnum, value); in t208xqds_mdio_write()
153 struct t208xqds_mdio *priv = bus->priv; in t208xqds_mdio_reset()
155 return priv->realbus->reset(priv->realbus); in t208xqds_mdio_reset()
165 return -1; in t208xqds_mdio_init()
172 return -1; in t208xqds_mdio_init()
175 bus->read = t208xqds_mdio_read; in t208xqds_mdio_init()
176 bus->write = t208xqds_mdio_write; in t208xqds_mdio_init()
177 bus->reset = t208xqds_mdio_reset; in t208xqds_mdio_init()
178 strcpy(bus->name, t208xqds_mdio_name_for_muxval(muxval)); in t208xqds_mdio_init()
180 pmdio->realbus = miiphy_get_dev_by_name(realbusname); in t208xqds_mdio_init()
182 if (!pmdio->realbus) { in t208xqds_mdio_init()
186 return -1; in t208xqds_mdio_init()
189 pmdio->muxval = muxval; in t208xqds_mdio_init()
190 bus->priv = pmdio; in t208xqds_mdio_init()
199 char lane_mode[2][20] = {"1000BASE-KX", "10GBASE-KR"}; in board_ft_fman_fixup_port()
200 char buf[32] = "serdes-1,"; in board_ft_fman_fixup_port()
209 u32 srds1_pccr1 = in_be32(&srds_regs->srdspccr1); in board_ft_fman_fixup_port()
211 u32 srds_s1 = in_be32(&gur->rcwsr[4]) & in board_ft_fman_fixup_port()
226 sprintf(buf, "%s%s%s", buf, "lane-c,", in board_ft_fman_fixup_port()
228 out_be32(&srds_regs->srdspccr1, srds1_pccr1 | in board_ft_fman_fixup_port()
238 sprintf(buf, "%s%s%s", buf, "lane-d,", in board_ft_fman_fixup_port()
240 out_be32(&srds_regs->srdspccr1, srds1_pccr1 | in board_ft_fman_fixup_port()
250 sprintf(buf, "%s%s%s", buf, "lane-a,", in board_ft_fman_fixup_port()
252 out_be32(&srds_regs->srdspccr1, srds1_pccr1 | in board_ft_fman_fixup_port()
263 sprintf(buf, "%s%s%s", buf, "lane-b,", in board_ft_fman_fixup_port()
265 out_be32(&srds_regs->srdspccr1, srds1_pccr1 | in board_ft_fman_fixup_port()
285 sprintf(buf, "%s%s%s", buf, "lane-g,", in board_ft_fman_fixup_port()
287 out_be32(&srds_regs->srdspccr1, srds1_pccr1 | in board_ft_fman_fixup_port()
297 sprintf(buf, "%s%s%s", buf, "lane-h,", in board_ft_fman_fixup_port()
299 out_be32(&srds_regs->srdspccr1, srds1_pccr1 | in board_ft_fman_fixup_port()
347 /* set property for 1000BASE-KX in dtb */ in board_ft_fman_fixup_port()
349 "fsl,fman-memac-mdio", addr + 0x1000); in board_ft_fman_fixup_port()
350 fdt_setprop_string(fdt, off, "lane-instance", buf); in board_ft_fman_fixup_port()
373 sprintf(buf, "%s%s%s", buf, "lane-a,", in board_ft_fman_fixup_port()
384 sprintf(buf, "%s%s%s", buf, "lane-b,", in board_ft_fman_fixup_port()
395 sprintf(buf, "%s%s%s", buf, "lane-c,", in board_ft_fman_fixup_port()
406 sprintf(buf, "%s%s%s", buf, "lane-d,", in board_ft_fman_fixup_port()
415 /* fixed-link is used for XFI fiber cable */ in board_ft_fman_fixup_port()
421 fdt_delprop(fdt, offset, "phy-handle"); in board_ft_fman_fixup_port()
422 fdt_setprop(fdt, offset, "fixed-link", &f_link, in board_ft_fman_fixup_port()
427 "fsl,fman-memac-mdio", addr + 0x1000); in board_ft_fman_fixup_port()
429 "lane-instance", buf); in board_ft_fman_fixup_port()
445 * to slot 1/2/3/4/5/6/7 and update the lane_to_slot[] array accordingly
450 u32 srds_s1 = in_be32(&gur->rcwsr[4]) & in initialize_lane_to_slot()
462 lane_to_slot[5] = 2; in initialize_lane_to_slot()
479 lane_to_slot[5] = 3; in initialize_lane_to_slot()
486 lane_to_slot[5] = 3; in initialize_lane_to_slot()
494 lane_to_slot[3] = 5; in initialize_lane_to_slot()
495 lane_to_slot[5] = 3; in initialize_lane_to_slot()
503 lane_to_slot[5] = 4; in initialize_lane_to_slot()
520 u32 rcwsr13 = in_be32(&gur->rcwsr[13]); in board_eth_init()
523 srds_s1 = in_be32(&gur->rcwsr[4]) & in board_eth_init()
548 /* Register the muxing front-ends to the MDIO buses */ in board_eth_init()
564 /* Set the two on-board RGMII PHY address */ in board_eth_init()
602 * XFI does not need a PHY to work, but to avoid U-Boot use in board_eth_init()
611 fm_info_set_phy_address(FM1_10GEC2, 5); in board_eth_init()
618 fm_info_set_phy_address(FM1_10GEC2, 5); in board_eth_init()
628 fm_info_set_phy_address(FM1_10GEC2, 5); in board_eth_init()
703 idx = i - FM1_DTSEC1; in board_eth_init()
714 if (QIXIS_READ(present2) & (1 << (slot - 1))) in board_eth_init()
734 case 5: in board_eth_init()
765 idx = i - FM1_10GEC1; in board_eth_init()
799 if (QIXIS_READ(present2) & (1 << (slot - 1))) in board_eth_init()