/* GPMI Init Data Sample Delay. 
This function determines the fraction of GPMI period for the data sample delay period per delay count. The data sample delay period per cycle is a fraction of the GPMI clock. The fraction amount is a function of chip type and GPMI clock speed.  */
uint32_t gpmi_init_data_sample_delay(uint32_t u32GpmiPeriod_ns)
/* GPMI Init Data Sample Delay. 
This function determines the fraction of GPMI period for the data sample delay period per delay count. The data sample delay period per cycle is a fraction of the GPMI clock. The fraction amount is a function of chip type and GPMI clock speed.  */
uint32_t gpmi_init_data_sample_delay(uint32_t u32GpmiPeriod_ns)
{
    uint32_t retVal = GPMI_DELAY_SHIFT;
    BW_GPMI_CTRL1_DLL_ENABLE(0);
    BW_GPMI_CTRL1_RDN_DELAY(0);
    if (u32GpmiPeriod_ns > GPMI_DLL_HALF_THRESHOLD_PERIOD_NS )
    {
        BW_GPMI_CTRL1_HALF_PERIOD(1);
        retVal++;
    }
    return (1 << retVal);
}