[Feature]add MT2731_MP2_MR2_SVN388 baseline version
Change-Id: Ief04314834b31e27effab435d3ca8ba33b499059
diff --git a/src/bsp/lk/target/aud8521pevb2-nand/rules.mk b/src/bsp/lk/target/aud8521pevb2-nand/rules.mk
new file mode 100644
index 0000000..9e94be6
--- /dev/null
+++ b/src/bsp/lk/target/aud8521pevb2-nand/rules.mk
@@ -0,0 +1,51 @@
+LOCAL_DIR := $(GET_LOCAL_DIR)
+MODULE := ${LOCAL_DIR}
+
+GLOBAL_INCLUDES += \
+ $(LOCAL_DIR)/include
+
+MODULE_SRCS += \
+ $(LOCAL_DIR)/target.c \
+
+PLATFORM := mt2701
+
+TZ_PART_NAME := TEE1
+RECOVERY_TZ_PART_NAME = TEE2
+DTBO_PART_NAME := DTBO
+BOOT_PART_NAME := UBOOT1
+RECOVERY_BOOT_PART_NAME = UBOOT2
+
+CACHED_MEMPOOL_ADDR := 0x85000000
+CACHED_MEMPOOL_SIZE := 0x1AE00000 # 430MB
+
+SCRATCH_SIZE := 0x08000000 # 128MB
+MAX_TEE_DRAM_SIZE := 0x10000000 # 256M
+
+BL33_ADDR := 0x81e00000
+
+OPTION_CLEAR_FASTBOOT_FLAG := 1
+OPTION_CLEAR_RECOVERY_FLAG := 1
+
+# NAND page address of PMBR for those NAND projects that PMBR is not at LBA0
+NAND_PAGE_ADDR_OF_PMBR := 512
+
+GLOBAL_CFLAGS += -DTZ_PART_NAME=\"$(TZ_PART_NAME)\" \
+ -DDTBO_PART_NAME=\"$(DTBO_PART_NAME)\" \
+ -DBOOT_PART_NAME=\"$(BOOT_PART_NAME)\" \
+ -DRECOVERY_BOOT_PART_NAME=\"$(RECOVERY_BOOT_PART_NAME)\" \
+ -DRECOVERY_TZ_PART_NAME=\"$(RECOVERY_TZ_PART_NAME)\" \
+
+GLOBAL_DEFINES += CACHED_MEMPOOL_ADDR=$(CACHED_MEMPOOL_ADDR) \
+ CACHED_MEMPOOL_SIZE=$(CACHED_MEMPOOL_SIZE) \
+ OPTION_CLEAR_FASTBOOT_FLAG=$(OPTION_CLEAR_FASTBOOT_FLAG) \
+ OPTION_CLEAR_RECOVERY_FLAG=$(OPTION_CLEAR_RECOVERY_FLAG) \
+ BL33_ADDR=$(BL33_ADDR) \
+ CUSTOM_DEFAULT_STACK_SIZE=10240 \
+ NAND_PAGE_ADDR_OF_PMBR=$(NAND_PAGE_ADDR_OF_PMBR)
+
+MODULE_DEPS += \
+ platform/$(PLATFORM)/drivers/nand \
+ platform/$(PLATFORM)/drivers/efuse \
+
+include make/module.mk
+