Lines Matching +full:0 +full:x50020000
46 #define mk_mii_read(REG) (0x60020000 | ((REG & 0x1f) << 18))
47 #define mk_mii_write(REG, VAL) (0x50020000 | ((REG & 0x1f) << 18) | (VAL & 0xffff))
48 #define mk_mii_end 0
58 BUG_ON((in_be32(&fecp->fec_r_cntrl) & FEC_RCNTRL_MII_MODE) == 0); in fs_enet_fec_mii_read()
63 for (i = 0; i < FEC_MII_LOOPS; i++) in fs_enet_fec_mii_read()
64 if ((in_be32(&fecp->fec_ievent) & FEC_ENET_MII) != 0) in fs_enet_fec_mii_read()
69 ret = in_be32(&fecp->fec_mii_data) & 0xffff; in fs_enet_fec_mii_read()
82 BUG_ON((in_be32(&fecp->fec_r_cntrl) & FEC_RCNTRL_MII_MODE) == 0); in fs_enet_fec_mii_write()
87 for (i = 0; i < FEC_MII_LOOPS; i++) in fs_enet_fec_mii_write()
88 if ((in_be32(&fecp->fec_ievent) & FEC_ENET_MII) != 0) in fs_enet_fec_mii_write()
94 return 0; in fs_enet_fec_mii_write()
126 ret = of_address_to_resource(ofdev->dev.of_node, 0, &res); in fs_enet_mdio_probe()
143 clock = 0x3F * 5000000; in fs_enet_mdio_probe()
153 if (speed > 0x3F) { in fs_enet_mdio_probe()
154 speed = 0x3F; in fs_enet_mdio_probe()
166 clrsetbits_be32(&fec->fecp->fec_mii_speed, 0x7E, fec->mii_speed); in fs_enet_mdio_probe()
168 new_bus->phy_mask = ~0; in fs_enet_mdio_probe()
177 return 0; in fs_enet_mdio_probe()
200 return 0; in fs_enet_mdio_remove()