/* Determine if an interface is actually active based on HW config we expect fman_port_enet_if() to report PHY_INTERFACE_MODE_NONE if the interface is not active based on HW cfg of the SoC  */
void fman_enet_init(void)
/* Determine if an interface is actually active based on HW config we expect fman_port_enet_if() to report PHY_INTERFACE_MODE_NONE if the interface is not active based on HW cfg of the SoC  */
void fman_enet_init(void)
{
	int i;
	for (i = 0; i < ARRAY_SIZE(fm_info); i++) {
		phy_interface_t enet_if;
		enet_if = fman_port_enet_if(fm_info[i].port);
		if (enet_if != PHY_INTERFACE_MODE_NONE) {
			fm_info[i].enabled = 1;
			fm_info[i].enet_if = enet_if;
		} else {
			fm_info[i].enabled = 0;
		}
	}
	return ;
}