/* Set the source oscillator for the specified programmable clock.  */
void pmc_pck_set_source(uint32_t ul_id, uint32_t ul_source)
/* Set the source oscillator for the specified programmable clock.  */
void pmc_pck_set_source(uint32_t ul_id, uint32_t ul_source)
{
	PMC->PMC_PCK[ul_id] =
			(PMC->PMC_PCK[ul_id] & ~PMC_PCK_CSS_Msk) | ul_source;
	while ((PMC->PMC_SCER & (PMC_SCER_PCK0 << ul_id))
			&& !(PMC->PMC_SR & (PMC_SR_PCKRDY0 << ul_id)));
}