[Feature]add MT2731_MP2_MR2_SVN388 baseline version

Change-Id: Ief04314834b31e27effab435d3ca8ba33b499059
diff --git a/src/kernel/linux/v4.14/arch/arm/mach-meson/Kconfig b/src/kernel/linux/v4.14/arch/arm/mach-meson/Kconfig
new file mode 100644
index 0000000..ee30511
--- /dev/null
+++ b/src/kernel/linux/v4.14/arch/arm/mach-meson/Kconfig
@@ -0,0 +1,32 @@
+menuconfig ARCH_MESON
+	bool "Amlogic Meson SoCs"
+	depends on ARCH_MULTI_V7
+	select GPIOLIB
+	select GENERIC_IRQ_CHIP
+	select ARM_GIC
+	select CACHE_L2X0
+	select PINCTRL
+	select PINCTRL_MESON
+	select COMMON_CLK
+	select COMMON_CLK_AMLOGIC
+
+if ARCH_MESON
+
+config MACH_MESON6
+	bool "Amlogic Meson6 (8726MX) SoCs support"
+	default ARCH_MESON
+	select MESON6_TIMER
+
+config MACH_MESON8
+	bool "Amlogic Meson8 SoCs support"
+	default ARCH_MESON
+	select MESON6_TIMER
+	select COMMON_CLK_MESON8B
+
+config MACH_MESON8B
+	bool "Amlogic Meson8b SoCs support"
+	default ARCH_MESON
+	select MESON6_TIMER
+	select COMMON_CLK_MESON8B
+
+endif
diff --git a/src/kernel/linux/v4.14/arch/arm/mach-meson/Makefile b/src/kernel/linux/v4.14/arch/arm/mach-meson/Makefile
new file mode 100644
index 0000000..9d7380e
--- /dev/null
+++ b/src/kernel/linux/v4.14/arch/arm/mach-meson/Makefile
@@ -0,0 +1 @@
+obj-$(CONFIG_ARCH_MESON) += meson.o
diff --git a/src/kernel/linux/v4.14/arch/arm/mach-meson/meson.c b/src/kernel/linux/v4.14/arch/arm/mach-meson/meson.c
new file mode 100644
index 0000000..4e23571
--- /dev/null
+++ b/src/kernel/linux/v4.14/arch/arm/mach-meson/meson.c
@@ -0,0 +1,30 @@
+/*
+ * Copyright (C) 2014 Carlo Caione <carlo@caione.org>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
+ * more details.
+ *
+ */
+
+#include <linux/of_platform.h>
+#include <asm/mach/arch.h>
+
+static const char * const meson_common_board_compat[] = {
+	"amlogic,meson6",
+	"amlogic,meson8",
+	"amlogic,meson8b",
+	NULL,
+};
+
+DT_MACHINE_START(MESON, "Amlogic Meson platform")
+	.dt_compat	= meson_common_board_compat,
+	.l2c_aux_val	= 0,
+	.l2c_aux_mask	= ~0,
+MACHINE_END