1PLATFORM_FLAVOR ?= rk322x
2
3$(call force,CFG_GIC,y)
4$(call force,CFG_SECURE_TIME_SOURCE_CNTPCT,y)
5$(call force,CFG_8250_UART,y)
6
7CFG_DT ?= y
8CFG_WITH_STATS ?= y
9CFG_NUM_THREADS ?= 4
10
11ifeq ($(PLATFORM_FLAVOR),rk322x)
12include ./core/arch/arm/cpu/cortex-a7.mk
13$(call force,CFG_TEE_CORE_NB_CORE,4)
14$(call force,CFG_PSCI_ARM32,y)
15$(call force,CFG_BOOT_SECONDARY_REQUEST,y)
16
17CFG_TZDRAM_START ?= 0x68400000
18CFG_TZDRAM_SIZE ?= 0x00200000
19CFG_SHMEM_START ?= 0x68600000
20CFG_SHMEM_SIZE ?= 0x00100000
21
22CFG_EARLY_CONSOLE ?= y
23CFG_EARLY_CONSOLE_BASE ?= UART2_BASE
24CFG_EARLY_CONSOLE_SIZE ?= UART2_SIZE
25CFG_EARLY_CONSOLE_BAUDRATE ?= 1500000
26CFG_EARLY_CONSOLE_CLK_IN_HZ ?= 24000000
27endif
28
29ifeq ($(PLATFORM_FLAVOR),rk3399)
30include core/arch/arm/cpu/cortex-armv8-0.mk
31$(call force,CFG_TEE_CORE_NB_CORE,6)
32$(call force,CFG_ARM_GICV3,y)
33
34CFG_TZDRAM_START ?= 0x30000000
35CFG_TZDRAM_SIZE  ?= 0x02000000
36CFG_SHMEM_START  ?= 0x32000000
37CFG_SHMEM_SIZE   ?= 0x00400000
38
39CFG_EARLY_CONSOLE ?= y
40CFG_EARLY_CONSOLE_BASE ?= UART2_BASE
41CFG_EARLY_CONSOLE_SIZE ?= UART2_SIZE
42CFG_EARLY_CONSOLE_BAUDRATE ?= 1500000
43CFG_EARLY_CONSOLE_CLK_IN_HZ ?= 24000000
44endif
45
46ifeq ($(PLATFORM_FLAVOR),px30)
47include core/arch/arm/cpu/cortex-armv8-0.mk
48$(call force,CFG_TEE_CORE_NB_CORE,4)
49
50CFG_TZDRAM_START ?= 0x30000000
51CFG_TZDRAM_SIZE  ?= 0x02000000
52CFG_SHMEM_START  ?= 0x32000000
53CFG_SHMEM_SIZE   ?= 0x00400000
54
55CFG_EARLY_CONSOLE ?= n
56endif
57
58ifeq ($(platform-flavor-armv8),1)
59$(call force,CFG_ARM64_core,y)
60$(call force,CFG_WITH_ARM_TRUSTED_FW,y)
61$(call force,CFG_WITH_LPAE,y)
62ta-targets = ta_arm64
63endif
64