xref: /openbmc/linux/arch/arm/mach-omap2/Makefile (revision 99e6a4d2)
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
9d7607663STony Lindgrenprcm-common				= prcm.o powerdomain.o
10d7607663STony Lindgrenclock-common				= clock.o clockdomain.o
11d7607663STony Lindgren
12d7607663STony Lindgrenobj-$(CONFIG_ARCH_OMAP2) += $(omap-2-3-common) $(prcm-common) $(clock-common)
13d7607663STony Lindgrenobj-$(CONFIG_ARCH_OMAP3) += $(omap-2-3-common) $(prcm-common) $(clock-common)
141dbae815STony Lindgren
1578673bc8SEduardo Valentinobj-$(CONFIG_OMAP_MCBSP) += mcbsp.o
1678673bc8SEduardo Valentin
17934f8be7SSantosh Shilimkar# SMP support ONLY available for OMAP4
18934f8be7SSantosh Shilimkarobj-$(CONFIG_SMP)			+= omap-smp.o omap-headsmp.o
19934f8be7SSantosh Shilimkarobj-$(CONFIG_LOCAL_TIMERS)		+= timer-mpu.o
20934f8be7SSantosh Shilimkar
21c2d43e39STony Lindgren# Functions loaded to SRAM
22c2d43e39STony Lindgrenobj-$(CONFIG_ARCH_OMAP2420)		+= sram242x.o
23c2d43e39STony Lindgrenobj-$(CONFIG_ARCH_OMAP2430)		+= sram243x.o
24cc26b3b0SSyed Mohammed, Khasimobj-$(CONFIG_ARCH_OMAP3)		+= sram34xx.o
25c2d43e39STony Lindgren
26f2ab9977SPaul Walmsley# SMS/SDRC
27f2ab9977SPaul Walmsleyobj-$(CONFIG_ARCH_OMAP2)		+= sdrc2xxx.o
28f2ab9977SPaul Walmsley# obj-$(CONFIG_ARCH_OMAP3)		+= sdrc3xxx.o
29f2ab9977SPaul Walmsley
30120db2cbSTony Lindgren# Power Management
311835f1d7STony Lindgrenifeq ($(CONFIG_PM),y)
328bd22949SKevin Hilmanobj-$(CONFIG_ARCH_OMAP2)		+= pm24xx.o
331835f1d7STony Lindgrenobj-$(CONFIG_ARCH_OMAP24XX)		+= sleep24xx.o
3499e6a4d2SRajendra Nayakobj-$(CONFIG_ARCH_OMAP3)		+= pm34xx.o sleep34xx.o cpuidle34xx.o
358bd22949SKevin Hilmanobj-$(CONFIG_PM_DEBUG)			+= pm-debug.o
361835f1d7STony Lindgrenendif
37120db2cbSTony Lindgren
3871348bcaSPaul Walmsley# PRCM
3971348bcaSPaul Walmsleyobj-$(CONFIG_ARCH_OMAP2)		+= cm.o
4071348bcaSPaul Walmsleyobj-$(CONFIG_ARCH_OMAP3)		+= cm.o
4171348bcaSPaul Walmsleyobj-$(CONFIG_ARCH_OMAP4)		+= cm4xxx.o
4271348bcaSPaul Walmsley
433d876e59SPaul Walmsley# Clock framework
443d876e59SPaul Walmsleyobj-$(CONFIG_ARCH_OMAP2)		+= clock24xx.o
4502e19a96SPaul Walmsleyobj-$(CONFIG_ARCH_OMAP3)		+= clock34xx.o
463d876e59SPaul Walmsley
47caf60779SHiroshi DOYUiommu-y					+= iommu2.o
48caf60779SHiroshi DOYUiommu-$(CONFIG_ARCH_OMAP3)		+= omap3-iommu.o
49caf60779SHiroshi DOYU
50caf60779SHiroshi DOYUobj-$(CONFIG_OMAP_IOMMU)		+= $(iommu-y)
51caf60779SHiroshi DOYU
521dbae815STony Lindgren# Specific board support
531dbae815STony Lindgrenobj-$(CONFIG_MACH_OMAP_GENERIC)		+= board-generic.o
541dbae815STony Lindgrenobj-$(CONFIG_MACH_OMAP_H4)		+= board-h4.o
5590c62bf0STony Lindgrenobj-$(CONFIG_MACH_OMAP_2430SDP)		+= board-2430sdp.o \
5690c62bf0STony Lindgren					   mmc-twl4030.o
57120db2cbSTony Lindgrenobj-$(CONFIG_MACH_OMAP_APOLLON)		+= board-apollon.o
5890c62bf0STony Lindgrenobj-$(CONFIG_MACH_OMAP3_BEAGLE)		+= board-omap3beagle.o \
5990c62bf0STony Lindgren					   mmc-twl4030.o
6090c62bf0STony Lindgrenobj-$(CONFIG_MACH_OMAP_LDP)		+= board-ldp.o \
6190c62bf0STony Lindgren					   mmc-twl4030.o
6290c62bf0STony Lindgrenobj-$(CONFIG_MACH_OVERO)		+= board-overo.o \
6390c62bf0STony Lindgren					   mmc-twl4030.o
6453c5ec31SSyed Mohammed Khasimobj-$(CONFIG_MACH_OMAP3EVM)		+= board-omap3evm.o \
6553c5ec31SSyed Mohammed Khasim					   mmc-twl4030.o
6690c62bf0STony Lindgrenobj-$(CONFIG_MACH_OMAP3_PANDORA)	+= board-omap3pandora.o \
6790c62bf0STony Lindgren					   mmc-twl4030.o
686fdc29e2SSyed Mohammed Khasimobj-$(CONFIG_MACH_OMAP_3430SDP)		+= board-3430sdp.o \
696fdc29e2SSyed Mohammed Khasim					   mmc-twl4030.o
7063138812SKalle Valoobj-$(CONFIG_MACH_NOKIA_N8X0)		+= board-n8x0.o
71ffe7f95bSLauri Leukkunenobj-$(CONFIG_MACH_NOKIA_RX51)		+= board-rx51.o \
72ffe7f95bSLauri Leukkunen					   board-rx51-peripherals.o \
73ad19d8d9STony Lindgren					   mmc-twl4030.o
74577145f4SVikram Panditaobj-$(CONFIG_MACH_OMAP_ZOOM2)		+= board-zoom2.o \
75577145f4SVikram Pandita					   mmc-twl4030.o \
76577145f4SVikram Pandita					   board-zoom-debugboard.o
7746ba0abfSSantosh Shilimkar
7846ba0abfSSantosh Shilimkarobj-$(CONFIG_MACH_OMAP_4430SDP)		+= board-4430sdp.o
79ad19d8d9STony Lindgren
8018cb7acaSFelipe Balbi# Platform specific device init code
8118cb7acaSFelipe Balbiobj-y					+= usb-musb.o
821b52d5dfSKalle Valoobj-$(CONFIG_MACH_OMAP2_TUSB6010)	+= usb-tusb6010.o
83aa62e90fSJuha Yrjola
84aa62e90fSJuha Yrjolaonenand-$(CONFIG_MTD_ONENAND_OMAP2)	:= gpmc-onenand.o
85aa62e90fSJuha Yrjolaobj-y					+= $(onenand-m) $(onenand-y)
861a48e157STony Lindgren
871a48e157STony Lindgrensmc91x-$(CONFIG_SMC91X)			:= gpmc-smc91x.o
881a48e157STony Lindgrenobj-y					+= $(smc91x-m) $(smc91x-y)
89