/* Measure CPU clock speed (core clock GCLK1) (Approx. GCLK frequency in Hz)  */
ulong bab7xx_get_gclk_freq(void)
/* Measure CPU clock speed (core clock GCLK1) (Approx. GCLK frequency in Hz)  */
ulong bab7xx_get_gclk_freq(void)
{
	static const int pllratio_to_factor[] = {
		00, 75, 70, 00, 20, 65, 100, 45, 30, 55, 40, 50, 80, 60, 35,
			00,
	};
	return pllratio_to_factor[get_hid1 () >> 28] *
		(bab7xx_get_bus_freq () / 10);
}