/* Addend Register Update This function loads the contents of Time stamp addend register with the supplied 32 value. This is reserved function when only coarse correction option is selected  */
s32 synopGMAC_TS_addend_update(synopGMACdevice *gmacdev, u32 addend_value)
/* Addend Register Update This function loads the contents of Time stamp addend register with the supplied 32 value. This is reserved function when only coarse correction option is selected  */
s32 synopGMAC_TS_addend_update(synopGMACdevice *gmacdev, u32 addend_value)
{
    u32 loop_variable;
    synopGMACWriteReg(gmacdev->MacBase, GmacTSAddend, addend_value);
    for (loop_variable = 0; loop_variable < DEFAULT_LOOP_VARIABLE; loop_variable++)
    {
        if (!((synopGMACReadReg(gmacdev->MacBase, GmacTSControl)) & GmacTSADDREG))
        {
            break;
        }
        plat_delay(DEFAULT_DELAY_VARIABLE);
    }
    if (loop_variable < DEFAULT_LOOP_VARIABLE)
        synopGMACSetBits(gmacdev->MacBase, GmacTSControl, GmacTSADDREG);
    else
    {
        TR("Error::: The TSADDREG bit is not getting cleared !!!!!!\n");
        return -ESYNOPGMACPHYERR;
    }
    return 0;
}