/* Switch slow clock source selection to external 32k (Xtal or Bypass).  */
void pmc_switch_sclk_to_32kxtal(uint32_t ul_bypass)
/* Switch slow clock source selection to external 32k (Xtal or Bypass).  */
void pmc_switch_sclk_to_32kxtal(uint32_t ul_bypass)
{
	if (ul_bypass == 1) {
		SUPC->SUPC_MR |= SUPC_MR_KEY_PASSWD |
			SUPC_MR_OSCBYPASS;
	}
	SUPC->SUPC_CR = SUPC_CR_KEY_PASSWD | SUPC_CR_XTALSEL;
}