/* Find a NAND timing value that is rounded as appropriate. 
This function determines the NAND Timing parameter which is given in units of GPMI cycles. The GPMI period is used to determine how many cycles fit into the NAND parameter, rounding up or down as appropriate. */
uint32_t gpmi_find_cycles_rounded(uint64_t u32NandTime_ns, uint32_t u32GpmiPeriod_ns)
/* Find a NAND timing value that is rounded as appropriate. 
This function determines the NAND Timing parameter which is given in units of GPMI cycles. The GPMI period is used to determine how many cycles fit into the NAND parameter, rounding up or down as appropriate. */
uint32_t gpmi_find_cycles_rounded(uint64_t u32NandTime_ns, uint32_t u32GpmiPeriod_ns)
{
    return (u32NandTime_ns + (u32GpmiPeriod_ns>>1)) / u32GpmiPeriod_ns;
}