arch/arm/soc/atmel_sam/same70/soc.c
/**
 * @brief Perform basic hardware initialization at boot.
 *
 * This needs to be run at the very beginning.
 * So the init priority has to be 0 (zero).
 *
 * @return 0
 */
@brief Perform basic hardware initialization at boot.
This needs to be run at the very beginning.
So the init priority has to be 0 (zero).

@return 0
@brief Perform basic hardware initialization at boot . This needs to be run at the very beginning . So the init priority has to be 0 ( zero ) . @return 0
static int atmel_same70_init(struct device *arg)
{
	u32_t key;
	ARG_UNUSED(arg);
	key = irq_lock();
	_ClearFaults();
	EFC->EEFC_FMR = EEFC_FMR_FWS(5) | EEFC_FMR_CLOE;
	clock_init();
	NMI_INIT();
	irq_unlock(key);
	return 0;
}
static int atmel_same70_init ( struct device * arg ) { u32_t key ; ARG_UNUSED ( arg ) ; key = irq_lock ( ) ; _ClearFaults ( ) ; EFC -> EEFC_FMR = EEFC_FMR_FWS ( 5 ) | EEFC_FMR_CLOE ; clock_init ( ) ; NMI_INIT ( ) ; irq_unlock ( key ) ; return 0 ; }
@brief Perform basic hardware initialization at boot.
@brief Perform basic hardware initialization at boot .
/* Clear all faults */ /*
	 * Set FWS (Flash Wait State) value before increasing Master Clock
	 * (MCK) frequency.
	 * TODO: set FWS based on the actual MCK frequency and VDDIO value
	 * rather than maximum supported 150 MHz at standard VDDIO=2.7V
	 */ /* Setup system clocks */ /* Install default handler that simply resets the CPU
	 * if configured in the kernel, NOP otherwise
	 */