1# SPDX-License-Identifier: BSD-2-Clause 2# 3# Copyright (c) 2023-2026, Advanced Micro Devices, Inc. All rights reserved. 4# 5 6PLATFORM_FLAVOR ?= generic 7 8include core/arch/arm/cpu/cortex-armv8-0.mk 9 10CFG_MMAP_REGIONS ?= 24 11 12# Disable Non-Standard Crypto Algorithms 13$(call force,CFG_CRYPTO_SM2_PKE,n) 14$(call force,CFG_CRYPTO_SM2_DSA,n) 15$(call force,CFG_CRYPTO_SM2_KEP,n) 16$(call force,CFG_CRYPTO_SM3,n) 17$(call force,CFG_CRYPTO_SM4,n) 18 19# platform does not support paging; explicitly disable CFG_WITH_PAGER 20$(call force,CFG_WITH_PAGER,n) 21 22# Platform specific configurations 23$(call force,CFG_SECURE_TIME_SOURCE_CNTPCT,y) 24$(call force,CFG_WITH_ARM_TRUSTED_FW,y) 25$(call force,CFG_TEE_CORE_NB_CORE,8) 26$(call force,CFG_ARM_GICV3,y) 27$(call force,CFG_PL011,y) 28$(call force,CFG_GIC,y) 29$(call force,CFG_DT,y) 30 31CFG_CORE_RESERVED_SHM ?= n 32CFG_CORE_DYN_SHM ?= y 33CFG_WITH_STATS ?= y 34CFG_ARM64_core ?= y 35CFG_AUTO_MAX_PA_BITS ?= 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 64# AMD ASU Specific configs 65CFG_AMD_ASU_SUPPORT ?= y 66CFG_AMD_APU_LCL_IPI_ID ?= 0x0004 67 68ifeq ($(CFG_AMD_PS_GPIO),y) 69$(call force,CFG_MAP_EXT_DT_SECURE,y) 70$(call force,CFG_DRIVERS_GPIO,y) 71endif 72 73CFG_CORE_HEAP_SIZE ?= 262144 74