/* Function to set the MDC clock for mdio transactiona */
s32 synopGMAC_set_mdc_clk_div(synopGMACdevice *gmacdev, u32 clk_div_val)
/* Function to set the MDC clock for mdio transactiona */
s32 synopGMAC_set_mdc_clk_div(synopGMACdevice *gmacdev, u32 clk_div_val)
{
    u32 orig_data;
    orig_data = synopGMACReadReg(gmacdev->MacBase, GmacGmiiAddr);
    orig_data &= (~ GmiiCsrClkMask);
    orig_data |= clk_div_val;
    synopGMACWriteReg(gmacdev->MacBase, GmacGmiiAddr, orig_data);
    return 0;
}