xref: /openbmc/linux/arch/arm/mach-omap2/Makefile (revision 81b34fbe)
11dbae815STony Lindgren#
21dbae815STony Lindgren# Makefile for the linux kernel.
31dbae815STony Lindgren#
41dbae815STony Lindgren
51dbae815STony Lindgren# Common support
6d7607663STony Lindgrenobj-y := id.o io.o control.o mux.o devices.o serial.o gpmc.o timer-gp.o
7d7607663STony Lindgren
8358f0e63SThara Gopinathomap-2-3-common				= irq.o sdrc.o omap_hwmod.o \
9358f0e63SThara Gopinath					  omap_hwmod_common_data.o
10d7607663STony Lindgrenprcm-common				= prcm.o powerdomain.o
110b96af68SPaul Walmsleyclock-common				= clock.o clock_common_data.o \
12df791b3eSPaul Walmsley					  clockdomain.o clkt_dpll.o \
13df791b3eSPaul Walmsley					  clkt_clksel.o
14d7607663STony Lindgren
15657ebfadSPaul Walmsleyobj-$(CONFIG_ARCH_OMAP2) += $(omap-2-3-common) $(prcm-common)
16657ebfadSPaul Walmsleyobj-$(CONFIG_ARCH_OMAP3) += $(omap-2-3-common) $(prcm-common)
17657ebfadSPaul Walmsleyobj-$(CONFIG_ARCH_OMAP4) += $(prcm-common)
181dbae815STony Lindgren
1978673bc8SEduardo Valentinobj-$(CONFIG_OMAP_MCBSP) += mcbsp.o
2078673bc8SEduardo Valentin
21934f8be7SSantosh Shilimkar# SMP support ONLY available for OMAP4
22934f8be7SSantosh Shilimkarobj-$(CONFIG_SMP)			+= omap-smp.o omap-headsmp.o
23934f8be7SSantosh Shilimkarobj-$(CONFIG_LOCAL_TIMERS)		+= timer-mpu.o
24934f8be7SSantosh Shilimkar
25c2d43e39STony Lindgren# Functions loaded to SRAM
26c2d43e39STony Lindgrenobj-$(CONFIG_ARCH_OMAP2420)		+= sram242x.o
27c2d43e39STony Lindgrenobj-$(CONFIG_ARCH_OMAP2430)		+= sram243x.o
28cc26b3b0SSyed Mohammed, Khasimobj-$(CONFIG_ARCH_OMAP3)		+= sram34xx.o
29c2d43e39STony Lindgren
3056213ca4STony LindgrenAFLAGS_sram242x.o			:=-Wa,-march=armv6
3156213ca4STony LindgrenAFLAGS_sram243x.o			:=-Wa,-march=armv6
3256213ca4STony LindgrenAFLAGS_sram34xx.o			:=-Wa,-march=armv7-a
3356213ca4STony Lindgren
34ddaa912aSTony Lindgren# Pin multiplexing
35ddaa912aSTony Lindgrenobj-$(CONFIG_ARCH_OMAP3)		+= mux34xx.o
36ddaa912aSTony Lindgren
37f2ab9977SPaul Walmsley# SMS/SDRC
38f2ab9977SPaul Walmsleyobj-$(CONFIG_ARCH_OMAP2)		+= sdrc2xxx.o
39f2ab9977SPaul Walmsley# obj-$(CONFIG_ARCH_OMAP3)		+= sdrc3xxx.o
40f2ab9977SPaul Walmsley
41120db2cbSTony Lindgren# Power Management
421835f1d7STony Lindgrenifeq ($(CONFIG_PM),y)
438bd22949SKevin Hilmanobj-$(CONFIG_ARCH_OMAP2)		+= pm24xx.o
44088ef950STony Lindgrenobj-$(CONFIG_ARCH_OMAP2)		+= sleep24xx.o
4599e6a4d2SRajendra Nayakobj-$(CONFIG_ARCH_OMAP3)		+= pm34xx.o sleep34xx.o cpuidle34xx.o
468bd22949SKevin Hilmanobj-$(CONFIG_PM_DEBUG)			+= pm-debug.o
4756213ca4STony Lindgren
4856213ca4STony LindgrenAFLAGS_sleep24xx.o			:=-Wa,-march=armv6
4956213ca4STony LindgrenAFLAGS_sleep34xx.o			:=-Wa,-march=armv7-a
5056213ca4STony Lindgren
511835f1d7STony Lindgrenendif
52120db2cbSTony Lindgren
5371348bcaSPaul Walmsley# PRCM
5471348bcaSPaul Walmsleyobj-$(CONFIG_ARCH_OMAP2)		+= cm.o
5571348bcaSPaul Walmsleyobj-$(CONFIG_ARCH_OMAP3)		+= cm.o
5671348bcaSPaul Walmsleyobj-$(CONFIG_ARCH_OMAP4)		+= cm4xxx.o
5771348bcaSPaul Walmsley
583d876e59SPaul Walmsley# Clock framework
59657ebfadSPaul Walmsleyobj-$(CONFIG_ARCH_OMAP2)		+= $(clock-common) clock2xxx.o \
6081b34fbeSPaul Walmsley					   clkt2xxx_sys.o \
61657ebfadSPaul Walmsley					   clkt2xxx_dpllcore.o \
62657ebfadSPaul Walmsley					   clkt2xxx_virt_prcm_set.o \
63657ebfadSPaul Walmsley					   clkt2xxx_apll.o clkt2xxx_osc.o
6481b34fbeSPaul Walmsleyobj-$(CONFIG_ARCH_OMAP2420)		+= clock2420_data.o
6581b34fbeSPaul Walmsleyobj-$(CONFIG_ARCH_OMAP2430)		+= clock2430.o clock2430_data.o
66657ebfadSPaul Walmsleyobj-$(CONFIG_ARCH_OMAP3)		+= $(clock-common) clock3xxx.o \
67657ebfadSPaul Walmsley					   clock34xx.o clkt34xx_dpll3m2.o \
68657ebfadSPaul Walmsley					   clock3517.o clock36xx.o \
69657ebfadSPaul Walmsley					   dpll3xxx.o clock3xxx_data.o
70657ebfadSPaul Walmsleyobj-$(CONFIG_ARCH_OMAP4)		+= $(clock-common) clock44xx_data.o \
71657ebfadSPaul Walmsley					   dpll3xxx.o
72657ebfadSPaul Walmsley
73657ebfadSPaul Walmsley# OMAP2 clock rate set data (old "OPP" data)
74d8a94458SPaul Walmsleyobj-$(CONFIG_ARCH_OMAP2420)		+= opp2420_data.o
75d8a94458SPaul Walmsleyobj-$(CONFIG_ARCH_OMAP2430)		+= opp2430_data.o
763d876e59SPaul Walmsley
77183bd50fSAlexander Shishkin# EMU peripherals
78183bd50fSAlexander Shishkinobj-$(CONFIG_OMAP3_EMU)			+= emu.o
79183bd50fSAlexander Shishkin
8059fdc6ebSC A Subramaniamobj-$(CONFIG_OMAP_MBOX_FWK)		+= mailbox_mach.o
8159fdc6ebSC A Subramaniammailbox_mach-objs			:= mailbox.o
8259fdc6ebSC A Subramaniam
83caf60779SHiroshi DOYUiommu-y					+= iommu2.o
84caf60779SHiroshi DOYUiommu-$(CONFIG_ARCH_OMAP3)		+= omap3-iommu.o
85caf60779SHiroshi DOYU
86caf60779SHiroshi DOYUobj-$(CONFIG_OMAP_IOMMU)		+= $(iommu-y)
87caf60779SHiroshi DOYU
88b63128e8STony Lindgreni2c-omap-$(CONFIG_I2C_OMAP)		:= i2c.o
89b63128e8STony Lindgrenobj-y					+= $(i2c-omap-m) $(i2c-omap-y)
90b63128e8STony Lindgren
911dbae815STony Lindgren# Specific board support
921dbae815STony Lindgrenobj-$(CONFIG_MACH_OMAP_GENERIC)		+= board-generic.o
931dbae815STony Lindgrenobj-$(CONFIG_MACH_OMAP_H4)		+= board-h4.o
9490c62bf0STony Lindgrenobj-$(CONFIG_MACH_OMAP_2430SDP)		+= board-2430sdp.o \
95d02a900bSAdrian Hunter					   hsmmc.o
96120db2cbSTony Lindgrenobj-$(CONFIG_MACH_OMAP_APOLLON)		+= board-apollon.o
9790c62bf0STony Lindgrenobj-$(CONFIG_MACH_OMAP3_BEAGLE)		+= board-omap3beagle.o \
98d02a900bSAdrian Hunter					   hsmmc.o
9990c62bf0STony Lindgrenobj-$(CONFIG_MACH_OMAP_LDP)		+= board-ldp.o \
100d02a900bSAdrian Hunter					   hsmmc.o
10190c62bf0STony Lindgrenobj-$(CONFIG_MACH_OVERO)		+= board-overo.o \
102d02a900bSAdrian Hunter					   hsmmc.o
10353c5ec31SSyed Mohammed Khasimobj-$(CONFIG_MACH_OMAP3EVM)		+= board-omap3evm.o \
104d02a900bSAdrian Hunter					   hsmmc.o
10590c62bf0STony Lindgrenobj-$(CONFIG_MACH_OMAP3_PANDORA)	+= board-omap3pandora.o \
106d02a900bSAdrian Hunter					   hsmmc.o
1076fdc29e2SSyed Mohammed Khasimobj-$(CONFIG_MACH_OMAP_3430SDP)		+= board-3430sdp.o \
108d02a900bSAdrian Hunter					   hsmmc.o \
10988c8460aSVimal Singh					   board-sdp-flash.o
11063138812SKalle Valoobj-$(CONFIG_MACH_NOKIA_N8X0)		+= board-n8x0.o
111ffe7f95bSLauri Leukkunenobj-$(CONFIG_MACH_NOKIA_RX51)		+= board-rx51.o \
1122000655eSTero Kristo					   board-rx51-sdram.o \
113ffe7f95bSLauri Leukkunen					   board-rx51-peripherals.o \
114d02a900bSAdrian Hunter					   hsmmc.o
115577145f4SVikram Panditaobj-$(CONFIG_MACH_OMAP_ZOOM2)		+= board-zoom2.o \
116479f12c9Svikram pandita					   board-zoom-peripherals.o \
117d02a900bSAdrian Hunter					   hsmmc.o \
118577145f4SVikram Pandita					   board-zoom-debugboard.o
1195f35fbe8Svikram panditaobj-$(CONFIG_MACH_OMAP_ZOOM3)		+= board-zoom3.o \
1205f35fbe8Svikram pandita					   board-zoom-peripherals.o \
121d02a900bSAdrian Hunter					   hsmmc.o \
1225f35fbe8Svikram pandita					   board-zoom-debugboard.o
12334c9ac23Svikram panditaobj-$(CONFIG_MACH_OMAP_3630SDP)		+= board-3630sdp.o \
12434c9ac23Svikram pandita					   board-zoom-peripherals.o \
125d02a900bSAdrian Hunter					   hsmmc.o
1262886d128SMike Rapoportobj-$(CONFIG_MACH_CM_T35)		+= board-cm-t35.o \
127d02a900bSAdrian Hunter					   hsmmc.o
12858e11162SEnric Balletbo i Serraobj-$(CONFIG_MACH_IGEP0020)		+= board-igep0020.o \
129d02a900bSAdrian Hunter					   hsmmc.o
1307a079cabSGregoire Gentilobj-$(CONFIG_MACH_OMAP3_TOUCHBOOK)	+= board-omap3touchbook.o \
131d02a900bSAdrian Hunter					   hsmmc.o
13246ba0abfSSantosh Shilimkarobj-$(CONFIG_MACH_OMAP_4430SDP)		+= board-4430sdp.o
133ad19d8d9STony Lindgren
134c625327eSRanjith Lohithakshanobj-$(CONFIG_MACH_OMAP3517EVM)		+= board-am3517evm.o
135c625327eSRanjith Lohithakshan
13618cb7acaSFelipe Balbi# Platform specific device init code
13718cb7acaSFelipe Balbiobj-y					+= usb-musb.o
1381b52d5dfSKalle Valoobj-$(CONFIG_MACH_OMAP2_TUSB6010)	+= usb-tusb6010.o
13958a5491cSFelipe Balbiobj-y					+= usb-ehci.o
140aa62e90fSJuha Yrjola
141aa62e90fSJuha Yrjolaonenand-$(CONFIG_MTD_ONENAND_OMAP2)	:= gpmc-onenand.o
142aa62e90fSJuha Yrjolaobj-y					+= $(onenand-m) $(onenand-y)
1431a48e157STony Lindgren
1442f70a1e9SVimal Singhnand-$(CONFIG_MTD_NAND_OMAP2)		:= gpmc-nand.o
1452f70a1e9SVimal Singhobj-y					+= $(nand-m) $(nand-y)
1462f70a1e9SVimal Singh
1471a48e157STony Lindgrensmc91x-$(CONFIG_SMC91X)			:= gpmc-smc91x.o
1481a48e157STony Lindgrenobj-y					+= $(smc91x-m) $(smc91x-y)
149