[Feature]add MT2731_MP2_MR2_SVN388 baseline version

Change-Id: Ief04314834b31e27effab435d3ca8ba33b499059
diff --git a/src/bsp/lk/target/aiv8183m1v2_64b_test/rules.mk b/src/bsp/lk/target/aiv8183m1v2_64b_test/rules.mk
new file mode 100644
index 0000000..502a8e8
--- /dev/null
+++ b/src/bsp/lk/target/aiv8183m1v2_64b_test/rules.mk
@@ -0,0 +1,70 @@
+LOCAL_DIR := $(GET_LOCAL_DIR)
+MODULE := ${LOCAL_DIR}
+
+GLOBAL_INCLUDES += \
+    $(LOCAL_DIR)/include
+
+MODULE_SRCS += \
+    $(LOCAL_DIR)/target.c
+
+SRC_CLOCK := 26000000
+
+PLATFORM := mediatek
+MTK_PLATFORM := mt6771
+DRAM_TYPE := LPDDR4
+
+TZ_PART_NAME := tee_a
+RECOVERY_TZ_PART_NAME = tee_b
+DTBO_PART_NAME := dtbo
+BOOT_PART_NAME := boot_a
+RECOVERY_BOOT_PART_NAME = boot_b
+SPM_PART_NAME := spmfw
+SSPM_PART_NAME := sspm_a
+BL33_PART_NAME := UBOOT
+RECOVERY_BL33_PART_NAME := UBOOT
+ROOTFS_PART_NAME := ROOTFS
+RTC_CHECK_FASTBOOT := yes
+SET_FDT_EMI_INFO := yes
+
+ifeq ($(WITH_KERNEL_VM),1)
+CACHED_MEMPOOL_ADDR := 0xfffffff045000000
+UNCACHED_MEMPOOL_ADDR ?= 0xfffffff044800000
+BL33_ADDR := 0xfffffff041e00000
+else
+CACHED_MEMPOOL_ADDR := 0x45000000
+UNCACHED_MEMPOOL_ADDR ?= 0x44800000
+# CACHED_MEMPOOL_SIZE := 0x1AE00000 # 430MB
+BL33_ADDR := 0x41e00000
+endif
+
+CACHED_MEMPOOL_SIZE := 0x0AA00000 # 170MB
+UNCACHED_MEMPOOL_SIZE ?= 0x200000 # 2MB
+SCRATCH_SIZE        := 0x04000000 # 128MB
+MAX_TEE_DRAM_SIZE   := 0x01000000 # 256M
+
+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)\" \
+                  -DSPM_PART_NAME=\"$(SPM_PART_NAME)\" \
+                  -DSSPM_PART_NAME=\"$(SSPM_PART_NAME)\" \
+                  -DBL33_PART_NAME=\"$(BL33_PART_NAME)\" \
+                  -DROOTFS_PART_NAME=\"$(ROOTFS_PART_NAME)\" \
+                  -DRECOVERY_BL33_PART_NAME=\"$(RECOVERY_BL33_PART_NAME)\"
+                  -DDRAM_TYPE=\"$(DRAM_TYPE)\" \
+                  -DSRC_CLOCK=$(SRC_CLOCK) \
+
+MODULE_DEPS += \
+    platform/$(PLATFORM)/$(MTK_PLATFORM)/drivers/mmc \
+
+GLOBAL_DEFINES += CACHED_MEMPOOL_ADDR=$(CACHED_MEMPOOL_ADDR) \
+                  CACHED_MEMPOOL_SIZE=$(CACHED_MEMPOOL_SIZE) \
+                  UNCACHED_MEMPOOL_ADDR=$(UNCACHED_MEMPOOL_ADDR) \
+                  UNCACHED_MEMPOOL_SIZE=$(UNCACHED_MEMPOOL_SIZE) \
+                  BL33_ADDR=$(BL33_ADDR) \
+                  SRC_CLOCK=$(SRC_CLOCK) \
+                  RTC_CHECK_FASTBOOT=$(RTC_CHECK_FASTBOOT) \
+                  SET_FDT_EMI_INFO=$(SET_FDT_EMI_INFO) 
+
+include make/module.mk