[Feature]add MT2731_MP2_MR2_SVN388 baseline version

Change-Id: Ief04314834b31e27effab435d3ca8ba33b499059
diff --git a/src/bsp/lk/target/aiv8365m1v1-aiot/include/target/cust_usb.h b/src/bsp/lk/target/aiv8365m1v1-aiot/include/target/cust_usb.h
new file mode 100644
index 0000000..c84152c
--- /dev/null
+++ b/src/bsp/lk/target/aiv8365m1v1-aiot/include/target/cust_usb.h
@@ -0,0 +1,9 @@
+#pragma once
+
+#define CONFIG_USBD_LANG    "0409"
+
+#define USB_VENDORID        (0x0BB4)
+#define USB_PRODUCTID       (0x0C01)
+#define USB_VERSIONID       (0x0100)
+#define USB_MANUFACTURER    "MediaTek"
+#define USB_PRODUCT_NAME    "Yocto"
diff --git a/src/bsp/lk/target/aiv8365m1v1-aiot/rules.mk b/src/bsp/lk/target/aiv8365m1v1-aiot/rules.mk
new file mode 100644
index 0000000..9336344
--- /dev/null
+++ b/src/bsp/lk/target/aiv8365m1v1-aiot/rules.mk
@@ -0,0 +1,44 @@
+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 := mt8133
+DRAM_TYPE := PCDDR4
+
+TZ_PART_NAME := tee_a
+RECOVERY_TZ_PART_NAME = tee_a
+DTBO_PART_NAME := dtbo
+BOOT_PART_NAME := boot_a
+RECOVERY_BOOT_PART_NAME = boot_b
+BL33_PART_NAME := bl33
+RECOVERY_BL33_PART_NAME := bl33
+USB_PHY := realchip
+
+ifeq ($(LK_AS_BL33),0)
+MODULE_DEPS += \
+	$(LOCAL_DIR)/../../../dramk_8133/$(DRAM_TYPE)
+endif
+
+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)\" \
+                  -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/nand
+
+include make/module.mk
diff --git a/src/bsp/lk/target/aiv8365m1v1-aiot/target.c b/src/bsp/lk/target/aiv8365m1v1-aiot/target.c
new file mode 100644
index 0000000..543eb85
--- /dev/null
+++ b/src/bsp/lk/target/aiv8365m1v1-aiot/target.c
@@ -0,0 +1,39 @@
+/*
+ * Copyright (c) 2019 MediaTek Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining
+ * a copy of this software and associated documentation files
+ * (the "Software"), to deal in the Software without restriction,
+ * including without limitation the rights to use, copy, modify, merge,
+ * publish, distribute, sublicense, and/or sell copies of the Software,
+ * and to permit persons to whom the Software is furnished to do so,
+ * subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be
+ * included in all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+ * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+ * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+ * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+*/
+
+#include <lk/init.h>
+#include <platform/nand/nand.h>
+#include <sys/types.h>
+
+extern void platform_memory_init(void);
+
+void target_early_init(void)
+{
+}
+
+void target_init(void)
+{
+}
+
+LK_INIT_HOOK(nand_init_device, &nand_init_device, LK_INIT_LEVEL_THREADING);
+LK_INIT_HOOK(platform_memory_init, &platform_memory_init, LK_INIT_LEVEL_ARCH);