/* setup_sgmii() - Configure the SerDes device to SGMII mode @dev: The device to configure  */
static void setup_sgmii(struct udevice *dev)
/* setup_sgmii() - Configure the SerDes device to SGMII mode @dev: The device to configure  */
static void setup_sgmii(struct udevice *dev)
{
	struct mpc83xx_serdes_priv *priv = dev_get_priv(dev);
	clrbits_be32(&priv->regs->srdscr1, SRDSCR1_PLLBW);
	clrsetbits_be32(&priv->regs->srdscr2,
			SRDSCR2_SEIC_MASK,
			SRDSCR2_SEIC_SGMII);
	out_be32(&priv->regs->srdscr3, 0);
	out_be32(&priv->regs->srdscr4, priv->rfcks | SRDSCR4_PROT_SGMII);
}