/* Convert nanosecond based time to setting used in the boot bus timing register, based on timing multiple  */
static unsigned int ns_to_tim_reg(unsigned int tim_mult, unsigned int nsecs)
/* Convert nanosecond based time to setting used in the boot bus timing register, based on timing multiple  */
static unsigned int ns_to_tim_reg(unsigned int tim_mult, unsigned int nsecs)
{
	unsigned int val;
	val = DIV_ROUND_UP(nsecs * (octeon_get_clock_rate() / 1000000),
			  1000 * tim_mult);
	return val;
}