/* This is optional settings may be needed on some boards for PHY<->magnetics h/w tuning  */
static int mv88361xx_reverse_mdipn(struct mv88e61xx_config *swconfig, u32 prt)
/* This is optional settings may be needed on some boards for PHY<->magnetics h/w tuning  */
static int mv88361xx_reverse_mdipn(struct mv88e61xx_config *swconfig, u32 prt)
{
	char *name = swconfig->name;
	u16 reg;
	if (swconfig->mdip != MV88E61XX_MDIP_REVERSE)
		return 0;
	reg = 0x0f;
	WR_PHY(name, MV88E61XX_GLB2REG_DEVADR, MV88E61XX_PHY_DATA, reg);
	WR_PHY(name, MV88E61XX_GLB2REG_DEVADR,
	       MV88E61XX_PHY_CMD, (1 << MV88E61XX_BUSY_OFST |
				   1 << MV88E61XX_MODE_OFST |
				   1 << MV88E61XX_OP_OFST |
				   prt << MV88E61XX_ADDR_OFST | 20));
	if (mv88e61xx_busychk(name))
		return -1;
	return 0;
}