/* Perform basic hardware initialization. 
Initializes the base clocks and LPFLL using helpers provided by the HAL. */
static int soc_rv32m1_init(void)
/* Perform basic hardware initialization. 
Initializes the base clocks and LPFLL using helpers provided by the HAL. */
static int soc_rv32m1_init(void)
{
	unsigned int key;
	key = irq_lock();
	rv32m1_switch_to_sirc();
	CLOCK_InitFirc(&rv32m1_firc_config);
	rv32m1_switch_sys_clk(&rv32m1_sys_clk_config_firc);
	CLOCK_InitLpFll(&rv32m1_lpfll_cfg);
	rv32m1_setup_peripheral_clocks();
	irq_unlock(key);
	return 0;
}