/* Since to access LED register we need do switch the page, we do LED configuring in the miim_read-like function as follows  */
static uint mii_88E1121_set_led(uint mii_reg, struct tsec_private *priv)
/* Since to access LED register we need do switch the page, we do LED configuring in the miim_read-like function as follows  */
static uint mii_88E1121_set_led(uint mii_reg, struct tsec_private *priv)
{
	uint pg;
	pg = read_phy_reg(priv, MIIM_88E1121_PHY_PAGE);
	write_phy_reg(priv, MIIM_88E1121_PHY_PAGE, MIIM_88E1121_PHY_LED_PAGE);
	write_phy_reg(priv, MIIM_88E1121_PHY_LED_CTRL,
		      MIIM_88E1121_PHY_LED_DEF);
	write_phy_reg(priv, MIIM_88E1121_PHY_PAGE, pg);
	return 0;
}