/* Setup EDC and other parameters for operation with an optical module.  */
static int ael2020_setup_sr_edc(struct cphy *phy)
/* Setup EDC and other parameters for operation with an optical module.  */
static int ael2020_setup_sr_edc(struct cphy *phy)
{
	static struct reg_val regs[] = {
		{ MDIO_MMD_PMAPMD, 0xcc01, 0xffff, 0x488a },
		{ MDIO_MMD_PMAPMD, 0xcb1b, 0xffff, 0x0200 },
		{ MDIO_MMD_PMAPMD, 0xcb1c, 0xffff, 0x00f0 },
		{ MDIO_MMD_PMAPMD, 0xcc06, 0xffff, 0x00e0 },
		{ 0, 0, 0, 0 }
	};
	int err;
	err = set_phy_regs(phy, regs);
	msleep(50);
	if (err)
		return err;
	phy->priv = edc_sr;
	return 0;
}