blob: 9e94be6b732c7292ddc7eb0528b14963a9af5b21 [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001LOCAL_DIR := $(GET_LOCAL_DIR)
2MODULE := ${LOCAL_DIR}
3
4GLOBAL_INCLUDES += \
5 $(LOCAL_DIR)/include
6
7MODULE_SRCS += \
8 $(LOCAL_DIR)/target.c \
9
10PLATFORM := mt2701
11
12TZ_PART_NAME := TEE1
13RECOVERY_TZ_PART_NAME = TEE2
14DTBO_PART_NAME := DTBO
15BOOT_PART_NAME := UBOOT1
16RECOVERY_BOOT_PART_NAME = UBOOT2
17
18CACHED_MEMPOOL_ADDR := 0x85000000
19CACHED_MEMPOOL_SIZE := 0x1AE00000 # 430MB
20
21SCRATCH_SIZE := 0x08000000 # 128MB
22MAX_TEE_DRAM_SIZE := 0x10000000 # 256M
23
24BL33_ADDR := 0x81e00000
25
26OPTION_CLEAR_FASTBOOT_FLAG := 1
27OPTION_CLEAR_RECOVERY_FLAG := 1
28
29# NAND page address of PMBR for those NAND projects that PMBR is not at LBA0
30NAND_PAGE_ADDR_OF_PMBR := 512
31
32GLOBAL_CFLAGS += -DTZ_PART_NAME=\"$(TZ_PART_NAME)\" \
33 -DDTBO_PART_NAME=\"$(DTBO_PART_NAME)\" \
34 -DBOOT_PART_NAME=\"$(BOOT_PART_NAME)\" \
35 -DRECOVERY_BOOT_PART_NAME=\"$(RECOVERY_BOOT_PART_NAME)\" \
36 -DRECOVERY_TZ_PART_NAME=\"$(RECOVERY_TZ_PART_NAME)\" \
37
38GLOBAL_DEFINES += CACHED_MEMPOOL_ADDR=$(CACHED_MEMPOOL_ADDR) \
39 CACHED_MEMPOOL_SIZE=$(CACHED_MEMPOOL_SIZE) \
40 OPTION_CLEAR_FASTBOOT_FLAG=$(OPTION_CLEAR_FASTBOOT_FLAG) \
41 OPTION_CLEAR_RECOVERY_FLAG=$(OPTION_CLEAR_RECOVERY_FLAG) \
42 BL33_ADDR=$(BL33_ADDR) \
43 CUSTOM_DEFAULT_STACK_SIZE=10240 \
44 NAND_PAGE_ADDR_OF_PMBR=$(NAND_PAGE_ADDR_OF_PMBR)
45
46MODULE_DEPS += \
47 platform/$(PLATFORM)/drivers/nand \
48 platform/$(PLATFORM)/drivers/efuse \
49
50include make/module.mk
51