xref: /openbmc/linux/arch/arm/mach-omap2/Makefile (revision 46ba0abf)
11dbae815STony Lindgren#
21dbae815STony Lindgren# Makefile for the linux kernel.
31dbae815STony Lindgren#
41dbae815STony Lindgren
51dbae815STony Lindgren# Common support
6a9a418d4STony Lindgrenobj-y := id.o io.o control.o mux.o devices.o serial.o gpmc.o timer-gp.o
7a9a418d4STony Lindgren
8a9a418d4STony Lindgrenomap-2-3-common				= irq.o sdrc.o
9a9a418d4STony Lindgrenprcm-common				= prcm.o powerdomain.o
10a9a418d4STony Lindgrenclock-common				= clock.o clockdomain.o
11a9a418d4STony Lindgren
12a9a418d4STony Lindgrenobj-$(CONFIG_ARCH_OMAP2) += $(omap-2-3-common) $(prcm-common) $(clock-common)
13a9a418d4STony Lindgrenobj-$(CONFIG_ARCH_OMAP3) += $(omap-2-3-common) $(prcm-common) $(clock-common)
141dbae815STony Lindgren
1578673bc8SEduardo Valentinobj-$(CONFIG_OMAP_MCBSP) += mcbsp.o
1678673bc8SEduardo Valentin
17c2d43e39STony Lindgren# Functions loaded to SRAM
18c2d43e39STony Lindgrenobj-$(CONFIG_ARCH_OMAP2420)		+= sram242x.o
19c2d43e39STony Lindgrenobj-$(CONFIG_ARCH_OMAP2430)		+= sram243x.o
20cc26b3b0SSyed Mohammed, Khasimobj-$(CONFIG_ARCH_OMAP3)		+= sram34xx.o
21c2d43e39STony Lindgren
22f2ab9977SPaul Walmsley# SMS/SDRC
23f2ab9977SPaul Walmsleyobj-$(CONFIG_ARCH_OMAP2)		+= sdrc2xxx.o
24f2ab9977SPaul Walmsley# obj-$(CONFIG_ARCH_OMAP3)		+= sdrc3xxx.o
25f2ab9977SPaul Walmsley
26120db2cbSTony Lindgren# Power Management
271835f1d7STony Lindgrenifeq ($(CONFIG_PM),y)
281835f1d7STony Lindgrenobj-y					+= pm.o
291835f1d7STony Lindgrenobj-$(CONFIG_ARCH_OMAP24XX)		+= sleep24xx.o
301835f1d7STony Lindgrenendif
31120db2cbSTony Lindgren
323d876e59SPaul Walmsley# Clock framework
333d876e59SPaul Walmsleyobj-$(CONFIG_ARCH_OMAP2)		+= clock24xx.o
3402e19a96SPaul Walmsleyobj-$(CONFIG_ARCH_OMAP3)		+= clock34xx.o
353d876e59SPaul Walmsley
361dbae815STony Lindgren# Specific board support
371dbae815STony Lindgrenobj-$(CONFIG_MACH_OMAP_GENERIC)		+= board-generic.o
381dbae815STony Lindgrenobj-$(CONFIG_MACH_OMAP_H4)		+= board-h4.o
3990c62bf0STony Lindgrenobj-$(CONFIG_MACH_OMAP_2430SDP)		+= board-2430sdp.o \
4090c62bf0STony Lindgren					   mmc-twl4030.o
41120db2cbSTony Lindgrenobj-$(CONFIG_MACH_OMAP_APOLLON)		+= board-apollon.o
4290c62bf0STony Lindgrenobj-$(CONFIG_MACH_OMAP3_BEAGLE)		+= board-omap3beagle.o \
4390c62bf0STony Lindgren					   mmc-twl4030.o
4490c62bf0STony Lindgrenobj-$(CONFIG_MACH_OMAP_LDP)		+= board-ldp.o \
4590c62bf0STony Lindgren					   mmc-twl4030.o
4690c62bf0STony Lindgrenobj-$(CONFIG_MACH_OVERO)		+= board-overo.o \
4790c62bf0STony Lindgren					   mmc-twl4030.o
4853c5ec31SSyed Mohammed Khasimobj-$(CONFIG_MACH_OMAP3EVM)		+= board-omap3evm.o \
4953c5ec31SSyed Mohammed Khasim					   mmc-twl4030.o
5090c62bf0STony Lindgrenobj-$(CONFIG_MACH_OMAP3_PANDORA)	+= board-omap3pandora.o \
5190c62bf0STony Lindgren					   mmc-twl4030.o
526fdc29e2SSyed Mohammed Khasimobj-$(CONFIG_MACH_OMAP_3430SDP)		+= board-3430sdp.o \
536fdc29e2SSyed Mohammed Khasim					   mmc-twl4030.o
541dbae815STony Lindgren
55ffe7f95bSLauri Leukkunenobj-$(CONFIG_MACH_NOKIA_RX51)		+= board-rx51.o \
56ffe7f95bSLauri Leukkunen					   board-rx51-peripherals.o \
57ad19d8d9STony Lindgren					   mmc-twl4030.o
58577145f4SVikram Panditaobj-$(CONFIG_MACH_OMAP_ZOOM2)		+= board-zoom2.o \
59577145f4SVikram Pandita					   mmc-twl4030.o \
60577145f4SVikram Pandita					   board-zoom-debugboard.o
6146ba0abfSSantosh Shilimkar
6246ba0abfSSantosh Shilimkarobj-$(CONFIG_MACH_OMAP_4430SDP)		+= board-4430sdp.o
6346ba0abfSSantosh Shilimkar
6418cb7acaSFelipe Balbi# Platform specific device init code
6518cb7acaSFelipe Balbiifeq ($(CONFIG_USB_MUSB_SOC),y)
6618cb7acaSFelipe Balbiobj-y					+= usb-musb.o
6718cb7acaSFelipe Balbiendif
68aa62e90fSJuha Yrjola
69aa62e90fSJuha Yrjolaonenand-$(CONFIG_MTD_ONENAND_OMAP2)	:= gpmc-onenand.o
70aa62e90fSJuha Yrjolaobj-y					+= $(onenand-m) $(onenand-y)
711a48e157STony Lindgren
721a48e157STony Lindgrensmc91x-$(CONFIG_SMC91X)			:= gpmc-smc91x.o
731a48e157STony Lindgrenobj-y					+= $(smc91x-m) $(smc91x-y)
74