blob: 7352412e49170e5b98b56c69bbd1e2679ff42ace [file] [log] [blame]
Tony Lindgren1dbae812005-11-10 14:26:51 +00001#
2# Makefile for the linux kernel.
3#
4
5# Common support
Paul Walmsleyaa218da2010-10-08 11:40:19 -06006obj-y := id.o io.o control.o mux.o devices.o serial.o gpmc.o timer-gp.o pm.o \
7 common.o
Tony Lindgrend7607662009-05-25 11:26:47 -07008
Paul Walmsleycf214052010-09-21 10:34:10 -06009omap-2-3-common = irq.o sdrc.o prm2xxx_3xxx.o
Paul Walmsley43b40992010-02-22 22:09:34 -070010hwmod-common = omap_hwmod.o \
Thara Gopinath358f0e62010-02-24 12:05:58 -070011 omap_hwmod_common_data.o
Tony Lindgrend7607662009-05-25 11:26:47 -070012prcm-common = prcm.o powerdomain.o
Paul Walmsley0b96af62010-01-26 20:13:03 -070013clock-common = clock.o clock_common_data.o \
Paul Walmsleydf791b32010-01-26 20:13:04 -070014 clockdomain.o clkt_dpll.o \
15 clkt_clksel.o
Tony Lindgrend7607662009-05-25 11:26:47 -070016
Paul Walmsley43b40992010-02-22 22:09:34 -070017obj-$(CONFIG_ARCH_OMAP2) += $(omap-2-3-common) $(prcm-common) $(hwmod-common)
18obj-$(CONFIG_ARCH_OMAP3) += $(omap-2-3-common) $(prcm-common) $(hwmod-common)
BenoƮt Cousson0be16212010-09-21 10:34:10 -060019obj-$(CONFIG_ARCH_OMAP4) += $(prcm-common) prm44xx.o $(hwmod-common)
Tony Lindgren1dbae812005-11-10 14:26:51 +000020
Eduardo Valentin78673bc2008-07-03 12:24:40 +030021obj-$(CONFIG_OMAP_MCBSP) += mcbsp.o
22
Santosh Shilimkar934f8be2009-04-28 20:52:05 +053023# SMP support ONLY available for OMAP4
24obj-$(CONFIG_SMP) += omap-smp.o omap-headsmp.o
25obj-$(CONFIG_LOCAL_TIMERS) += timer-mpu.o
Santosh Shilimkar7d35b8d2010-08-02 13:18:19 +030026obj-$(CONFIG_HOTPLUG_CPU) += omap-hotplug.o
Santosh Shilimkarfbc9be12010-05-14 12:05:26 -070027obj-$(CONFIG_ARCH_OMAP4) += omap44xx-smc.o omap4-common.o
Santosh Shilimkard660f9a2010-03-11 07:33:46 +000028
Tony Lindgrena4192d32010-08-16 09:21:20 +030029AFLAGS_omap-headsmp.o :=-Wa,-march=armv7-a
Santosh Shilimkard660f9a2010-03-11 07:33:46 +000030AFLAGS_omap44xx-smc.o :=-Wa,-march=armv7-a
Santosh Shilimkar934f8be2009-04-28 20:52:05 +053031
Tony Lindgrenc2d43e32008-07-03 12:24:38 +030032# Functions loaded to SRAM
33obj-$(CONFIG_ARCH_OMAP2420) += sram242x.o
34obj-$(CONFIG_ARCH_OMAP2430) += sram243x.o
Syed Mohammed, Khasimcc26b3b2008-10-09 17:51:41 +030035obj-$(CONFIG_ARCH_OMAP3) += sram34xx.o
Tony Lindgrenc2d43e32008-07-03 12:24:38 +030036
Tony Lindgren56213ca2010-02-12 12:26:46 -080037AFLAGS_sram242x.o :=-Wa,-march=armv6
38AFLAGS_sram243x.o :=-Wa,-march=armv6
39AFLAGS_sram34xx.o :=-Wa,-march=armv7-a
40
Tony Lindgrenddaa9122009-12-11 16:16:32 -080041# Pin multiplexing
Tony Lindgrenfc440462010-07-05 16:31:36 +030042obj-$(CONFIG_ARCH_OMAP2420) += mux2420.o
Tony Lindgren89ba1092010-07-05 16:31:36 +030043obj-$(CONFIG_ARCH_OMAP2430) += mux2430.o
Tony Lindgrenddaa9122009-12-11 16:16:32 -080044obj-$(CONFIG_ARCH_OMAP3) += mux34xx.o
45
Paul Walmsleyf2ab9972009-01-28 12:27:37 -070046# SMS/SDRC
47obj-$(CONFIG_ARCH_OMAP2) += sdrc2xxx.o
48# obj-$(CONFIG_ARCH_OMAP3) += sdrc3xxx.o
49
Tony Lindgren120db2c2006-04-02 17:46:27 +010050# Power Management
Tony Lindgren1835f1d2008-10-06 15:49:15 +030051ifeq ($(CONFIG_PM),y)
Kevin Hilman8bd22942009-05-28 10:56:16 -070052obj-$(CONFIG_ARCH_OMAP2) += pm24xx.o
Kevin Hilman57e6fe72009-11-05 19:06:01 -080053obj-$(CONFIG_ARCH_OMAP2) += sleep24xx.o pm_bus.o
54obj-$(CONFIG_ARCH_OMAP3) += pm34xx.o sleep34xx.o cpuidle34xx.o pm_bus.o
55obj-$(CONFIG_ARCH_OMAP4) += pm44xx.o pm_bus.o
Kevin Hilman8bd22942009-05-28 10:56:16 -070056obj-$(CONFIG_PM_DEBUG) += pm-debug.o
Tony Lindgren56213ca2010-02-12 12:26:46 -080057
58AFLAGS_sleep24xx.o :=-Wa,-march=armv6
59AFLAGS_sleep34xx.o :=-Wa,-march=armv7-a
60
Kevin Hilman57e6fe72009-11-05 19:06:01 -080061ifeq ($(CONFIG_PM_VERBOSE),y)
62CFLAGS_pm_bus.o += -DDEBUG
63endif
64
Tony Lindgren1835f1d2008-10-06 15:49:15 +030065endif
Tony Lindgren120db2c2006-04-02 17:46:27 +010066
Paul Walmsley71348bc2009-09-03 20:14:02 +030067# PRCM
68obj-$(CONFIG_ARCH_OMAP2) += cm.o
69obj-$(CONFIG_ARCH_OMAP3) += cm.o
70obj-$(CONFIG_ARCH_OMAP4) += cm4xxx.o
71
Paul Walmsley3d876e52008-03-18 14:41:40 +020072# Clock framework
Paul Walmsley657ebfa2010-02-22 22:09:20 -070073obj-$(CONFIG_ARCH_OMAP2) += $(clock-common) clock2xxx.o \
Paul Walmsley81b34fb2010-02-22 22:09:22 -070074 clkt2xxx_sys.o \
Paul Walmsley657ebfa2010-02-22 22:09:20 -070075 clkt2xxx_dpllcore.o \
76 clkt2xxx_virt_prcm_set.o \
77 clkt2xxx_apll.o clkt2xxx_osc.o
Paul Walmsley81b34fb2010-02-22 22:09:22 -070078obj-$(CONFIG_ARCH_OMAP2420) += clock2420_data.o
79obj-$(CONFIG_ARCH_OMAP2430) += clock2430.o clock2430_data.o
Paul Walmsley657ebfa2010-02-22 22:09:20 -070080obj-$(CONFIG_ARCH_OMAP3) += $(clock-common) clock3xxx.o \
81 clock34xx.o clkt34xx_dpll3m2.o \
82 clock3517.o clock36xx.o \
83 dpll3xxx.o clock3xxx_data.o
84obj-$(CONFIG_ARCH_OMAP4) += $(clock-common) clock44xx_data.o \
85 dpll3xxx.o
86
87# OMAP2 clock rate set data (old "OPP" data)
Paul Walmsleyd8a94452009-12-08 16:21:29 -070088obj-$(CONFIG_ARCH_OMAP2420) += opp2420_data.o
Paul Walmsleyd8a94452009-12-08 16:21:29 -070089obj-$(CONFIG_ARCH_OMAP2430) += opp2430_data.o
Paul Walmsley3d876e52008-03-18 14:41:40 +020090
Paul Walmsley73591542010-02-22 22:09:32 -070091# hwmod data
92obj-$(CONFIG_ARCH_OMAP2420) += omap_hwmod_2420_data.o
93obj-$(CONFIG_ARCH_OMAP2430) += omap_hwmod_2430_data.o
94obj-$(CONFIG_ARCH_OMAP3) += omap_hwmod_3xxx_data.o
Benoit Cousson55d2cb02010-05-12 17:54:36 +020095obj-$(CONFIG_ARCH_OMAP4) += omap_hwmod_44xx_data.o
Tony Lindgren1dbae812005-11-10 14:26:51 +000096
Alexander Shishkin183bd502009-12-01 14:03:31 +010097# EMU peripherals
Paul Walmsley657ebfa2010-02-22 22:09:20 -070098obj-$(CONFIG_OMAP3_EMU) += emu.o
Alexander Shishkin183bd502009-12-01 14:03:31 +010099
C A Subramaniam59fdc6e2009-11-22 10:11:17 -0800100obj-$(CONFIG_OMAP_MBOX_FWK) += mailbox_mach.o
101mailbox_mach-objs := mailbox.o
102
Hiroshi DOYU0bbc6fc2010-05-24 09:35:11 +0300103obj-$(CONFIG_OMAP_IOMMU) += iommu2.o
104
105iommu-$(CONFIG_OMAP_IOMMU) := omap-iommu.o
106obj-y += $(iommu-m) $(iommu-y)
Hiroshi DOYUcaf60772009-01-28 21:32:09 +0200107
Tony Lindgrenb63128e2009-12-11 16:16:32 -0800108i2c-omap-$(CONFIG_I2C_OMAP) := i2c.o
109obj-y += $(i2c-omap-m) $(i2c-omap-y)
110
Tony Lindgren1dbae812005-11-10 14:26:51 +0000111# Specific board support
112obj-$(CONFIG_MACH_OMAP_GENERIC) += board-generic.o
113obj-$(CONFIG_MACH_OMAP_H4) += board-h4.o
Tony Lindgren90c62bf2008-12-10 17:37:17 -0800114obj-$(CONFIG_MACH_OMAP_2430SDP) += board-2430sdp.o \
Adrian Hunterd02a900b2010-02-15 10:03:34 -0800115 hsmmc.o
Tony Lindgren120db2c2006-04-02 17:46:27 +0100116obj-$(CONFIG_MACH_OMAP_APOLLON) += board-apollon.o
Tony Lindgren90c62bf2008-12-10 17:37:17 -0800117obj-$(CONFIG_MACH_OMAP3_BEAGLE) += board-omap3beagle.o \
Adrian Hunterd02a900b2010-02-15 10:03:34 -0800118 hsmmc.o
Thomas Weber476544c2010-02-17 14:09:28 -0800119obj-$(CONFIG_MACH_DEVKIT8000) += board-devkit8000.o \
120 hsmmc.o
Tony Lindgren90c62bf2008-12-10 17:37:17 -0800121obj-$(CONFIG_MACH_OMAP_LDP) += board-ldp.o \
Sukumar Ghorai2430f9d2010-07-09 14:27:51 +0000122 board-flash.o \
Adrian Hunterd02a900b2010-02-15 10:03:34 -0800123 hsmmc.o
Tim Nordelld40f3f12010-09-27 16:05:47 +0000124obj-$(CONFIG_MACH_OMAP3530_LV_SOM) += board-omap3logic.o \
125 hsmmc.o
126obj-$(CONFIG_MACH_OMAP3_TORPEDO) += board-omap3logic.o \
127 hsmmc.o
Tony Lindgren90c62bf2008-12-10 17:37:17 -0800128obj-$(CONFIG_MACH_OVERO) += board-overo.o \
Adrian Hunterd02a900b2010-02-15 10:03:34 -0800129 hsmmc.o
Syed Mohammed Khasim53c5ec32009-05-28 14:13:28 -0700130obj-$(CONFIG_MACH_OMAP3EVM) += board-omap3evm.o \
Adrian Hunterd02a900b2010-02-15 10:03:34 -0800131 hsmmc.o
Tony Lindgren90c62bf2008-12-10 17:37:17 -0800132obj-$(CONFIG_MACH_OMAP3_PANDORA) += board-omap3pandora.o \
Adrian Hunterd02a900b2010-02-15 10:03:34 -0800133 hsmmc.o
Syed Mohammed Khasim6fdc29e2009-03-23 18:38:16 -0700134obj-$(CONFIG_MACH_OMAP_3430SDP) += board-3430sdp.o \
Adrian Hunterd02a900b2010-02-15 10:03:34 -0800135 hsmmc.o \
Sukumar Ghorai13d6b73c2010-07-09 14:27:47 +0000136 board-flash.o
Kalle Valo63138812009-08-28 10:51:38 -0700137obj-$(CONFIG_MACH_NOKIA_N8X0) += board-n8x0.o
Lauri Leukkunenffe7f952009-03-23 18:38:17 -0700138obj-$(CONFIG_MACH_NOKIA_RX51) += board-rx51.o \
Tero Kristo20006552009-11-22 10:11:36 -0800139 board-rx51-sdram.o \
Lauri Leukkunenffe7f952009-03-23 18:38:17 -0700140 board-rx51-peripherals.o \
Roger Quadros03e11102010-05-10 10:35:17 +0200141 board-rx51-video.o \
Adrian Hunterd02a900b2010-02-15 10:03:34 -0800142 hsmmc.o
Vikram Pandita577145f2009-05-28 14:04:04 -0700143obj-$(CONFIG_MACH_OMAP_ZOOM2) += board-zoom2.o \
vikram pandita479f12c2009-11-22 10:11:30 -0800144 board-zoom-peripherals.o \
Sukumar Ghorai7e7eb422010-07-09 14:27:48 +0000145 board-flash.o \
Adrian Hunterd02a900b2010-02-15 10:03:34 -0800146 hsmmc.o \
Vikram Pandita577145f2009-05-28 14:04:04 -0700147 board-zoom-debugboard.o
vikram pandita5f35fbe2009-11-22 10:11:32 -0800148obj-$(CONFIG_MACH_OMAP_ZOOM3) += board-zoom3.o \
149 board-zoom-peripherals.o \
Sukumar Ghoraie08b1052010-07-09 14:27:49 +0000150 board-flash.o \
Adrian Hunterd02a900b2010-02-15 10:03:34 -0800151 hsmmc.o \
vikram pandita5f35fbe2009-11-22 10:11:32 -0800152 board-zoom-debugboard.o
vikram pandita34c9ac22009-11-18 18:41:08 -0800153obj-$(CONFIG_MACH_OMAP_3630SDP) += board-3630sdp.o \
154 board-zoom-peripherals.o \
Sukumar Ghorai7875eea2010-07-09 14:27:50 +0000155 board-flash.o \
Adrian Hunterd02a900b2010-02-15 10:03:34 -0800156 hsmmc.o
Mike Rapoport2886d122009-11-18 18:41:07 -0800157obj-$(CONFIG_MACH_CM_T35) += board-cm-t35.o \
Adrian Hunterd02a900b2010-02-15 10:03:34 -0800158 hsmmc.o
Igor Grinbergd04b6202010-09-21 16:03:09 +0000159obj-$(CONFIG_MACH_CM_T3517) += board-cm-t3517.o
Enric Balletbo i Serra58e11162009-11-18 18:41:07 -0800160obj-$(CONFIG_MACH_IGEP0020) += board-igep0020.o \
Adrian Hunterd02a900b2010-02-15 10:03:34 -0800161 hsmmc.o
Enric Balletbo i Serrae844b1d2010-10-08 10:22:11 -0700162obj-$(CONFIG_MACH_IGEP0030) += board-igep0030.o \
163 hsmmc.o
Gregoire Gentil7a079ca2009-12-11 16:16:34 -0800164obj-$(CONFIG_MACH_OMAP3_TOUCHBOOK) += board-omap3touchbook.o \
Adrian Hunterd02a900b2010-02-15 10:03:34 -0800165 hsmmc.o
kishore kadiyala717c1fb2010-05-15 18:21:06 +0000166obj-$(CONFIG_MACH_OMAP_4430SDP) += board-4430sdp.o \
167 hsmmc.o
David Andersb075f582010-08-02 13:18:05 +0300168obj-$(CONFIG_MACH_OMAP4_PANDA) += board-omap4panda.o \
169 hsmmc.o
Tony Lindgrenad19d8d2009-03-30 22:58:31 +0100170
Paul Walmsley657ebfa2010-02-22 22:09:20 -0700171obj-$(CONFIG_MACH_OMAP3517EVM) += board-am3517evm.o
Ranjith Lohithakshanc6253272009-11-18 18:41:09 -0800172
Jason9cbc3492010-05-17 14:39:09 +0800173obj-$(CONFIG_MACH_SBC3530) += board-omap3stalker.o \
174 hsmmc.o
Felipe Balbi18cb7ac2009-03-23 18:34:06 -0700175# Platform specific device init code
Tony Lindgrenb5e89052010-07-05 16:31:29 +0300176usbfs-$(CONFIG_ARCH_OMAP_OTG) := usb-fs.o
177obj-y += $(usbfs-m) $(usbfs-y)
Felipe Balbi18cb7ac2009-03-23 18:34:06 -0700178obj-y += usb-musb.o
Kalle Valo1b52d5d2009-08-28 10:51:37 -0700179obj-$(CONFIG_MACH_OMAP2_TUSB6010) += usb-tusb6010.o
Felipe Balbi58a54912009-11-22 10:11:01 -0800180obj-y += usb-ehci.o
Juha Yrjolaaa62e902009-05-28 13:23:52 -0700181
182onenand-$(CONFIG_MTD_ONENAND_OMAP2) := gpmc-onenand.o
183obj-y += $(onenand-m) $(onenand-y)
Tony Lindgren1a48e152009-05-28 13:23:52 -0700184
Vimal Singh2f70a1e2010-02-15 10:03:33 -0800185nand-$(CONFIG_MTD_NAND_OMAP2) := gpmc-nand.o
186obj-y += $(nand-m) $(nand-y)
187
Tony Lindgren1a48e152009-05-28 13:23:52 -0700188smc91x-$(CONFIG_SMC91X) := gpmc-smc91x.o
189obj-y += $(smc91x-m) $(smc91x-y)
Tim Nordellcdd280b2010-09-27 16:05:49 +0000190
191smsc911x-$(CONFIG_SMSC911X) := gpmc-smsc911x.o
192obj-y += $(smsc911x-m) $(smsc911x-y)