/* Power up the specified port and reset PHY  */
static int mv88361xx_powerup(struct mv88e61xx_config *swconfig, u32 prt)
/* Power up the specified port and reset PHY  */
static int mv88361xx_powerup(struct mv88e61xx_config *swconfig, u32 prt)
{
	char *name = swconfig->name;
	WR_PHY(name, MV88E61XX_GLB2REG_DEVADR, MV88E61XX_PHY_DATA, 0x3360);
	WR_PHY(name, MV88E61XX_GLB2REG_DEVADR,
	       MV88E61XX_PHY_CMD, (0x9410 | (prt << 5)));
	if (mv88e61xx_busychk(name))
		return -1;
	WR_PHY(name, MV88E61XX_GLB2REG_DEVADR, MV88E61XX_PHY_DATA, 0x1140);
	WR_PHY(name, MV88E61XX_GLB2REG_DEVADR,
	       MV88E61XX_PHY_CMD, (0x9400 | (prt << 5)));
	if (mv88e61xx_busychk(name))
		return -1;
	return 0;
}