/* configure the PHY interface for the ethernet MAC  */
void syscfg_enet_phy_interface_config(uint32_t syscfg_enet_phy_interface)
/* configure the PHY interface for the ethernet MAC  */
void syscfg_enet_phy_interface_config(uint32_t syscfg_enet_phy_interface)
{
    uint32_t reg;
    reg = SYSCFG_CFG1;
    reg &= ~SYSCFG_CFG1_ENET_PHY_SEL;
    SYSCFG_CFG1 = (reg | syscfg_enet_phy_interface);
}