/* If an imprecise data rate is too high due to rounding error propagation, compute a suitably rounded mclk_ps to compute a working memory controller configuration.  */
unsigned int get_memory_clk_period_ps(void)
/* If an imprecise data rate is too high due to rounding error propagation, compute a suitably rounded mclk_ps to compute a working memory controller configuration.  */
unsigned int get_memory_clk_period_ps(void)
{
	unsigned int mclk_ps;
	mclk_ps = 2000000000000ULL / fsl_ddr_get_mem_data_rate();
	return 10 * ((mclk_ps + 5) / 10);
}