1# SPDX-License-Identifier: BSD-2-Clause 2# 3# Copyright (c) 2023-2024, Advanced Micro Devices, Inc. All rights reserved. 4# 5# 6 7PLATFORM_FLAVOR ?= generic 8 9include core/arch/arm/cpu/cortex-armv8-0.mk 10 11CFG_MMAP_REGIONS ?= 24 12 13# Disable Non-Standard Crypto Algorithms 14$(call force,CFG_CRYPTO_SM2_PKE,n) 15$(call force,CFG_CRYPTO_SM2_DSA,n) 16$(call force,CFG_CRYPTO_SM2_KEP,n) 17$(call force,CFG_CRYPTO_SM3,n) 18$(call force,CFG_CRYPTO_SM4,n) 19 20# platform does not support paging; explicitly disable CFG_WITH_PAGER 21$(call force,CFG_WITH_PAGER,n) 22 23# Platform specific configurations 24$(call force,CFG_SECURE_TIME_SOURCE_CNTPCT,y) 25$(call force,CFG_WITH_ARM_TRUSTED_FW,y) 26$(call force,CFG_TEE_CORE_NB_CORE,8) 27$(call force,CFG_ARM_GICV3,y) 28$(call force,CFG_PL011,y) 29$(call force,CFG_GIC,y) 30 31CFG_CORE_RESERVED_SHM ?= n 32CFG_CORE_DYN_SHM ?= y 33CFG_WITH_STATS ?= y 34CFG_ARM64_core ?= y 35 36# Enable ARM Crypto Extensions(CE) 37CFG_CRYPTO_WITH_CE ?= y 38 39# Define the number of cores per cluster used in calculating core position. 40# The cluster number is shifted by this value and added to the core ID, 41# so its value represents log2(cores/cluster). 42# For AMD Versal Gen 2 there are 4 clusters and 2 cores per cluster. 43$(call force,CFG_CORE_CLUSTER_SHIFT,1) 44 45# By default optee_os is located at the following location. 46# This range to contain optee_os, TEE RAM and TA RAM. 47# Default size is 128MB. 48CFG_TZDRAM_START ?= 0x1800000 49CFG_TZDRAM_SIZE ?= 0x8000000 50 51# Console selection 52# 0 : UART0[pl011, pl011_0] (default) 53# 1 : UART1[pl011_1] 54CFG_CONSOLE_UART ?= 0 55 56ifeq ($(CFG_ARM64_core),y) 57$(call force,CFG_CORE_LARGE_PHYS_ADDR,y) 58$(call force,CFG_CORE_ARM64_PA_BITS,43) 59endif 60 61CFG_CORE_HEAP_SIZE ?= 262144 62