blob: 502a8e8e6fbb397f00d11fdfca3d7e7721f2c521 [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
10SRC_CLOCK := 26000000
11
12PLATFORM := mediatek
13MTK_PLATFORM := mt6771
14DRAM_TYPE := LPDDR4
15
16TZ_PART_NAME := tee_a
17RECOVERY_TZ_PART_NAME = tee_b
18DTBO_PART_NAME := dtbo
19BOOT_PART_NAME := boot_a
20RECOVERY_BOOT_PART_NAME = boot_b
21SPM_PART_NAME := spmfw
22SSPM_PART_NAME := sspm_a
23BL33_PART_NAME := UBOOT
24RECOVERY_BL33_PART_NAME := UBOOT
25ROOTFS_PART_NAME := ROOTFS
26RTC_CHECK_FASTBOOT := yes
27SET_FDT_EMI_INFO := yes
28
29ifeq ($(WITH_KERNEL_VM),1)
30CACHED_MEMPOOL_ADDR := 0xfffffff045000000
31UNCACHED_MEMPOOL_ADDR ?= 0xfffffff044800000
32BL33_ADDR := 0xfffffff041e00000
33else
34CACHED_MEMPOOL_ADDR := 0x45000000
35UNCACHED_MEMPOOL_ADDR ?= 0x44800000
36# CACHED_MEMPOOL_SIZE := 0x1AE00000 # 430MB
37BL33_ADDR := 0x41e00000
38endif
39
40CACHED_MEMPOOL_SIZE := 0x0AA00000 # 170MB
41UNCACHED_MEMPOOL_SIZE ?= 0x200000 # 2MB
42SCRATCH_SIZE := 0x04000000 # 128MB
43MAX_TEE_DRAM_SIZE := 0x01000000 # 256M
44
45GLOBAL_CFLAGS += -DTZ_PART_NAME=\"$(TZ_PART_NAME)\" \
46 -DDTBO_PART_NAME=\"$(DTBO_PART_NAME)\" \
47 -DBOOT_PART_NAME=\"$(BOOT_PART_NAME)\" \
48 -DRECOVERY_BOOT_PART_NAME=\"$(RECOVERY_BOOT_PART_NAME)\" \
49 -DRECOVERY_TZ_PART_NAME=\"$(RECOVERY_TZ_PART_NAME)\" \
50 -DSPM_PART_NAME=\"$(SPM_PART_NAME)\" \
51 -DSSPM_PART_NAME=\"$(SSPM_PART_NAME)\" \
52 -DBL33_PART_NAME=\"$(BL33_PART_NAME)\" \
53 -DROOTFS_PART_NAME=\"$(ROOTFS_PART_NAME)\" \
54 -DRECOVERY_BL33_PART_NAME=\"$(RECOVERY_BL33_PART_NAME)\"
55 -DDRAM_TYPE=\"$(DRAM_TYPE)\" \
56 -DSRC_CLOCK=$(SRC_CLOCK) \
57
58MODULE_DEPS += \
59 platform/$(PLATFORM)/$(MTK_PLATFORM)/drivers/mmc \
60
61GLOBAL_DEFINES += CACHED_MEMPOOL_ADDR=$(CACHED_MEMPOOL_ADDR) \
62 CACHED_MEMPOOL_SIZE=$(CACHED_MEMPOOL_SIZE) \
63 UNCACHED_MEMPOOL_ADDR=$(UNCACHED_MEMPOOL_ADDR) \
64 UNCACHED_MEMPOOL_SIZE=$(UNCACHED_MEMPOOL_SIZE) \
65 BL33_ADDR=$(BL33_ADDR) \
66 SRC_CLOCK=$(SRC_CLOCK) \
67 RTC_CHECK_FASTBOOT=$(RTC_CHECK_FASTBOOT) \
68 SET_FDT_EMI_INFO=$(SET_FDT_EMI_INFO)
69
70include make/module.mk