rjw | 1f88458 | 2022-01-06 17:20:42 +0800 | [diff] [blame^] | 1 | LOCAL_DIR := $(GET_LOCAL_DIR) |
| 2 | MODULE := ${LOCAL_DIR} |
| 3 | |
| 4 | GLOBAL_INCLUDES += \ |
| 5 | $(LOCAL_DIR)/include |
| 6 | |
| 7 | MODULE_SRCS += \ |
| 8 | $(LOCAL_DIR)/target.c |
| 9 | |
| 10 | SRC_CLOCK := 26000000 |
| 11 | |
| 12 | PLATFORM := mediatek |
| 13 | MTK_PLATFORM := mt6771 |
| 14 | DRAM_TYPE := LPDDR4 |
| 15 | |
| 16 | TZ_PART_NAME := tee_a |
| 17 | RECOVERY_TZ_PART_NAME = tee_b |
| 18 | DTBO_PART_NAME := dtbo |
| 19 | BOOT_PART_NAME := boot_a |
| 20 | RECOVERY_BOOT_PART_NAME = boot_b |
| 21 | SPM_PART_NAME := spmfw |
| 22 | SSPM_PART_NAME := sspm_a |
| 23 | BL33_PART_NAME := UBOOT |
| 24 | RECOVERY_BL33_PART_NAME := UBOOT |
| 25 | ROOTFS_PART_NAME := ROOTFS |
| 26 | RTC_CHECK_FASTBOOT := yes |
| 27 | SET_FDT_EMI_INFO := yes |
| 28 | |
| 29 | ifeq ($(WITH_KERNEL_VM),1) |
| 30 | CACHED_MEMPOOL_ADDR := 0xfffffff045000000 |
| 31 | UNCACHED_MEMPOOL_ADDR ?= 0xfffffff044800000 |
| 32 | BL33_ADDR := 0xfffffff041e00000 |
| 33 | else |
| 34 | CACHED_MEMPOOL_ADDR := 0x45000000 |
| 35 | UNCACHED_MEMPOOL_ADDR ?= 0x44800000 |
| 36 | # CACHED_MEMPOOL_SIZE := 0x1AE00000 # 430MB |
| 37 | BL33_ADDR := 0x41e00000 |
| 38 | endif |
| 39 | |
| 40 | CACHED_MEMPOOL_SIZE := 0x0AA00000 # 170MB |
| 41 | UNCACHED_MEMPOOL_SIZE ?= 0x200000 # 2MB |
| 42 | SCRATCH_SIZE := 0x04000000 # 128MB |
| 43 | MAX_TEE_DRAM_SIZE := 0x01000000 # 256M |
| 44 | |
| 45 | GLOBAL_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 | |
| 58 | MODULE_DEPS += \ |
| 59 | platform/$(PLATFORM)/$(MTK_PLATFORM)/drivers/mmc \ |
| 60 | |
| 61 | GLOBAL_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 | |
| 70 | include make/module.mk |