/* Enable OSCx module to control oscillator or external reference clock  */
static void osc_enable(int osc)
/* Enable OSCx module to control oscillator or external reference clock  */
static void osc_enable(int osc)
{
	volatile struct kinetis_osc_regs *regs =
		(volatile struct kinetis_osc_regs *)kinetis_osc_base[osc];
	if (osc == 1)
		kinetis_periph_enable(KINETIS_CG_OSC1, 1);
	regs->cr = KINETIS_OSC_CR_EREFSTEN_MSK | KINETIS_OSC_CR_ERCLKEN_MSK;
}