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$(call force,CFG_DT,y) 31 32CFG_CORE_RESERVED_SHM ?= n 33CFG_CORE_DYN_SHM ?= y 34CFG_WITH_STATS ?= y 35CFG_ARM64_core ?= y 36 37# Enable ARM Crypto Extensions(CE) 38CFG_CRYPTO_WITH_CE ?= y 39 40# Define the number of cores per cluster used in calculating core position. 41# The cluster number is shifted by this value and added to the core ID, 42# so its value represents log2(cores/cluster). 43# For AMD Versal Gen 2 there are 4 clusters and 2 cores per cluster. 44$(call force,CFG_CORE_CLUSTER_SHIFT,1) 45 46# By default optee_os is located at the following location. 47# This range to contain optee_os, TEE RAM and TA RAM. 48# Default size is 128MB. 49CFG_TZDRAM_START ?= 0x1800000 50CFG_TZDRAM_SIZE ?= 0x8000000 51 52# Maximum size of the Device Tree Blob to accommodate 53# device tree with additional nodes. 54CFG_DTB_MAX_SIZE ?= 0x200000 55 56# Console selection 57# 0 : UART0[pl011, pl011_0] (default) 58# 1 : UART1[pl011_1] 59CFG_CONSOLE_UART ?= 0 60 61# PS GPIO Controller configuration. 62CFG_AMD_PS_GPIO ?= n 63 64ifeq ($(CFG_AMD_PS_GPIO),y) 65$(call force,CFG_MAP_EXT_DT_SECURE,y) 66$(call force,CFG_DRIVERS_GPIO,y) 67endif 68 69ifeq ($(CFG_ARM64_core),y) 70$(call force,CFG_CORE_LARGE_PHYS_ADDR,y) 71$(call force,CFG_CORE_ARM64_PA_BITS,43) 72endif 73 74CFG_CORE_HEAP_SIZE ?= 262144 75