1PLATFORM_FLAVOR ?= hikey 2 3include core/arch/arm/cpu/cortex-armv8-0.mk 4 5$(call force,CFG_TEE_CORE_NB_CORE,8) 6$(call force,CFG_PL011,y) 7$(call force,CFG_SECURE_TIME_SOURCE_CNTPCT,y) 8$(call force,CFG_WITH_ARM_TRUSTED_FW,y) 9 10CFG_NUM_THREADS ?= 8 11CFG_CRYPTO_WITH_CE ?= y 12 13ifeq ($(PLATFORM_FLAVOR),hikey) 14CFG_CORE_HEAP_SIZE ?= 73728 15CFG_PL061 ?= y 16CFG_PL022 ?= y 17CFG_SPI ?= y 18 19ifeq ($(CFG_SPI_TEST),y) 20$(call force,CFG_SPI,y) 21endif 22 23ifeq ($(CFG_SPI),y) 24$(call force,CFG_PL061,y) 25$(call force,CFG_PL022,y) 26endif 27 28ifeq ($(CFG_PL061),y) 29core-platform-cppflags += -DPLAT_PL061_MAX_GPIOS=160 30endif 31endif 32 33CFG_CACHE_API ?= y 34CFG_SECURE_DATA_PATH ?= n 35CFG_TEE_SDP_MEM_BASE ?= 0x3E800000 36CFG_TEE_SDP_MEM_SIZE ?= 0x00400000 37 38ifeq ($(PLATFORM_FLAVOR),hikey) 39CFG_CONSOLE_UART ?= 3 40CFG_DRAM_SIZE_GB ?= 2 41endif 42 43ifeq ($(PLATFORM_FLAVOR),hikey960) 44CFG_CONSOLE_UART ?= 6 45CFG_DRAM_SIZE_GB ?= 3 46CFG_CORE_BGET_BESTFIT ?= y 47ifeq ($(CFG_ARM32_core),y) 48CFG_ASAN_SHADOW_OFFSET ?= 0x372E38E0 49endif 50# Hikey960 4G/6G versions have physical addresses above 4G range 51ifneq (,$(filter 4 6,$(CFG_DRAM_SIZE_GB))) 52$(call force,CFG_CORE_ARM64_PA_BITS,36) 53endif 54endif 55 56CFG_TZDRAM_START ?= 0x3F000000 57CFG_TZDRAM_SIZE ?= 0x01000000 58CFG_SHMEM_START ?= 0x3EE00000 59CFG_SHMEM_SIZE ?= 0x00200000 60CFG_TEE_RAM_VA_SIZE ?= 0x00200000 61 62CFG_IN_TREE_EARLY_TAS += avb/023f8f1a-292a-432b-8fc4-de8471358067 63 64CFG_EMBED_DTB_SOURCE_FILE ?= hikey.dts 65