xref: /optee_os/core/arch/arm/plat-rockchip/conf.mk (revision 2949576eb4b8e0eb7a6d9c97e38a30841f621b61)
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)
33CFG_CRYPTO_WITH_CE ?= y
34
35CFG_TZDRAM_START ?= 0x30000000
36CFG_TZDRAM_SIZE  ?= 0x02000000
37CFG_SHMEM_START  ?= 0x32000000
38CFG_SHMEM_SIZE   ?= 0x00400000
39
40CFG_EARLY_CONSOLE ?= y
41CFG_EARLY_CONSOLE_BASE ?= UART2_BASE
42CFG_EARLY_CONSOLE_SIZE ?= UART2_SIZE
43CFG_EARLY_CONSOLE_BAUDRATE ?= 1500000
44CFG_EARLY_CONSOLE_CLK_IN_HZ ?= 24000000
45endif
46
47ifeq ($(PLATFORM_FLAVOR),px30)
48include core/arch/arm/cpu/cortex-armv8-0.mk
49$(call force,CFG_TEE_CORE_NB_CORE,4)
50
51CFG_TZDRAM_START ?= 0x30000000
52CFG_TZDRAM_SIZE  ?= 0x02000000
53CFG_SHMEM_START  ?= 0x32000000
54CFG_SHMEM_SIZE   ?= 0x00400000
55
56CFG_EARLY_CONSOLE ?= n
57endif
58
59ifeq ($(PLATFORM_FLAVOR),rk3588)
60include core/arch/arm/cpu/cortex-armv8-0.mk
61$(call force,CFG_TEE_CORE_NB_CORE,8)
62$(call force,CFG_ARM_GICV3,y)
63$(call force,CFG_AUTO_MAX_PA_BITS,y)
64$(call force,CFG_CRYPTO_WITH_CE,y)
65$(call force,CFG_ROCKCHIP_OTP,y)
66
67CFG_RK_SECURE_BOOT ?= y
68# Disable CFG_RK_SECURE_BOOT_SIMULATION to actually fuse the hash into the OTP.
69# Enabling this option is necessary to actually enable secure boot, but may
70# potentially brick your device.
71CFG_RK_SECURE_BOOT_SIMULATION ?= y
72
73CFG_TZDRAM_START ?= 0x30000000
74CFG_TZDRAM_SIZE ?= 0x02000000
75CFG_SHMEM_START ?= 0x32000000
76CFG_SHMEM_SIZE ?= 0x00400000
77
78CFG_EARLY_CONSOLE ?= y
79CFG_EARLY_CONSOLE_BASE ?= UART2_BASE
80CFG_EARLY_CONSOLE_SIZE ?= UART2_SIZE
81CFG_EARLY_CONSOLE_BAUDRATE ?= 1500000
82CFG_EARLY_CONSOLE_CLK_IN_HZ ?= 24000000
83
84CFG_DTB_MAX_SIZE ?= 0x60000
85endif
86
87ifeq ($(platform-flavor-armv8),1)
88$(call force,CFG_ARM64_core,y)
89$(call force,CFG_WITH_ARM_TRUSTED_FW,y)
90ta-targets = ta_arm64
91endif
92