xref: /openbmc/linux/arch/arm/mach-imx/Makefile (revision c93197b0)
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
7obj-$(CONFIG_SOC_IMX27) += mm-imx27.o ehci-imx27.o
8
9obj-$(CONFIG_SOC_IMX31) += mm-imx3.o cpu-imx31.o iomux-imx31.o ehci-imx31.o mach-imx31.o
10obj-$(CONFIG_SOC_IMX35) += mm-imx3.o cpu-imx35.o ehci-imx35.o
11
12imx5-pm-$(CONFIG_PM) += pm-imx5.o
13obj-$(CONFIG_SOC_IMX5) += cpu-imx5.o $(imx5-pm-y)
14
15obj-$(CONFIG_IMX_HAVE_IOMUX_V1) += iomux-v1.o
16obj-$(CONFIG_ARCH_MXC_IOMUX_V3) += iomux-v3.o
17
18obj-$(CONFIG_MXC_TZIC) += tzic.o
19obj-$(CONFIG_MXC_AVIC) += avic.o
20
21obj-$(CONFIG_MXC_DEBUG_BOARD) += 3ds_debugboard.o
22
23ifeq ($(CONFIG_CPU_IDLE),y)
24obj-$(CONFIG_SOC_IMX5) += cpuidle-imx5.o
25obj-$(CONFIG_SOC_IMX6Q) += cpuidle-imx6q.o
26obj-$(CONFIG_SOC_IMX6SL) += cpuidle-imx6sl.o
27obj-$(CONFIG_SOC_IMX6SLL) += cpuidle-imx6sx.o
28obj-$(CONFIG_SOC_IMX6SX) += cpuidle-imx6sx.o
29obj-$(CONFIG_SOC_IMX6UL) += cpuidle-imx6sx.o
30obj-$(CONFIG_SOC_IMX7ULP) += cpuidle-imx7ulp.o
31endif
32
33ifdef CONFIG_SND_SOC_IMX_PCM_FIQ
34obj-y += ssi-fiq.o
35obj-y += ssi-fiq-ksym.o
36endif
37
38# i.MX35 based machines
39obj-$(CONFIG_MACH_PCM043) += mach-pcm043.o
40obj-$(CONFIG_MACH_MX35_3DS) += mach-mx35_3ds.o
41obj-$(CONFIG_MACH_VPR200) += mach-vpr200.o
42obj-$(CONFIG_MACH_IMX35_DT) += imx35-dt.o
43
44obj-$(CONFIG_HAVE_IMX_ANATOP) += anatop.o
45obj-$(CONFIG_HAVE_IMX_GPC) += gpc.o
46obj-$(CONFIG_HAVE_IMX_MMDC) += mmdc.o
47obj-$(CONFIG_HAVE_IMX_SRC) += src.o
48ifneq ($(CONFIG_SOC_IMX6)$(CONFIG_SOC_LS1021A),)
49AFLAGS_headsmp.o :=-Wa,-march=armv7-a
50obj-$(CONFIG_SMP) += headsmp.o platsmp.o
51obj-$(CONFIG_HOTPLUG_CPU) += hotplug.o
52endif
53obj-$(CONFIG_SOC_IMX6Q) += mach-imx6q.o
54obj-$(CONFIG_SOC_IMX6SL) += mach-imx6sl.o
55obj-$(CONFIG_SOC_IMX6SLL) += mach-imx6sl.o
56obj-$(CONFIG_SOC_IMX6SX) += mach-imx6sx.o
57obj-$(CONFIG_SOC_IMX6UL) += mach-imx6ul.o
58obj-$(CONFIG_SOC_IMX7D_CA7) += mach-imx7d.o
59obj-$(CONFIG_SOC_IMX7D_CM4) += mach-imx7d-cm4.o
60obj-$(CONFIG_SOC_IMX7ULP) += mach-imx7ulp.o pm-imx7ulp.o
61
62ifeq ($(CONFIG_SUSPEND),y)
63AFLAGS_suspend-imx6.o :=-Wa,-march=armv7-a
64obj-$(CONFIG_SOC_IMX6) += suspend-imx6.o
65obj-$(CONFIG_SOC_IMX53) += suspend-imx53.o
66endif
67ifeq ($(CONFIG_ARM_CPU_SUSPEND),y)
68AFLAGS_resume-imx6.o :=-Wa,-march=armv7-a
69obj-$(CONFIG_SOC_IMX6) += resume-imx6.o
70endif
71obj-$(CONFIG_SOC_IMX6) += pm-imx6.o
72
73obj-$(CONFIG_SOC_IMX1) += mach-imx1.o
74obj-$(CONFIG_SOC_IMX50) += mach-imx50.o
75obj-$(CONFIG_SOC_IMX51) += mach-imx51.o
76obj-$(CONFIG_SOC_IMX53) += mach-imx53.o
77
78obj-$(CONFIG_SOC_VF610) += mach-vf610.o
79
80obj-$(CONFIG_SOC_LS1021A) += mach-ls1021a.o
81
82obj-y += devices/
83