MLK-15142-6: imx-common: include imx8m support
authorPeng Fan <peng.fan@nxp.com>
Fri, 23 Jun 2017 02:37:46 +0000 (10:37 +0800)
committerJason Liu <jason.hui.liu@nxp.com>
Thu, 2 Nov 2017 18:36:56 +0000 (02:36 +0800)
Build iomux/i2c/bootaux for i.MX8M.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
arch/arm/Makefile
arch/arm/imx-common/Makefile

index f1406b7..fefadd8 100644 (file)
@@ -95,11 +95,11 @@ libs-y += arch/arm/cpu/
 libs-y += arch/arm/lib/
 
 ifeq ($(CONFIG_SPL_BUILD),y)
-ifneq (,$(CONFIG_MX23)$(CONFIG_MX28)$(CONFIG_MX35)$(filter $(SOC), mx25 mx5 mx6 mx7 mx35))
+ifneq (,$(CONFIG_MX23)$(CONFIG_MX28)$(CONFIG_MX35)$(filter $(SOC), mx25 mx5 mx6 mx7 mx35 imx8m))
 libs-y += arch/arm/imx-common/
 endif
 else
-ifneq (,$(filter $(SOC), mx25 mx27 mx5 mx6 mx7 mx7ulp mx31 mx35 mxs vf610 imx8))
+ifneq (,$(filter $(SOC), mx25 mx27 mx5 mx6 mx7 mx7ulp mx31 mx35 mxs vf610 imx8 imx8m))
 libs-y += arch/arm/imx-common/
 endif
 endif
index f7f978a..43ce117 100644 (file)
@@ -7,9 +7,13 @@
 # SPDX-License-Identifier:     GPL-2.0+
 #
 
-ifeq ($(SOC),$(filter $(SOC),mx25 mx35 mx5 mx6 mx7 vf610))
+ifeq ($(SOC),$(filter $(SOC),mx25 mx35 mx5 mx6 mx7 vf610 imx8m))
 obj-y  = iomux-v3.o
 endif
+ifeq ($(SOC),$(filter $(SOC),imx8m))
+obj-$(CONFIG_IMX_BOOTAUX) += imx_bootaux.o
+obj-$(CONFIG_SYS_I2C_MXC) += i2c-mxv7.o
+endif
 ifeq ($(SOC),$(filter $(SOC),mx5 mx6))
 obj-y  += cpu.o speed.o
 obj-$(CONFIG_SYS_I2C_MXC) += i2c-mxv7.o
@@ -17,7 +21,7 @@ endif
 ifeq ($(SOC),$(filter $(SOC),mx5))
 obj-y  += timer.o
 endif
-ifeq ($(SOC),$(filter $(SOC),mx7 mx6 mxs mx7ulp))
+ifeq ($(SOC),$(filter $(SOC),mx7 mx6 mxs mx7ulp imx8m))
 obj-y  += misc.o
 obj-$(CONFIG_SPL_BUILD)        += spl.o
 endif