plat/leo/l1/sp_min/sp_min_setup.c
/*******************************************************************************
 * Initialize the MMU, security and the GIC.
 ******************************************************************************/
Initialize the MMU, security and the GIC.
Initialize the MMU security and the GIC .
void sp_min_platform_setup(void)
{
	mmap_add_region(BL_CODE_BASE, BL_CODE_BASE,
			BL_CODE_END - BL_CODE_BASE,
			MT_CODE | MT_SECURE);
	configure_mmu();
	leomp1_security_setup();
	generic_delay_timer_init();
	leomp1_gic_init();
#define LEO_ETZPC_BASE	0x5C007000U
#define ETZPC_DECPROT0		0x010U
	mmio_write_32(LEO_ETZPC_BASE + ETZPC_DECPROT0, 0xFFFFFFFF);
	for (uint32_t pin = 0U; pin < LEO_GPIOZ_PIN_MAX_COUNT; pin++) {
		set_gpio_secure_cfg(GPIO_BANK_Z, pin, false);
	}
}
void sp_min_platform_setup ( void ) { mmap_add_region ( BL_CODE_BASE , BL_CODE_BASE , BL_CODE_END - BL_CODE_BASE , MT_CODE | MT_SECURE ) ; configure_mmu ( ) ; leomp1_security_setup ( ) ; generic_delay_timer_init ( ) ; leomp1_gic_init ( ) ; #define LEO_ETZPC_BASE 	0x5C007000U #define ETZPC_DECPROT0 		0x010U mmio_write_32 ( LEO_ETZPC_BASE + ETZPC_DECPROT0 , 0xFFFFFFFF ) ; for ( uint32_t pin = 0U ; pin < LEO_GPIOZ_PIN_MAX_COUNT ; pin ++ ) { set_gpio_secure_cfg ( GPIO_BANK_Z , pin , false ) ; } }
Initialize the MMU, security and the GIC.
Initialize the MMU security and the GIC .
/* Initialize tzc400 after DDR initialization */ /* Unlock ETZPC securable peripherals */ /* Set GPIO bank Z as non secure */