1PLATFORM_FLAVOR ?= sama5d27_som1_ek 2 3flavor_dts_file-sama5d2xult = at91-sama5d2_xplained.dts 4flavor_dts_file-sama5d2_xplained = at91-sama5d2_xplained.dts 5flavor_dts_file-sama5d27_som1_ek = at91-sama5d27_som1_ek.dts 6 7ifeq ($(PLATFORM_FLAVOR),sama5d2xult) 8$(warning "sama5d2xult is deprecated, please use sama5d2_xplained") 9endif 10 11ifeq ($(flavor_dts_file-$(PLATFORM_FLAVOR)),) 12$(error Invalid platform flavor $(PLATFORM_FLAVOR)) 13endif 14CFG_EMBED_DTB_SOURCE_FILE ?= $(flavor_dts_file-$(PLATFORM_FLAVOR)) 15 16include core/arch/arm/cpu/cortex-a5.mk 17 18$(call force,CFG_TEE_CORE_NB_CORE,1) 19$(call force,CFG_ATMEL_UART,y) 20$(call force,CFG_ATMEL_SAIC,y) 21$(call force,CFG_ATMEL_TCB,y) 22$(call force,CFG_NO_SMP,y) 23$(call force,CFG_PL310,y) 24$(call force,CFG_PL310_LOCKED,y) 25$(call force,CFG_AT91_MATRIX,y) 26$(call force,CFG_DRIVERS_CLK,y) 27$(call force,CFG_DRIVERS_CLK_DT,y) 28$(call force,CFG_DRIVERS_CLK_FIXED,y) 29$(call force,CFG_DRIVERS_SAM_CLK,y) 30$(call force,CFG_DRIVERS_SAMA5D2_CLK,y) 31$(call force,CFG_PSCI_ARM32,y) 32$(call force,CFG_SM_PLATFORM_HANDLER,y) 33$(call force,CFG_CORE_HAS_GENERIC_TIMER,n) 34 35# These values are forced because of matrix configuration for secure area. 36# When modifying these, always update matrix settings in 37# matrix_configure_slave_h64mx(). 38$(call force,CFG_TZDRAM_START,0x20000000) 39$(call force,CFG_TZDRAM_SIZE,0x800000) 40 41CFG_MMAP_REGIONS ?= 24 42 43CFG_SHMEM_START ?= 0x21000000 44CFG_SHMEM_SIZE ?= 0x400000 45 46CFG_TEE_RAM_VA_SIZE ?= 0x100000 47 48# Device tree related configuration 49CFG_DT_ADDR ?= 0x21500000 50CFG_GENERATE_DTB_OVERLAY ?= y 51 52CFG_WITH_SOFTWARE_PRNG ?= n 53CFG_ATMEL_TRNG ?= y 54ifeq ($(CFG_ATMEL_TRNG),y) 55CFG_HWRNG_PTA ?= y 56$(call force,CFG_HWRNG_QUALITY,1024) 57endif 58 59CFG_ATMEL_RSTC ?= y 60CFG_ATMEL_SHDWC ?= y 61 62CFG_ATMEL_PM ?= y 63 64ifeq ($(CFG_ATMEL_PM),y) 65# Suspend mode to be used on PSCI suspend call 66# 0 = STANDBY 67# 1 = ULP0 68# 2 = ULP0 Fast 69# 3 = ULP1 70# 4 = BACKUP 71CFG_ATMEL_PM_SUSPEND_MODE ?= 0 72 73$(call force,CFG_ATMEL_SHDWC,y) 74$(call force,CFG_PM_ARM32,y) 75endif 76 77CFG_WDT ?= y 78CFG_WDT_SM_HANDLER ?= y 79ifeq ($(CFG_WDT_SM_HANDLER),y) 80CFG_WDT_SM_HANDLER_ID := 0x2000500 81endif 82CFG_ATMEL_WDT ?= y 83 84CFG_DRIVERS_RTC ?= y 85CFG_RTC_PTA ?= y 86CFG_ATMEL_RTC ?= y 87CFG_ATMEL_PIOBU ?= y 88