xref: /openbmc/linux/arch/arm/mach-omap2/Makefile (revision f2286d2b)
1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0
21dbae815STony Lindgren#
31dbae815STony Lindgren# Makefile for the linux kernel.
41dbae815STony Lindgren#
51dbae815STony Lindgren
61dbae815STony Lindgren# Common support
72ee04b88STony Lindgrenobj-y := id.o io.o control.o devices.o fb.o pm.o \
8133ad7abSTony Lindgren	 common.o dma.o omap-headsmp.o sram.o
9d7607663STony Lindgren
10*f2286d2bSArnd Bergmannhwmod-common				= omap_hwmod.o \
11133ad7abSTony Lindgren					  omap_hwmod_common_data.o \
12133ad7abSTony Lindgren					  omap_hwmod_common_ipblock_data.o \
13133ad7abSTony Lindgren					  omap_device.o display.o hdq1w.o \
14133ad7abSTony Lindgren					  i2c.o wd_timer.o
15c06bfbe7STero Kristoclock-common				= clock.o
16139563adSPaul Walmsleysecure-common				= omap-smc.o omap-secure.o
17445d12a9SPaul Walmsley
1851c22d7bSTony Lindgrenobj-$(CONFIG_ARCH_OMAP2) += $(omap-2-3-common) $(hwmod-common)
19139563adSPaul Walmsleyobj-$(CONFIG_ARCH_OMAP3) += $(omap-2-3-common) $(hwmod-common) $(secure-common)
20f21af425STony Lindgrenobj-$(CONFIG_ARCH_OMAP4) += $(secure-common)
21133ad7abSTony Lindgrenobj-$(CONFIG_SOC_AM33XX) += $(secure-common)
22f21af425STony Lindgrenobj-$(CONFIG_SOC_OMAP5)  += $(secure-common)
23df6c2ec8STony Lindgrenobj-$(CONFIG_SOC_AM43XX) += $(secure-common)
24f21af425STony Lindgrenobj-$(CONFIG_SOC_DRA7XX) += $(secure-common)
25445d12a9SPaul Walmsley
26558eb0bfSPeter Ujfalusiifneq ($(CONFIG_SND_SOC_OMAP_MCBSP),)
27f21af425STony Lindgrenobj-$(CONFIG_OMAP_HWMOD) += mcbsp.o
283ead4679SPeter Ujfalusiendif
2978673bc8SEduardo Valentin
30fbc319f6SThara Gopinathobj-$(CONFIG_TWL4030_CORE) += omap_twl.o
31d44fa156STony Lindgren
32d44fa156STony Lindgrenifneq ($(CONFIG_MFD_CPCAP),)
33d44fa156STony Lindgrenobj-y 					+= pmic-cpcap.o
34d44fa156STony Lindgrenendif
35d44fa156STony Lindgren
36139563adSPaul Walmsleyobj-$(CONFIG_SOC_HAS_OMAP2_SDRC)	+= sdrc.o
37fbc319f6SThara Gopinath
38934f8be7SSantosh Shilimkar# SMP support ONLY available for OMAP4
39eb401553SSantosh Shilimkar
400573b957STony Lindgrensmp-$(CONFIG_SMP)			+= omap-smp.o
41572b16dbSArnd Bergmannsmp-$(CONFIG_HOTPLUG_CPU)		+= omap-hotplug.o
4222fe3b89SMohammed, Afzalomap-4-5-common				=  omap4-common.o omap-wakeupgen.o
4322fe3b89SMohammed, Afzalobj-$(CONFIG_ARCH_OMAP4)		+= $(omap-4-5-common) $(smp-y) sleep44xx.o
4422fe3b89SMohammed, Afzalobj-$(CONFIG_SOC_OMAP5)			+= $(omap-4-5-common) $(smp-y) sleep44xx.o
4533f82f33SAfzal Mohammedobj-$(CONFIG_SOC_AM43XX)		+= $(omap-4-5-common)
4626273e02STony Lindgrenobj-$(CONFIG_SOC_DRA7XX)		+= $(omap-4-5-common) $(smp-y) sleep44xx.o
47d660f9a2SSantosh Shilimkar
48d2353badSArnd Bergmannomap5-dra7-common-$(CONFIG_SOC_HAS_REALTIME_COUNTER) =  timer.o
49d2353badSArnd Bergmannobj-$(CONFIG_SOC_OMAP5)			+= $(omap5-dra7-common-y)
50d2353badSArnd Bergmannobj-$(CONFIG_SOC_DRA7XX)		+= $(omap5-dra7-common-y)
51d86ad463STony Lindgren
52c2d43e39STony Lindgren# Functions loaded to SRAM
5359b479e0STony Lindgrenobj-$(CONFIG_SOC_OMAP2420)		+= sram242x.o
5459b479e0STony Lindgrenobj-$(CONFIG_SOC_OMAP2430)		+= sram243x.o
55c2d43e39STony Lindgren
562f334a38SPaul Walmsley# Restart code (OMAP4/5 currently in omap4-common.c)
572f334a38SPaul Walmsleyobj-$(CONFIG_SOC_OMAP2420)		+= omap2-restart.o
582f334a38SPaul Walmsleyobj-$(CONFIG_SOC_OMAP2430)		+= omap2-restart.o
59bc7235c9STony Lindgrenobj-$(CONFIG_SOC_TI81XX)		+= ti81xx-restart.o
6014e067c1SJean-Sebastien A. Beaudryobj-$(CONFIG_SOC_AM33XX)		+= am33xx-restart.o
61a7daf64aSLokesh Vutlaobj-$(CONFIG_SOC_AM43XX)		+= omap4-restart.o
622f334a38SPaul Walmsleyobj-$(CONFIG_ARCH_OMAP3)		+= omap3-restart.o
63ab4c2e1bSAfzal Mohammedobj-$(CONFIG_ARCH_OMAP4)		+= omap4-restart.o
64ab4c2e1bSAfzal Mohammedobj-$(CONFIG_SOC_OMAP5)			+= omap4-restart.o
651d597b07SRajendra Nayakobj-$(CONFIG_SOC_DRA7XX)		+= omap4-restart.o
662f334a38SPaul Walmsley
67f2ab9977SPaul Walmsley# SMS/SDRC
68f2ab9977SPaul Walmsleyobj-$(CONFIG_ARCH_OMAP2)		+= sdrc2xxx.o
69f2ab9977SPaul Walmsley# obj-$(CONFIG_ARCH_OMAP3)		+= sdrc3xxx.o
70f2ab9977SPaul Walmsley
71fd1478cdSNishanth Menon# OPP table initialization
72fd1478cdSNishanth Menonifeq ($(CONFIG_PM_OPP),y)
73fd1478cdSNishanth Menonobj-$(CONFIG_ARCH_OMAP3)		+= opp3xxx_data.o
74f5a6422dSNishanth Menonobj-$(CONFIG_ARCH_OMAP4)		+= opp4xxx_data.o
75fd1478cdSNishanth Menonendif
76fd1478cdSNishanth Menon
77120db2cbSTony Lindgren# Power Management
78b3bf289cSTony Lindgrenomap-4-5-pm-common			= omap-mpuss-lowpower.o
79b3bf289cSTony Lindgrenobj-$(CONFIG_ARCH_OMAP4)		+= $(omap-4-5-pm-common)
80da6d5993STony Lindgrenobj-$(CONFIG_SOC_OMAP5)			+= $(omap-4-5-pm-common)
810b4b61c0STony Lindgren
821835f1d7STony Lindgrenifeq ($(CONFIG_PM),y)
83139563adSPaul Walmsleyobj-$(CONFIG_ARCH_OMAP2)		+= pm24xx.o
84139563adSPaul Walmsleyobj-$(CONFIG_ARCH_OMAP2)		+= sleep24xx.o
85eb401553SSantosh Shilimkarobj-$(CONFIG_ARCH_OMAP3)		+= pm34xx.o sleep34xx.o
86b3bf289cSTony Lindgrenomap-4-5-pm-common			+= pm44xx.o
87377fb3f5SNishanth Menonobj-$(CONFIG_ARCH_OMAP4)		+= $(omap-4-5-pm-common)
88377fb3f5SNishanth Menonobj-$(CONFIG_SOC_OMAP5)			+= $(omap-4-5-pm-common)
89377fb3f5SNishanth Menonobj-$(CONFIG_SOC_DRA7XX)		+= $(omap-4-5-pm-common)
9041d9d44dSDave Gerlachobj-$(CONFIG_SOC_AM33XX)		+= pm33xx-core.o sleep33xx.o
9141d9d44dSDave Gerlachobj-$(CONFIG_SOC_AM43XX)		+= pm33xx-core.o sleep43xx.o
928bd22949SKevin Hilmanobj-$(CONFIG_PM_DEBUG)			+= pm-debug.o
937fb149ffSJean Pihet
9421ff63adSJean Pihetobj-$(CONFIG_POWER_AVS_OMAP)		+= sr_device.o
957fb149ffSJean Pihetobj-$(CONFIG_POWER_AVS_OMAP_CLASS3)    += smartreflex-class3.o
9656213ca4STony Lindgren
971835f1d7STony Lindgrenendif
98120db2cbSTony Lindgren
99164e0cbfSDaniel Lezcanoifeq ($(CONFIG_CPU_IDLE),y)
100164e0cbfSDaniel Lezcanoobj-$(CONFIG_ARCH_OMAP3)                += cpuidle34xx.o
101377fb3f5SNishanth Menonomap-4-5-idle-common			=  cpuidle44xx.o
102377fb3f5SNishanth Menonobj-$(CONFIG_ARCH_OMAP4)		+= $(omap-4-5-idle-common)
103377fb3f5SNishanth Menonobj-$(CONFIG_SOC_OMAP5)			+= $(omap-4-5-idle-common)
104377fb3f5SNishanth Menonobj-$(CONFIG_SOC_DRA7XX)		+= $(omap-4-5-idle-common)
105164e0cbfSDaniel Lezcanoendif
106164e0cbfSDaniel Lezcano
10771348bcaSPaul Walmsley# PRCM
108b99db36cSPaul Walmsleyobj-y					+= prm_common.o cm_common.o
109ff4ae5d9SPaul Walmsleyobj-$(CONFIG_ARCH_OMAP2)		+= prm2xxx_3xxx.o prm2xxx.o cm2xxx.o
110ff4ae5d9SPaul Walmsleyobj-$(CONFIG_ARCH_OMAP3)		+= prm2xxx_3xxx.o prm3xxx.o cm3xxx.o
111df47adb8SPaul Walmsleyobj-$(CONFIG_ARCH_OMAP3)		+= vc3xxx_data.o vp3xxx_data.o
11288f9474fSTero Kristoomap-prcm-4-5-common			=  cminst44xx.o prm44xx.o \
11305e152c7SR Sricharan					   prcm_mpu44xx.o prminst44xx.o \
114139563adSPaul Walmsley					   vc44xx_data.o vp44xx_data.o
115df47adb8SPaul Walmsleyobj-$(CONFIG_ARCH_OMAP4)		+= $(omap-prcm-4-5-common)
11605e152c7SR Sricharanobj-$(CONFIG_SOC_OMAP5)			+= $(omap-prcm-4-5-common)
117bfe9211aSR Sricharanobj-$(CONFIG_SOC_DRA7XX)		+= $(omap-prcm-4-5-common)
11898bbc114SDave Gerlacham33xx-43xx-prcm-common			+= prm33xx.o cm33xx.o
1194d38bd12STony Lindgrenobj-$(CONFIG_SOC_TI81XX)		+= $(am33xx-43xx-prcm-common)
12098bbc114SDave Gerlachobj-$(CONFIG_SOC_AM33XX)		+= $(am33xx-43xx-prcm-common)
12198bbc114SDave Gerlachobj-$(CONFIG_SOC_AM43XX)		+= $(omap-prcm-4-5-common) \
12298bbc114SDave Gerlach					   $(am33xx-43xx-prcm-common)
123c0718df4SPaul Walmsley
124c0718df4SPaul Walmsley# OMAP voltage domains
125139563adSPaul Walmsleyvoltagedomain-common			:= voltage.o vc.o vp.o
126139563adSPaul Walmsleyobj-$(CONFIG_ARCH_OMAP2)		+= $(voltagedomain-common)
127eb401553SSantosh Shilimkarobj-$(CONFIG_ARCH_OMAP2)		+= voltagedomains2xxx_data.o
128139563adSPaul Walmsleyobj-$(CONFIG_ARCH_OMAP3)		+= $(voltagedomain-common)
129eb401553SSantosh Shilimkarobj-$(CONFIG_ARCH_OMAP3)		+= voltagedomains3xxx_data.o
130139563adSPaul Walmsleyobj-$(CONFIG_ARCH_OMAP4)		+= $(voltagedomain-common)
131eb401553SSantosh Shilimkarobj-$(CONFIG_ARCH_OMAP4)		+= voltagedomains44xx_data.o
132139563adSPaul Walmsleyobj-$(CONFIG_SOC_AM33XX)		+= $(voltagedomain-common)
13333f82f33SAfzal Mohammedobj-$(CONFIG_SOC_AM43XX)		+= $(voltagedomain-common)
134139563adSPaul Walmsleyobj-$(CONFIG_SOC_OMAP5)			+= $(voltagedomain-common)
135e4020aa9SSantosh Shilimkarobj-$(CONFIG_SOC_OMAP5)                += voltagedomains54xx_data.o
13668b9f608STero Kristoobj-$(CONFIG_SOC_DRA7XX)		+= $(voltagedomain-common)
13774bea6b9SRajendra Nayak
13874bea6b9SRajendra Nayak# OMAP powerdomain framework
139139563adSPaul Walmsleypowerdomain-common			+= powerdomain.o powerdomain-common.o
140139563adSPaul Walmsleyobj-$(CONFIG_ARCH_OMAP2)		+= $(powerdomain-common)
141eb401553SSantosh Shilimkarobj-$(CONFIG_ARCH_OMAP2)		+= powerdomains2xxx_data.o
142eb401553SSantosh Shilimkarobj-$(CONFIG_ARCH_OMAP2)		+= powerdomains2xxx_3xxx_data.o
143139563adSPaul Walmsleyobj-$(CONFIG_ARCH_OMAP3)		+= $(powerdomain-common)
144eb401553SSantosh Shilimkarobj-$(CONFIG_ARCH_OMAP3)		+= powerdomains3xxx_data.o
145eb401553SSantosh Shilimkarobj-$(CONFIG_ARCH_OMAP3)		+= powerdomains2xxx_3xxx_data.o
146139563adSPaul Walmsleyobj-$(CONFIG_ARCH_OMAP4)		+= $(powerdomain-common)
147eb401553SSantosh Shilimkarobj-$(CONFIG_ARCH_OMAP4)		+= powerdomains44xx_data.o
148139563adSPaul Walmsleyobj-$(CONFIG_SOC_AM33XX)		+= $(powerdomain-common)
1493f0ea764SVaibhav Hiremathobj-$(CONFIG_SOC_AM33XX)		+= powerdomains33xx_data.o
15033f82f33SAfzal Mohammedobj-$(CONFIG_SOC_AM43XX)		+= $(powerdomain-common)
151d9df6e1eSAfzal Mohammedobj-$(CONFIG_SOC_AM43XX)		+= powerdomains43xx_data.o
152139563adSPaul Walmsleyobj-$(CONFIG_SOC_OMAP5)			+= $(powerdomain-common)
153e4020aa9SSantosh Shilimkarobj-$(CONFIG_SOC_OMAP5)			+= powerdomains54xx_data.o
154bfe9211aSR Sricharanobj-$(CONFIG_SOC_DRA7XX)		+= $(powerdomain-common)
15597dd16b1SAmbresh Kobj-$(CONFIG_SOC_DRA7XX)		+= powerdomains7xx_data.o
15671348bcaSPaul Walmsley
157dc0b3a70SPaul Walmsley# PRCM clockdomain control
158139563adSPaul Walmsleyclockdomain-common			+= clockdomain.o
159139563adSPaul Walmsleyobj-$(CONFIG_ARCH_OMAP2)		+= $(clockdomain-common)
160eb401553SSantosh Shilimkarobj-$(CONFIG_ARCH_OMAP2)		+= clockdomains2xxx_3xxx_data.o
161a5ffef6aSPaul Walmsleyobj-$(CONFIG_SOC_OMAP2420)		+= clockdomains2420_data.o
162a5ffef6aSPaul Walmsleyobj-$(CONFIG_SOC_OMAP2430)		+= clockdomains2430_data.o
163139563adSPaul Walmsleyobj-$(CONFIG_ARCH_OMAP3)		+= $(clockdomain-common)
164eb401553SSantosh Shilimkarobj-$(CONFIG_ARCH_OMAP3)		+= clockdomains2xxx_3xxx_data.o
165eb401553SSantosh Shilimkarobj-$(CONFIG_ARCH_OMAP3)		+= clockdomains3xxx_data.o
166139563adSPaul Walmsleyobj-$(CONFIG_ARCH_OMAP4)		+= $(clockdomain-common)
167eb401553SSantosh Shilimkarobj-$(CONFIG_ARCH_OMAP4)		+= clockdomains44xx_data.o
168139563adSPaul Walmsleyobj-$(CONFIG_SOC_AM33XX)		+= $(clockdomain-common)
1699c80f3aaSVaibhav Hiremathobj-$(CONFIG_SOC_AM33XX)		+= clockdomains33xx_data.o
170a64459c4SAida Mynzhasovaobj-$(CONFIG_SOC_TI81XX)		+= $(clockdomain-common)
171a64459c4SAida Mynzhasovaobj-$(CONFIG_SOC_TI81XX)		+= clockdomains81xx_data.o
17233f82f33SAfzal Mohammedobj-$(CONFIG_SOC_AM43XX)		+= $(clockdomain-common)
173d9df6e1eSAfzal Mohammedobj-$(CONFIG_SOC_AM43XX)		+= clockdomains43xx_data.o
174139563adSPaul Walmsleyobj-$(CONFIG_SOC_OMAP5)			+= $(clockdomain-common)
175e4020aa9SSantosh Shilimkarobj-$(CONFIG_SOC_OMAP5)			+= clockdomains54xx_data.o
176bfe9211aSR Sricharanobj-$(CONFIG_SOC_DRA7XX)		+= $(clockdomain-common)
17711fadcfaSAmbresh Kobj-$(CONFIG_SOC_DRA7XX)		+= clockdomains7xx_data.o
178530e544fSPaul Walmsley
1793d876e59SPaul Walmsley# Clock framework
180846fdf2aSTero Kristoobj-$(CONFIG_ARCH_OMAP2)		+= $(clock-common)
181139563adSPaul Walmsleyobj-$(CONFIG_ARCH_OMAP2)		+= clkt2xxx_dpllcore.o
182eb401553SSantosh Shilimkarobj-$(CONFIG_ARCH_OMAP2)		+= clkt2xxx_virt_prcm_set.o
183ef14db09STero Kristoobj-$(CONFIG_ARCH_OMAP2)		+= clkt2xxx_dpll.o
1846f0051daSTero Kristoobj-$(CONFIG_ARCH_OMAP3)		+= $(clock-common)
185c8c88d85STero Kristoobj-$(CONFIG_ARCH_OMAP4)		+= $(clock-common)
1860565fb16STero Kristoobj-$(CONFIG_SOC_AM33XX)		+= $(clock-common)
187139563adSPaul Walmsleyobj-$(CONFIG_SOC_OMAP5)			+= $(clock-common)
18887a85b68STero Kristoobj-$(CONFIG_SOC_DRA7XX)		+= $(clock-common)
1890565fb16STero Kristoobj-$(CONFIG_SOC_AM43XX)		+= $(clock-common)
190657ebfadSPaul Walmsley
191657ebfadSPaul Walmsley# OMAP2 clock rate set data (old "OPP" data)
19259b479e0STony Lindgrenobj-$(CONFIG_SOC_OMAP2420)		+= opp2420_data.o
19359b479e0STony Lindgrenobj-$(CONFIG_SOC_OMAP2430)		+= opp2430_data.o
1943d876e59SPaul Walmsley
1957359154eSPaul Walmsley# hwmod data
196eb401553SSantosh Shilimkarobj-$(CONFIG_SOC_OMAP2420)		+= omap_hwmod_2xxx_ipblock_data.o
197eb401553SSantosh Shilimkarobj-$(CONFIG_SOC_OMAP2420)		+= omap_hwmod_2xxx_3xxx_ipblock_data.o
198eb401553SSantosh Shilimkarobj-$(CONFIG_SOC_OMAP2420)		+= omap_hwmod_2xxx_interconnect_data.o
199eb401553SSantosh Shilimkarobj-$(CONFIG_SOC_OMAP2420)		+= omap_hwmod_2420_data.o
200eb401553SSantosh Shilimkarobj-$(CONFIG_SOC_OMAP2430)		+= omap_hwmod_2xxx_ipblock_data.o
201eb401553SSantosh Shilimkarobj-$(CONFIG_SOC_OMAP2430)		+= omap_hwmod_2xxx_3xxx_ipblock_data.o
202eb401553SSantosh Shilimkarobj-$(CONFIG_SOC_OMAP2430)		+= omap_hwmod_2xxx_interconnect_data.o
203eb401553SSantosh Shilimkarobj-$(CONFIG_SOC_OMAP2430)		+= omap_hwmod_2430_data.o
204eb401553SSantosh Shilimkarobj-$(CONFIG_ARCH_OMAP3)		+= omap_hwmod_2xxx_3xxx_ipblock_data.o
205eb401553SSantosh Shilimkarobj-$(CONFIG_ARCH_OMAP3)		+= omap_hwmod_3xxx_data.o
2064d38bd12STony Lindgrenobj-$(CONFIG_SOC_TI81XX)		+= omap_hwmod_81xx_data.o
2071dbae815STony Lindgren
208ad1b6662STony Lindgren# OMAP2420 MSDI controller integration support ("MMC")
209ad1b6662STony Lindgrenobj-$(CONFIG_SOC_OMAP2420)		+= msdi.o
210ad1b6662STony Lindgren
2111dbae815STony Lindgren# Specific board support
2126a08e1e6STony Lindgrenobj-$(CONFIG_MACH_OMAP_GENERIC)		+= board-generic.o pdata-quirks.o
21363138812SKalle Valoobj-$(CONFIG_MACH_NOKIA_N8X0)		+= board-n8x0.o
214f41caddbSTony Lindgren
21518cb7acaSFelipe Balbi# Platform specific device init code
216f41caddbSTony Lindgren
217b3c3dc22SFelipe Balbiobj-y					+= omap_phy_internal.o
218b3c3dc22SFelipe Balbi
2191b52d5dfSKalle Valoobj-$(CONFIG_MACH_OMAP2_TUSB6010)	+= usb-tusb6010.o
22041d9d44dSDave Gerlach
221ccf4975dSMasahiro Yamada$(obj)/pm-asm-offsets.h: $(obj)/pm-asm-offsets.s FORCE
22241d9d44dSDave Gerlach	$(call filechk,offsets,__TI_PM_ASM_OFFSETS_H__)
22341d9d44dSDave Gerlach
224ccf4975dSMasahiro Yamada$(obj)/sleep33xx.o $(obj)/sleep43xx.o: $(obj)/pm-asm-offsets.h
2252c667d77SMasahiro Yamada
2262c667d77SMasahiro Yamadatargets += pm-asm-offsets.s
227ccf4975dSMasahiro Yamadaclean-files += pm-asm-offsets.h
2283846a3b9SSuman Anna
2293846a3b9SSuman Annaobj-$(CONFIG_OMAP_IOMMU)		+= omap-iommu.o
230