xref: /optee_os/core/arch/arm/plat-hisilicon/conf.mk (revision 17f326eba66aab9ea16549754a95252dd5551a13)
1PLATFORM_FLAVOR ?= hi3519av100_demo
2
3hi3519av100-flavorlist = hi3519av100_demo hi3519av100_tst
4
5ifneq (,$(filter $(PLATFORM_FLAVOR),$(hi3519av100-flavorlist)))
6include core/arch/arm/cpu/cortex-armv8-0.mk
7$(call force,CFG_HI3519AV100,y)
8$(call force,CFG_TEE_CORE_NB_CORE,2)
9# Hi3519av100 has got two clusters, one core per cluster
10$(call force,CFG_CORE_CLUSTER_SHIFT,0)
11
12$(call force,CFG_GENERIC_BOOT,y)
13$(call force,CFG_PL011,y)
14$(call force,CFG_PM_STUBS,y)
15$(call force,CFG_SECURE_TIME_SOURCE_CNTPCT,y)
16$(call force,CFG_ARM32_core,y)
17$(call force,CFG_PSCI_ARM32,y)
18
19CFG_BOOT_SECONDARY_REQUEST ?= y
20CFG_NUM_THREADS ?= 4
21CFG_CRYPTO_WITH_CE ?= y
22CFG_WITH_STACK_CANARIES ?= y
23CFG_NS_ENTRY_ADDR ?= 0x22008000
24CFG_CORE_HEAP_SIZE ?= 131072
25
26#
27# Hi3519av100 memory map
28#
29# This is a general memory map for demo board, and for your own board,
30# you have to define your own memory map.
31#
32#  0x4000_0000 [DRAM_LIMIT]
33#    other (media memory zone/uboot and other)
34#
35#  0x3360_0000                                  -
36#    TA RAM: 12 MiB                             | TZDRAM
37#  0x32a0_0000                                  -
38#
39#  CFG_WITH_PAGER=n                              -
40#    TEE RAM: 4 MiB (TEE_RAM_VA_SIZE)           | TZDRAM
41#  0x3260_0000 [TZDRAM_BASE, TEE_LOAD_ADDR]     -
42#
43#  CFG_WITH_PAGER=y
44#    Unused
45#  0x32607_0000                                 -
46#    TEE RAM: 448 KiB (TZSRAM_SIZE)             | TZSRAM
47#  0x3260_0000 [TZDRAM_BASE, TZSRAM_BASE, TEE_LOAD_ADDR]
48#    OP-TEE Future Use: 2 MiB
49#  0x3240_0000
50#    Shared memory: 4 MB
51#  0x3200_0000
52#    Linux memory: 256MB
53#  0x2200_0000
54#    DSP reserved memory:      32MB
55#  0x2000_0000 [DRAM_BASE]
56#
57CFG_TZDRAM_START ?= 0x32600000
58CFG_TZDRAM_SIZE ?= 0x01000000
59CFG_TEE_RAM_VA_SIZE ?= 0x00400000
60CFG_SHMEM_START ?= 0x32000000
61CFG_SHMEM_SIZE ?= 0x00400000
62else
63$(error Error: Not supported PLATFORM_FLAVOR or NULL PLATFORM_FLAVOR)
64endif
65