xref: /optee_os/core/arch/arm/plat-marvell/conf.mk (revision aaec75ec87470731e54ff9a1cbf5b72c0d6ee9bd)
1PLATFORM_FLAVOR ?= armada7k8k
2
3ifeq ($(PLATFORM_FLAVOR),armada7k8k)
4include core/arch/arm/cpu/cortex-armv8-0.mk
5$(call force,CFG_TEE_CORE_NB_CORE,4)
6$(call force,CFG_TZDRAM_START,0x04400000)
7$(call force,CFG_TZDRAM_SIZE,0x00C00000)
8$(call force,CFG_SHMEM_START,0x05000000)
9$(call force,CFG_SHMEM_SIZE,0x00400000)
10$(call force,CFG_TEE_RAM_VA_SIZE,0x00400000)
11# If Secure Data Path is enabled, uses the TZDRAM last 4MByte
12$(call force,CFG_TEE_SDP_MEM_SIZE,0x00400000)
13platform-debugger-arm := 1
14$(call force,CFG_8250_UART,y)
15endif
16
17ifeq ($(PLATFORM_FLAVOR),armada3700)
18include core/arch/arm/cpu/cortex-armv8-0.mk
19$(call force,CFG_TEE_CORE_NB_CORE,2)
20$(call force,CFG_TZDRAM_START,0x04400000)
21$(call force,CFG_TZDRAM_SIZE,0x00C00000)
22$(call force,CFG_SHMEM_START,0x05000000)
23$(call force,CFG_SHMEM_SIZE,0x00400000)
24$(call force,CFG_TEE_RAM_VA_SIZE,0x00400000)
25# If Secure Data Path is enabled, uses the TZDRAM last 4MByte
26$(call force,CFG_TEE_SDP_MEM_SIZE,0x00400000)
27platform-debugger-arm := 1
28$(call force,CFG_MVEBU_UART,y)
29$(call force,CFG_ARM_GICV3,y)
30endif
31
32ifeq ($(platform-debugger-arm),1)
33# ARM debugger needs this
34platform-cflags-debug-info = -gdwarf-2
35platform-aflags-debug-info = -gdwarf-2
36endif
37
38$(call force,CFG_WITH_ARM_TRUSTED_FW,y)
39$(call force,CFG_ARM64_core,y)
40$(call force,CFG_GENERIC_BOOT,y)
41$(call force,CFG_GIC,y)
42$(call force,CFG_PM_STUBS,y)
43$(call force,CFG_SECURE_TIME_SOURCE_CNTPCT,y)
44$(call force,CFG_CORE_CLUSTER_SHIFT,1)
45
46ta-targets = ta_arm32
47
48ifeq ($(CFG_ARM64_core),y)
49$(call force,CFG_WITH_LPAE,y)
50ta-targets += ta_arm64
51else
52$(call force,CFG_ARM32_core,y)
53endif
54
55CFG_WITH_STACK_CANARIES ?= y
56CFG_WITH_STATS ?= y
57