xref: /linux/arch/arm/mach-imx/Makefile (revision eeae56887bc69bd96025be8117cccacd5cec0f6c)
1# SPDX-License-Identifier: GPL-2.0
2obj-y := cpu.o system.o irq-common.o
3
4obj-$(CONFIG_SOC_IMX25) += cpu-imx25.o mach-imx25.o pm-imx25.o
5
6obj-$(CONFIG_SOC_IMX27) += cpu-imx27.o pm-imx27.o mach-imx27.o mm-imx27.o
7
8obj-$(CONFIG_SOC_IMX31) += mm-imx3.o cpu-imx31.o iomux-imx31.o mach-imx31.o
9obj-$(CONFIG_SOC_IMX35) += mm-imx3.o cpu-imx35.o mach-imx35.o
10
11imx5-pm-$(CONFIG_PM) += pm-imx5.o
12obj-$(CONFIG_SOC_IMX5) += cpu-imx5.o $(imx5-pm-y)
13
14obj-$(CONFIG_ARCH_MXC_IOMUX_V3) += iomux-v3.o
15
16obj-$(CONFIG_MXC_TZIC) += tzic.o
17obj-$(CONFIG_MXC_AVIC) += avic.o
18
19obj-$(CONFIG_MXC_DEBUG_BOARD) += 3ds_debugboard.o
20
21ifeq ($(CONFIG_CPU_IDLE),y)
22obj-$(CONFIG_SOC_IMX5) += cpuidle-imx5.o
23obj-$(CONFIG_SOC_IMX6Q) += cpuidle-imx6q.o
24obj-$(CONFIG_SOC_IMX6SL) += cpuidle-imx6sl.o
25obj-$(CONFIG_SOC_IMX6SLL) += cpuidle-imx6sx.o
26obj-$(CONFIG_SOC_IMX6SX) += cpuidle-imx6sx.o
27obj-$(CONFIG_SOC_IMX6UL) += cpuidle-imx6sx.o
28obj-$(CONFIG_SOC_IMX7ULP) += cpuidle-imx7ulp.o
29endif
30
31ifdef CONFIG_SND_SOC_IMX_PCM_FIQ
32obj-y += ssi-fiq.o
33obj-y += ssi-fiq-ksym.o
34endif
35
36obj-$(CONFIG_HAVE_IMX_ANATOP) += anatop.o
37obj-$(CONFIG_HAVE_IMX_GPC) += gpc.o
38obj-$(CONFIG_HAVE_IMX_MMDC) += mmdc.o
39obj-$(CONFIG_HAVE_IMX_SRC) += src.o
40ifneq ($(CONFIG_SOC_IMX6)$(CONFIG_SOC_LS1021A),)
41AFLAGS_headsmp.o :=-Wa,-march=armv7-a
42obj-$(CONFIG_SMP) += headsmp.o platsmp.o
43obj-$(CONFIG_HOTPLUG_CPU) += hotplug.o
44endif
45obj-$(CONFIG_SOC_IMX6Q) += mach-imx6q.o
46obj-$(CONFIG_SOC_IMX6SL) += mach-imx6sl.o
47obj-$(CONFIG_SOC_IMX6SLL) += mach-imx6sl.o
48obj-$(CONFIG_SOC_IMX6SX) += mach-imx6sx.o
49obj-$(CONFIG_SOC_IMX6UL) += mach-imx6ul.o
50obj-$(CONFIG_SOC_IMX7D_CA7) += mach-imx7d.o
51obj-$(CONFIG_SOC_IMX7D_CM4) += mach-imx7d-cm4.o
52obj-$(CONFIG_SOC_IMX7ULP) += mach-imx7ulp.o pm-imx7ulp.o
53
54ifeq ($(CONFIG_SUSPEND),y)
55AFLAGS_suspend-imx6.o :=-Wa,-march=armv7-a
56obj-$(CONFIG_SOC_IMX6) += suspend-imx6.o
57obj-$(CONFIG_SOC_IMX53) += suspend-imx53.o
58endif
59ifeq ($(CONFIG_ARM_CPU_SUSPEND),y)
60AFLAGS_resume-imx6.o :=-Wa,-march=armv7-a
61obj-$(CONFIG_SOC_IMX6) += resume-imx6.o
62endif
63obj-$(CONFIG_SOC_IMX6) += pm-imx6.o
64
65obj-$(CONFIG_SOC_IMX1) += mach-imx1.o
66obj-$(CONFIG_SOC_IMX50) += mach-imx50.o
67obj-$(CONFIG_SOC_IMX51) += mach-imx51.o
68obj-$(CONFIG_SOC_IMX53) += mach-imx53.o
69
70obj-$(CONFIG_SOC_VF610) += mach-vf610.o
71
72obj-$(CONFIG_SOC_LS1021A) += mach-ls1021a.o
73
74obj-y += devices/
75