blob: 194d17e032838e555709e3b51f8b1ff2cdde1795 [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001LOCAL_DIR := $(GET_LOCAL_DIR)
2
3GLOBAL_INCLUDES += \
4 $(LOCAL_DIR)/include
5
6PLATFORM := mt2635
7
8TZ_PART_NAME := tee1
9RECOVERY_TZ_PART_NAME = tee2
10DTBO_PART_NAME := DTBO
11BOOT_PART_NAME := boot
12RECOVERY_BOOT_PART_NAME = recovery
13
14ifeq ($(WITH_KERNEL_VM),1)
15# The physical dram address is 0x40000000 and its virtual address 0xffff00000d600000
16# The SCRATCH_ADDR virtual address would be 0xffff00000d600000 + 0x4000000 = 0xffff00000f400000
17# The BL33_ADDR virtual address would be 0xffff00000d600000 + 0x1e00000 = 0xffff00000f400000
18CACHED_MEMPOOL_ADDR := 0xffff000011600000UL
19BL33_ADDR := 0xffff00000f400000UL
20else
21CACHED_MEMPOOL_ADDR := 0x44000000
22BL33_ADDR := 0x41e00000
23endif
24CACHED_MEMPOOL_SIZE := 0x0AA00000 # 170MB
25
26GLOBAL_CFLAGS += -DTZ_PART_NAME=\"$(TZ_PART_NAME)\" \
27 -DDTBO_PART_NAME=\"$(DTBO_PART_NAME)\" \
28 -DBOOT_PART_NAME=\"$(BOOT_PART_NAME)\" \
29 -DRECOVERY_BOOT_PART_NAME=\"$(RECOVERY_BOOT_PART_NAME)\" \
30 -DRECOVERY_TZ_PART_NAME=\"$(RECOVERY_TZ_PART_NAME)\" \
31
32GLOBAL_DEFINES += CACHED_MEMPOOL_ADDR=$(CACHED_MEMPOOL_ADDR) \
33 CACHED_MEMPOOL_SIZE=$(CACHED_MEMPOOL_SIZE) \
34 BL33_ADDR=$(BL33_ADDR)