/* time to number of clocks calculation based on the rounding algorithm using 97.4% inverse factor per JEDEC Standard No. 21-C, 4.1.2.L-4: Serial Presence Detect (SPD) for DDR4 SDRAM Modules  */
unsigned int time_to_nclk(unsigned int t, unsigned int tclk)
/* time to number of clocks calculation based on the rounding algorithm using 97.4% inverse factor per JEDEC Standard No. 21-C, 4.1.2.L-4: Serial Presence Detect (SPD) for DDR4 SDRAM Modules  */
unsigned int time_to_nclk(unsigned int t, unsigned int tclk)
{
	return ((unsigned long)t * 1000 / tclk + 974) / 1000;
}