/* Written since there is no pow() in math.h. Only for exponent and base above 0. Used for calculating scaling factor for frequency margin  */
static uint32_t litex_clk_pow(uint32_t base, uint32_t exp)
/* Written since there is no pow() in math.h. Only for exponent and base above 0. Used for calculating scaling factor for frequency margin  */
static uint32_t litex_clk_pow(uint32_t base, uint32_t exp)
{
	int ret = 1;
	while (exp--) {
		ret *= base;
	}
	return ret;
}