sungem_phy_write
sungem_phy_write(gp, MII_BMCR, BMCR_RESET);
sungem_phy_write(phy, MII_BCM5201_INTERRUPT, 0);
sungem_phy_write(phy, MII_BCM5201_MULTIPHY, MII_BCM5201_MULTIPHY_SUPERISOLATE);
sungem_phy_write(phy, MII_BCM5221_TEST,
sungem_phy_write(phy, MII_BCM5221_SHDOW_AUX_STAT2,
sungem_phy_write(phy, MII_BCM5221_SHDOW_AUX_MODE4,
sungem_phy_write(phy, MII_BCM5221_TEST,
sungem_phy_write(phy, MII_BCM5221_TEST,
sungem_phy_write(phy, MII_BCM5221_SHDOW_AUX_MODE4,
sungem_phy_write(phy, MII_BCM5221_TEST,
sungem_phy_write(phy, MII_BCM5221_SHDOW_AUX_STAT2,
sungem_phy_write(phy, MII_BCM5221_SHDOW_AUX_MODE4,
sungem_phy_write(phy, MII_BCM5221_TEST,
sungem_phy_write(phy, MII_BCM5221_TEST,
sungem_phy_write(phy, MII_BCM5221_SHDOW_AUX_MODE4,
sungem_phy_write(phy, MII_BCM5400_AUXCONTROL, data);
sungem_phy_write(phy, MII_BCM5400_GB_CONTROL, data);
sungem_phy_write(phy, MII_BCM5400_AUXCONTROL, data);
sungem_phy_write(phy, MII_BMCR, BMCR_PDOWN);
sungem_phy_write(phy, 0x18, 0x0c20);
sungem_phy_write(phy, 0x17, 0x0012);
sungem_phy_write(phy, 0x15, 0x1804);
sungem_phy_write(phy, 0x17, 0x0013);
sungem_phy_write(phy, 0x15, 0x1204);
sungem_phy_write(phy, 0x17, 0x8006);
sungem_phy_write(phy, 0x15, 0x0132);
sungem_phy_write(phy, 0x17, 0x8006);
sungem_phy_write(phy, 0x15, 0x0232);
sungem_phy_write(phy, 0x17, 0x201f);
sungem_phy_write(phy, 0x15, 0x0a20);
sungem_phy_write(phy, MII_BCM5400_GB_CONTROL, data);
sungem_phy_write(phy, MII_BMCR, BMCR_PDOWN);
sungem_phy_write(phy, 0x1c, 0x8c23);
sungem_phy_write(phy, 0x1c, 0x8ca3);
sungem_phy_write(phy, 0x1c, 0x8c23);
sungem_phy_write(phy, MII_BMCR, BMCR_RESET);
sungem_phy_write(phy, MII_BMCR, 0x1340);
sungem_phy_write(phy, MII_BCM5400_GB_CONTROL, data);
sungem_phy_write(phy, MII_ADVERTISE, adv);
sungem_phy_write(phy, MII_BMCR, ctl);
sungem_phy_write(phy, MII_BMCR, ctl | BMCR_RESET);
sungem_phy_write(phy, MII_BMCR, ctl);
sungem_phy_write(phy, MII_BMCR, BMCR_PDOWN);
sungem_phy_write(phy, 0x18, 0x1007);
sungem_phy_write(phy, 0x18, data | 0x0400);
sungem_phy_write(phy, 0x18, 0x0007);
sungem_phy_write(phy, 0x18, data | 0x0800);
sungem_phy_write(phy, 0x17, 0x000a);
sungem_phy_write(phy, 0x15, data | 0x0200);
sungem_phy_write(phy, 4, 0x01e1);
sungem_phy_write(phy, 9, 0x0300);
sungem_phy_write(phy, 0x1c, 0x9002);
sungem_phy_write(phy, 0x1c, 0xa821);
sungem_phy_write(phy, 0x1c, 0x941d);
sungem_phy_write(phy, MII_ADVERTISE, adv);
sungem_phy_write(phy, MII_1000BASETCONTROL, adv);
sungem_phy_write(phy, MII_BMCR, ctl);
sungem_phy_write(phy, MII_BMCR, ctl | BMCR_RESET);
sungem_phy_write(phy, MII_BMCR, ctl);
sungem_phy_write(phy, 0x1d, 0x000a);
sungem_phy_write(phy, 0x1e, 0x0821);
sungem_phy_write(phy, 0x1d, 0x0006);
sungem_phy_write(phy, 0x1e, 0x8600);
sungem_phy_write(phy, 0x1d, 0x000b);
sungem_phy_write(phy, 0x1e, 0x0100);
sungem_phy_write(phy, 0x1d, 0x0004);
sungem_phy_write(phy, 0x1e, 0x4850);
sungem_phy_write(phy, MII_NCONFIG, 0x1000);
sungem_phy_write(phy, MII_NCONFIG, 0x2000);
sungem_phy_write(phy, MII_NCONFIG, 0x1000);
sungem_phy_write(phy, MII_NCONFIG, 0x2000);
sungem_phy_write(phy, MII_NCONFIG, 0x9020);
sungem_phy_write(phy, MII_NCONFIG, 0x945f);
sungem_phy_write(phy, MII_NCONFIG, 0xfc01);
sungem_phy_write(phy, 0x0b, 0x0004);
sungem_phy_write(phy, MII_NCONFIG, 0x7c00);
sungem_phy_write(phy, MII_NCONFIG, 0x7000);
sungem_phy_write(phy, MII_NCONFIG, 0x7c00);
sungem_phy_write(phy, MII_NCONFIG, 0x7000);
sungem_phy_write(phy, MII_NCONFIG, 0xfc0b);
sungem_phy_write(phy, MII_ADVERTISE, 0x01e0);
sungem_phy_write(phy, MII_BMCR, 0x1140);
sungem_phy_write(phy, MII_BMCR, 0x0140);
sungem_phy_write(phy, MII_ADVERTISE, adv);
sungem_phy_write(phy, MII_1000BASETCONTROL, adv);
sungem_phy_write(phy, MII_BMCR, ctl);
sungem_phy_write(phy, MII_1000BASETCONTROL, ctl2);
sungem_phy_write(phy, MII_BMCR, ctl);
sungem_phy_write(phy, MII_BCM5201_MULTIPHY, data);
sungem_phy_write(phy, MII_BCM5201_INTERRUPT, 0);