rjw | 1f88458 | 2022-01-06 17:20:42 +0800 | [diff] [blame^] | 1 | LOCAL_DIR := $(GET_LOCAL_DIR) |
| 2 | |
| 3 | GLOBAL_INCLUDES += \ |
| 4 | $(LOCAL_DIR)/include |
| 5 | |
| 6 | PLATFORM := mt2635 |
| 7 | |
| 8 | TZ_PART_NAME := tee1 |
| 9 | RECOVERY_TZ_PART_NAME = tee2 |
| 10 | DTBO_PART_NAME := DTBO |
| 11 | BOOT_PART_NAME := boot |
| 12 | RECOVERY_BOOT_PART_NAME = recovery |
| 13 | |
| 14 | ifeq ($(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 |
| 18 | CACHED_MEMPOOL_ADDR := 0xffff000011600000UL |
| 19 | BL33_ADDR := 0xffff00000f400000UL |
| 20 | else |
| 21 | CACHED_MEMPOOL_ADDR := 0x44000000 |
| 22 | BL33_ADDR := 0x41e00000 |
| 23 | endif |
| 24 | CACHED_MEMPOOL_SIZE := 0x0AA00000 # 170MB |
| 25 | |
| 26 | GLOBAL_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 | |
| 32 | GLOBAL_DEFINES += CACHED_MEMPOOL_ADDR=$(CACHED_MEMPOOL_ADDR) \ |
| 33 | CACHED_MEMPOOL_SIZE=$(CACHED_MEMPOOL_SIZE) \ |
| 34 | BL33_ADDR=$(BL33_ADDR) |