xref: /optee_os/core/arch/arm/plat-hikey/conf.mk (revision eee73fd09042bb8c5855deaaa10fb80fd8ee8c04)
145a2d566SVictor ChongPLATFORM_FLAVOR ?= hikey
245a2d566SVictor Chong
343896851SEtienne Carriereinclude core/arch/arm/cpu/cortex-armv8-0.mk
443896851SEtienne Carriere
59460285eSJerome Forissier$(call force,CFG_TEE_CORE_NB_CORE,8)
6dffb0049SJerome Forissier$(call force,CFG_PL011,y)
7dffb0049SJerome Forissier$(call force,CFG_SECURE_TIME_SOURCE_CNTPCT,y)
8dffb0049SJerome Forissier$(call force,CFG_WITH_ARM_TRUSTED_FW,y)
9d70e78c4SJerome Forissier
1040c1fab8SJerome ForissierCFG_NUM_THREADS ?= 8
117823a7b5SPascal BrandCFG_CRYPTO_WITH_CE ?= y
1271c1078aSVictor Chong
1366df8a2cSVictor Chongifeq ($(PLATFORM_FLAVOR),hikey)
1416c8ce9cSJerome ForissierCFG_CORE_HEAP_SIZE ?= 73728
15aca1545dSVictor ChongCFG_PL061 ?= y
16aca1545dSVictor ChongCFG_PL022 ?= y
1771c1078aSVictor ChongCFG_SPI ?= y
1871c1078aSVictor Chong
1971c1078aSVictor Chongifeq ($(CFG_SPI_TEST),y)
2071c1078aSVictor Chong$(call force,CFG_SPI,y)
2171c1078aSVictor Chongendif
2271c1078aSVictor Chong
2371c1078aSVictor Chongifeq ($(CFG_SPI),y)
2471c1078aSVictor Chong$(call force,CFG_PL061,y)
2571c1078aSVictor Chong$(call force,CFG_PL022,y)
2671c1078aSVictor Chongendif
2771c1078aSVictor Chong
2871c1078aSVictor Chongifeq ($(CFG_PL061),y)
2971c1078aSVictor Chongcore-platform-cppflags		+= -DPLAT_PL061_MAX_GPIOS=160
3071c1078aSVictor Chongendif
3166df8a2cSVictor Chongendif
32de1d7306SJerome Forissier
3324a8c0adSPeter GriffinCFG_CACHE_API ?= y
34b30b0d41SJerome ForissierCFG_SECURE_DATA_PATH ?= n
35de1d7306SJerome ForissierCFG_TEE_SDP_MEM_BASE ?= 0x3E800000
36de1d7306SJerome ForissierCFG_TEE_SDP_MEM_SIZE ?= 0x00400000
3766df8a2cSVictor Chong
383ff350a1SVictor Chongifeq ($(PLATFORM_FLAVOR),hikey)
393ff350a1SVictor ChongCFG_CONSOLE_UART ?= 3
408d91fe09SVictor ChongCFG_DRAM_SIZE_GB ?= 2
413ff350a1SVictor Chongendif
423ff350a1SVictor Chong
4366df8a2cSVictor Chongifeq ($(PLATFORM_FLAVOR),hikey960)
4466df8a2cSVictor ChongCFG_CONSOLE_UART ?= 6
458d91fe09SVictor ChongCFG_DRAM_SIZE_GB ?= 3
464525508aSJerome ForissierCFG_CORE_BGET_BESTFIT ?= y
47a28e3d9dSJerome Forissierifeq ($(CFG_ARM32_core),y)
48a28e3d9dSJerome ForissierCFG_ASAN_SHADOW_OFFSET ?= 0x372E38E0
49a28e3d9dSJerome Forissierendif
507ce2319eSHenrik Uhrenfeldt# Hikey960 4G/6G versions have physical addresses above 4G range
517ce2319eSHenrik Uhrenfeldtifneq (,$(filter 4 6,$(CFG_DRAM_SIZE_GB)))
527ce2319eSHenrik Uhrenfeldt$(call force,CFG_CORE_ARM64_PA_BITS,36)
537ce2319eSHenrik Uhrenfeldtendif
5466df8a2cSVictor Chongendif
558fd4d26fSEtienne Carriere
568fd4d26fSEtienne CarriereCFG_TZDRAM_START ?= 0x3F000000
578fd4d26fSEtienne CarriereCFG_TZDRAM_SIZE ?= 0x01000000
588fd4d26fSEtienne CarriereCFG_SHMEM_START ?= 0x3EE00000
598fd4d26fSEtienne CarriereCFG_SHMEM_SIZE ?= 0x00200000
60318b762eSJerome ForissierCFG_TEE_RAM_VA_SIZE ?= 0x00200000
61*eee73fd0SWen BinCFG_DRAM1_BASE ?= 0x40000000
62bad91efaSJens Wiklander
63bad91efaSJens WiklanderCFG_IN_TREE_EARLY_TAS += avb/023f8f1a-292a-432b-8fc4-de8471358067
64513b0748SOlivier Masse
65513b0748SOlivier MasseCFG_EMBED_DTB_SOURCE_FILE ?= hikey.dts
66