xref: /openbmc/linux/arch/arm/mach-omap2/Makefile (revision 49214640)
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
863c85238SPaul Walmsleyomap-2-3-common				= irq.o sdrc.o omap_hwmod.o
998c45457SPaul Walmsleyomap-3-4-common				= dpll3xxx.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
14734f69a7SPaul Walmsleyclock-omap2xxx				= clkt2xxx_dpllcore.o \
1549214640SPaul Walmsley					  clkt2xxx_virt_prcm_set.o \
1649214640SPaul Walmsley					  clkt2xxx_apll.o
17d7607663STony Lindgren
18b1823d86SPaul Walmsleyobj-$(CONFIG_ARCH_OMAP2) += $(omap-2-3-common) $(prcm-common) $(clock-common) \
19b1823d86SPaul Walmsley			    $(clock-omap2xxx)
20a1391d27SRajendra Nayakobj-$(CONFIG_ARCH_OMAP3) += $(omap-2-3-common) $(prcm-common) $(clock-common) \
2116975a79SRajendra Nayak			    $(omap-3-4-common)
228a3ddc75SAbhijit Pagareobj-$(CONFIG_ARCH_OMAP4) += $(omap-3-4-common) $(prcm-common) $(clock-common)
231dbae815STony Lindgren
2478673bc8SEduardo Valentinobj-$(CONFIG_OMAP_MCBSP) += mcbsp.o
2578673bc8SEduardo Valentin
26934f8be7SSantosh Shilimkar# SMP support ONLY available for OMAP4
27934f8be7SSantosh Shilimkarobj-$(CONFIG_SMP)			+= omap-smp.o omap-headsmp.o
28934f8be7SSantosh Shilimkarobj-$(CONFIG_LOCAL_TIMERS)		+= timer-mpu.o
29934f8be7SSantosh Shilimkar
30c2d43e39STony Lindgren# Functions loaded to SRAM
31c2d43e39STony Lindgrenobj-$(CONFIG_ARCH_OMAP2420)		+= sram242x.o
32c2d43e39STony Lindgrenobj-$(CONFIG_ARCH_OMAP2430)		+= sram243x.o
33cc26b3b0SSyed Mohammed, Khasimobj-$(CONFIG_ARCH_OMAP3)		+= sram34xx.o
34c2d43e39STony Lindgren
35ddaa912aSTony Lindgren# Pin multiplexing
36ddaa912aSTony Lindgrenobj-$(CONFIG_ARCH_OMAP3)		+= mux34xx.o
37ddaa912aSTony Lindgren
38f2ab9977SPaul Walmsley# SMS/SDRC
39f2ab9977SPaul Walmsleyobj-$(CONFIG_ARCH_OMAP2)		+= sdrc2xxx.o
40f2ab9977SPaul Walmsley# obj-$(CONFIG_ARCH_OMAP3)		+= sdrc3xxx.o
41f2ab9977SPaul Walmsley
42120db2cbSTony Lindgren# Power Management
431835f1d7STony Lindgrenifeq ($(CONFIG_PM),y)
448bd22949SKevin Hilmanobj-$(CONFIG_ARCH_OMAP2)		+= pm24xx.o
451835f1d7STony Lindgrenobj-$(CONFIG_ARCH_OMAP24XX)		+= sleep24xx.o
4699e6a4d2SRajendra Nayakobj-$(CONFIG_ARCH_OMAP3)		+= pm34xx.o sleep34xx.o cpuidle34xx.o
478bd22949SKevin Hilmanobj-$(CONFIG_PM_DEBUG)			+= pm-debug.o
481835f1d7STony Lindgrenendif
49120db2cbSTony Lindgren
5071348bcaSPaul Walmsley# PRCM
5171348bcaSPaul Walmsleyobj-$(CONFIG_ARCH_OMAP2)		+= cm.o
5271348bcaSPaul Walmsleyobj-$(CONFIG_ARCH_OMAP3)		+= cm.o
5371348bcaSPaul Walmsleyobj-$(CONFIG_ARCH_OMAP4)		+= cm4xxx.o
5471348bcaSPaul Walmsley
553d876e59SPaul Walmsley# Clock framework
56d8a94458SPaul Walmsleyobj-$(CONFIG_ARCH_OMAP2)		+= clock2xxx.o clock2xxx_data.o
57d8a94458SPaul Walmsleyobj-$(CONFIG_ARCH_OMAP2420)		+= opp2420_data.o
5882e9bd58SPaul Walmsleyobj-$(CONFIG_ARCH_OMAP3)		+= clock34xx.o clock34xx_data.o
59d8a94458SPaul Walmsleyobj-$(CONFIG_ARCH_OMAP2430)		+= opp2430_data.o
60d79b1267SRajendra Nayakobj-$(CONFIG_ARCH_OMAP4)		+= clock44xx.o clock44xx_data.o
613d876e59SPaul Walmsley
62183bd50fSAlexander Shishkin# EMU peripherals
63183bd50fSAlexander Shishkinobj-$(CONFIG_OMAP3_EMU)		+= emu.o
64183bd50fSAlexander Shishkin
6559fdc6ebSC A Subramaniamobj-$(CONFIG_OMAP_MBOX_FWK)		+= mailbox_mach.o
6659fdc6ebSC A Subramaniammailbox_mach-objs			:= mailbox.o
6759fdc6ebSC A Subramaniam
68caf60779SHiroshi DOYUiommu-y					+= iommu2.o
69caf60779SHiroshi DOYUiommu-$(CONFIG_ARCH_OMAP3)		+= omap3-iommu.o
70caf60779SHiroshi DOYU
71caf60779SHiroshi DOYUobj-$(CONFIG_OMAP_IOMMU)		+= $(iommu-y)
72caf60779SHiroshi DOYU
73b63128e8STony Lindgreni2c-omap-$(CONFIG_I2C_OMAP)		:= i2c.o
74b63128e8STony Lindgrenobj-y					+= $(i2c-omap-m) $(i2c-omap-y)
75b63128e8STony Lindgren
761dbae815STony Lindgren# Specific board support
771dbae815STony Lindgrenobj-$(CONFIG_MACH_OMAP_GENERIC)		+= board-generic.o
781dbae815STony Lindgrenobj-$(CONFIG_MACH_OMAP_H4)		+= board-h4.o
7990c62bf0STony Lindgrenobj-$(CONFIG_MACH_OMAP_2430SDP)		+= board-2430sdp.o \
8090c62bf0STony Lindgren					   mmc-twl4030.o
81120db2cbSTony Lindgrenobj-$(CONFIG_MACH_OMAP_APOLLON)		+= board-apollon.o
8290c62bf0STony Lindgrenobj-$(CONFIG_MACH_OMAP3_BEAGLE)		+= board-omap3beagle.o \
8390c62bf0STony Lindgren					   mmc-twl4030.o
8490c62bf0STony Lindgrenobj-$(CONFIG_MACH_OMAP_LDP)		+= board-ldp.o \
8590c62bf0STony Lindgren					   mmc-twl4030.o
8690c62bf0STony Lindgrenobj-$(CONFIG_MACH_OVERO)		+= board-overo.o \
8790c62bf0STony Lindgren					   mmc-twl4030.o
8853c5ec31SSyed Mohammed Khasimobj-$(CONFIG_MACH_OMAP3EVM)		+= board-omap3evm.o \
8953c5ec31SSyed Mohammed Khasim					   mmc-twl4030.o
9090c62bf0STony Lindgrenobj-$(CONFIG_MACH_OMAP3_PANDORA)	+= board-omap3pandora.o \
9190c62bf0STony Lindgren					   mmc-twl4030.o
926fdc29e2SSyed Mohammed Khasimobj-$(CONFIG_MACH_OMAP_3430SDP)		+= board-3430sdp.o \
936fdc29e2SSyed Mohammed Khasim					   mmc-twl4030.o
9463138812SKalle Valoobj-$(CONFIG_MACH_NOKIA_N8X0)		+= board-n8x0.o
95ffe7f95bSLauri Leukkunenobj-$(CONFIG_MACH_NOKIA_RX51)		+= board-rx51.o \
962000655eSTero Kristo					   board-rx51-sdram.o \
97ffe7f95bSLauri Leukkunen					   board-rx51-peripherals.o \
98ad19d8d9STony Lindgren					   mmc-twl4030.o
99577145f4SVikram Panditaobj-$(CONFIG_MACH_OMAP_ZOOM2)		+= board-zoom2.o \
100479f12c9Svikram pandita					   board-zoom-peripherals.o \
101577145f4SVikram Pandita					   mmc-twl4030.o \
102577145f4SVikram Pandita					   board-zoom-debugboard.o
1035f35fbe8Svikram panditaobj-$(CONFIG_MACH_OMAP_ZOOM3)		+= board-zoom3.o \
1045f35fbe8Svikram pandita					   board-zoom-peripherals.o \
1055f35fbe8Svikram pandita					   mmc-twl4030.o \
1065f35fbe8Svikram pandita					   board-zoom-debugboard.o
10734c9ac23Svikram panditaobj-$(CONFIG_MACH_OMAP_3630SDP)		+= board-3630sdp.o \
10834c9ac23Svikram pandita					   board-zoom-peripherals.o \
10934c9ac23Svikram pandita					   mmc-twl4030.o
1102886d128SMike Rapoportobj-$(CONFIG_MACH_CM_T35)		+= board-cm-t35.o \
1112886d128SMike Rapoport					   mmc-twl4030.o
11258e11162SEnric Balletbo i Serraobj-$(CONFIG_MACH_IGEP0020)		+= board-igep0020.o \
11358e11162SEnric Balletbo i Serra					   mmc-twl4030.o
1147a079cabSGregoire Gentilobj-$(CONFIG_MACH_OMAP3_TOUCHBOOK)	+= board-omap3touchbook.o \
1157a079cabSGregoire Gentil					   mmc-twl4030.o
11646ba0abfSSantosh Shilimkarobj-$(CONFIG_MACH_OMAP_4430SDP)		+= board-4430sdp.o
117ad19d8d9STony Lindgren
118c625327eSRanjith Lohithakshanobj-$(CONFIG_MACH_OMAP3517EVM)     += board-am3517evm.o
119c625327eSRanjith Lohithakshan
12018cb7acaSFelipe Balbi# Platform specific device init code
12118cb7acaSFelipe Balbiobj-y					+= usb-musb.o
1221b52d5dfSKalle Valoobj-$(CONFIG_MACH_OMAP2_TUSB6010)	+= usb-tusb6010.o
12358a5491cSFelipe Balbiobj-y					+= usb-ehci.o
124aa62e90fSJuha Yrjola
125aa62e90fSJuha Yrjolaonenand-$(CONFIG_MTD_ONENAND_OMAP2)	:= gpmc-onenand.o
126aa62e90fSJuha Yrjolaobj-y					+= $(onenand-m) $(onenand-y)
1271a48e157STony Lindgren
1281a48e157STony Lindgrensmc91x-$(CONFIG_SMC91X)			:= gpmc-smc91x.o
1291a48e157STony Lindgrenobj-y					+= $(smc91x-m) $(smc91x-y)
130