blob: d28e9e5702a0b52e78b8d42611db2b488ee923b3 [file] [log] [blame]
Tony Lindgren1dbae812005-11-10 14:26:51 +00001#
2# Makefile for the linux kernel.
3#
4
5# Common support
Tony Lindgrend7607662009-05-25 11:26:47 -07006obj-y := id.o io.o control.o mux.o devices.o serial.o gpmc.o timer-gp.o
7
Paul Walmsley43b40992010-02-22 22:09:34 -07008omap-2-3-common = irq.o sdrc.o
9hwmod-common = omap_hwmod.o \
Thara Gopinath358f0e62010-02-24 12:05:58 -070010 omap_hwmod_common_data.o
Tony Lindgrend7607662009-05-25 11:26:47 -070011prcm-common = prcm.o powerdomain.o
Paul Walmsley0b96af62010-01-26 20:13:03 -070012clock-common = clock.o clock_common_data.o \
Paul Walmsleydf791b32010-01-26 20:13:04 -070013 clockdomain.o clkt_dpll.o \
14 clkt_clksel.o
Tony Lindgrend7607662009-05-25 11:26:47 -070015
Paul Walmsley43b40992010-02-22 22:09:34 -070016obj-$(CONFIG_ARCH_OMAP2) += $(omap-2-3-common) $(prcm-common) $(hwmod-common)
17obj-$(CONFIG_ARCH_OMAP3) += $(omap-2-3-common) $(prcm-common) $(hwmod-common)
Paul Walmsley657ebfa2010-02-22 22:09:20 -070018obj-$(CONFIG_ARCH_OMAP4) += $(prcm-common)
Tony Lindgren1dbae812005-11-10 14:26:51 +000019
Eduardo Valentin78673bc2008-07-03 12:24:40 +030020obj-$(CONFIG_OMAP_MCBSP) += mcbsp.o
21
Santosh Shilimkar934f8be2009-04-28 20:52:05 +053022# SMP support ONLY available for OMAP4
23obj-$(CONFIG_SMP) += omap-smp.o omap-headsmp.o
24obj-$(CONFIG_LOCAL_TIMERS) += timer-mpu.o
Santosh Shilimkarfbc9be12010-05-14 12:05:26 -070025obj-$(CONFIG_ARCH_OMAP4) += omap44xx-smc.o omap4-common.o
Santosh Shilimkard660f9a2010-03-11 07:33:46 +000026
27AFLAGS_omap44xx-smc.o :=-Wa,-march=armv7-a
Santosh Shilimkar934f8be2009-04-28 20:52:05 +053028
Tony Lindgrenc2d43e32008-07-03 12:24:38 +030029# Functions loaded to SRAM
30obj-$(CONFIG_ARCH_OMAP2420) += sram242x.o
31obj-$(CONFIG_ARCH_OMAP2430) += sram243x.o
Syed Mohammed, Khasimcc26b3b2008-10-09 17:51:41 +030032obj-$(CONFIG_ARCH_OMAP3) += sram34xx.o
Tony Lindgrenc2d43e32008-07-03 12:24:38 +030033
Tony Lindgren56213ca2010-02-12 12:26:46 -080034AFLAGS_sram242x.o :=-Wa,-march=armv6
35AFLAGS_sram243x.o :=-Wa,-march=armv6
36AFLAGS_sram34xx.o :=-Wa,-march=armv7-a
37
Tony Lindgrenddaa9122009-12-11 16:16:32 -080038# Pin multiplexing
39obj-$(CONFIG_ARCH_OMAP3) += mux34xx.o
40
Paul Walmsleyf2ab9972009-01-28 12:27:37 -070041# SMS/SDRC
42obj-$(CONFIG_ARCH_OMAP2) += sdrc2xxx.o
43# obj-$(CONFIG_ARCH_OMAP3) += sdrc3xxx.o
44
Tony Lindgren120db2c2006-04-02 17:46:27 +010045# Power Management
Tony Lindgren1835f1d2008-10-06 15:49:15 +030046ifeq ($(CONFIG_PM),y)
Kevin Hilman8bd22942009-05-28 10:56:16 -070047obj-$(CONFIG_ARCH_OMAP2) += pm24xx.o
Tony Lindgren088ef952010-02-12 12:26:47 -080048obj-$(CONFIG_ARCH_OMAP2) += sleep24xx.o
Rajendra Nayak99e6a4d2008-10-08 17:30:58 +053049obj-$(CONFIG_ARCH_OMAP3) += pm34xx.o sleep34xx.o cpuidle34xx.o
Kevin Hilman8bd22942009-05-28 10:56:16 -070050obj-$(CONFIG_PM_DEBUG) += pm-debug.o
Tony Lindgren56213ca2010-02-12 12:26:46 -080051
52AFLAGS_sleep24xx.o :=-Wa,-march=armv6
53AFLAGS_sleep34xx.o :=-Wa,-march=armv7-a
54
Tony Lindgren1835f1d2008-10-06 15:49:15 +030055endif
Tony Lindgren120db2c2006-04-02 17:46:27 +010056
Paul Walmsley71348bc2009-09-03 20:14:02 +030057# PRCM
58obj-$(CONFIG_ARCH_OMAP2) += cm.o
59obj-$(CONFIG_ARCH_OMAP3) += cm.o
60obj-$(CONFIG_ARCH_OMAP4) += cm4xxx.o
61
Paul Walmsley3d876e52008-03-18 14:41:40 +020062# Clock framework
Paul Walmsley657ebfa2010-02-22 22:09:20 -070063obj-$(CONFIG_ARCH_OMAP2) += $(clock-common) clock2xxx.o \
Paul Walmsley81b34fb2010-02-22 22:09:22 -070064 clkt2xxx_sys.o \
Paul Walmsley657ebfa2010-02-22 22:09:20 -070065 clkt2xxx_dpllcore.o \
66 clkt2xxx_virt_prcm_set.o \
67 clkt2xxx_apll.o clkt2xxx_osc.o
Paul Walmsley81b34fb2010-02-22 22:09:22 -070068obj-$(CONFIG_ARCH_OMAP2420) += clock2420_data.o
69obj-$(CONFIG_ARCH_OMAP2430) += clock2430.o clock2430_data.o
Paul Walmsley657ebfa2010-02-22 22:09:20 -070070obj-$(CONFIG_ARCH_OMAP3) += $(clock-common) clock3xxx.o \
71 clock34xx.o clkt34xx_dpll3m2.o \
72 clock3517.o clock36xx.o \
73 dpll3xxx.o clock3xxx_data.o
74obj-$(CONFIG_ARCH_OMAP4) += $(clock-common) clock44xx_data.o \
75 dpll3xxx.o
76
77# OMAP2 clock rate set data (old "OPP" data)
Paul Walmsleyd8a94452009-12-08 16:21:29 -070078obj-$(CONFIG_ARCH_OMAP2420) += opp2420_data.o
Paul Walmsleyd8a94452009-12-08 16:21:29 -070079obj-$(CONFIG_ARCH_OMAP2430) += opp2430_data.o
Paul Walmsley3d876e52008-03-18 14:41:40 +020080
Paul Walmsley73591542010-02-22 22:09:32 -070081# hwmod data
82obj-$(CONFIG_ARCH_OMAP2420) += omap_hwmod_2420_data.o
83obj-$(CONFIG_ARCH_OMAP2430) += omap_hwmod_2430_data.o
84obj-$(CONFIG_ARCH_OMAP3) += omap_hwmod_3xxx_data.o
Tony Lindgren1dbae812005-11-10 14:26:51 +000085
Alexander Shishkin183bd502009-12-01 14:03:31 +010086# EMU peripherals
Paul Walmsley657ebfa2010-02-22 22:09:20 -070087obj-$(CONFIG_OMAP3_EMU) += emu.o
Alexander Shishkin183bd502009-12-01 14:03:31 +010088
C A Subramaniam59fdc6e2009-11-22 10:11:17 -080089obj-$(CONFIG_OMAP_MBOX_FWK) += mailbox_mach.o
90mailbox_mach-objs := mailbox.o
91
Kanigeri, Hari44da3972010-04-22 23:26:08 +000092obj-$(CONFIG_OMAP_IOMMU) := iommu2.o omap-iommu.o
Hiroshi DOYUcaf60772009-01-28 21:32:09 +020093
Tony Lindgrenb63128e2009-12-11 16:16:32 -080094i2c-omap-$(CONFIG_I2C_OMAP) := i2c.o
95obj-y += $(i2c-omap-m) $(i2c-omap-y)
96
Tony Lindgren1dbae812005-11-10 14:26:51 +000097# Specific board support
98obj-$(CONFIG_MACH_OMAP_GENERIC) += board-generic.o
99obj-$(CONFIG_MACH_OMAP_H4) += board-h4.o
Tony Lindgren90c62bf2008-12-10 17:37:17 -0800100obj-$(CONFIG_MACH_OMAP_2430SDP) += board-2430sdp.o \
Adrian Hunterd02a900b2010-02-15 10:03:34 -0800101 hsmmc.o
Tony Lindgren120db2c2006-04-02 17:46:27 +0100102obj-$(CONFIG_MACH_OMAP_APOLLON) += board-apollon.o
Tony Lindgren90c62bf2008-12-10 17:37:17 -0800103obj-$(CONFIG_MACH_OMAP3_BEAGLE) += board-omap3beagle.o \
Adrian Hunterd02a900b2010-02-15 10:03:34 -0800104 hsmmc.o
Thomas Weber476544c2010-02-17 14:09:28 -0800105obj-$(CONFIG_MACH_DEVKIT8000) += board-devkit8000.o \
106 hsmmc.o
Tony Lindgren90c62bf2008-12-10 17:37:17 -0800107obj-$(CONFIG_MACH_OMAP_LDP) += board-ldp.o \
Adrian Hunterd02a900b2010-02-15 10:03:34 -0800108 hsmmc.o
Tony Lindgren90c62bf2008-12-10 17:37:17 -0800109obj-$(CONFIG_MACH_OVERO) += board-overo.o \
Adrian Hunterd02a900b2010-02-15 10:03:34 -0800110 hsmmc.o
Syed Mohammed Khasim53c5ec32009-05-28 14:13:28 -0700111obj-$(CONFIG_MACH_OMAP3EVM) += board-omap3evm.o \
Adrian Hunterd02a900b2010-02-15 10:03:34 -0800112 hsmmc.o
Tony Lindgren90c62bf2008-12-10 17:37:17 -0800113obj-$(CONFIG_MACH_OMAP3_PANDORA) += board-omap3pandora.o \
Adrian Hunterd02a900b2010-02-15 10:03:34 -0800114 hsmmc.o
Syed Mohammed Khasim6fdc29e2009-03-23 18:38:16 -0700115obj-$(CONFIG_MACH_OMAP_3430SDP) += board-3430sdp.o \
Adrian Hunterd02a900b2010-02-15 10:03:34 -0800116 hsmmc.o \
Vimal Singh88c84602010-02-15 10:03:34 -0800117 board-sdp-flash.o
Kalle Valo63138812009-08-28 10:51:38 -0700118obj-$(CONFIG_MACH_NOKIA_N8X0) += board-n8x0.o
Lauri Leukkunenffe7f952009-03-23 18:38:17 -0700119obj-$(CONFIG_MACH_NOKIA_RX51) += board-rx51.o \
Tero Kristo20006552009-11-22 10:11:36 -0800120 board-rx51-sdram.o \
Lauri Leukkunenffe7f952009-03-23 18:38:17 -0700121 board-rx51-peripherals.o \
Adrian Hunterd02a900b2010-02-15 10:03:34 -0800122 hsmmc.o
Vikram Pandita577145f2009-05-28 14:04:04 -0700123obj-$(CONFIG_MACH_OMAP_ZOOM2) += board-zoom2.o \
vikram pandita479f12c2009-11-22 10:11:30 -0800124 board-zoom-peripherals.o \
Adrian Hunterd02a900b2010-02-15 10:03:34 -0800125 hsmmc.o \
Vikram Pandita577145f2009-05-28 14:04:04 -0700126 board-zoom-debugboard.o
vikram pandita5f35fbe2009-11-22 10:11:32 -0800127obj-$(CONFIG_MACH_OMAP_ZOOM3) += board-zoom3.o \
128 board-zoom-peripherals.o \
Adrian Hunterd02a900b2010-02-15 10:03:34 -0800129 hsmmc.o \
vikram pandita5f35fbe2009-11-22 10:11:32 -0800130 board-zoom-debugboard.o
vikram pandita34c9ac22009-11-18 18:41:08 -0800131obj-$(CONFIG_MACH_OMAP_3630SDP) += board-3630sdp.o \
132 board-zoom-peripherals.o \
Adrian Hunterd02a900b2010-02-15 10:03:34 -0800133 hsmmc.o
Mike Rapoport2886d122009-11-18 18:41:07 -0800134obj-$(CONFIG_MACH_CM_T35) += board-cm-t35.o \
Adrian Hunterd02a900b2010-02-15 10:03:34 -0800135 hsmmc.o
Enric Balletbo i Serra58e11162009-11-18 18:41:07 -0800136obj-$(CONFIG_MACH_IGEP0020) += board-igep0020.o \
Adrian Hunterd02a900b2010-02-15 10:03:34 -0800137 hsmmc.o
Gregoire Gentil7a079ca2009-12-11 16:16:34 -0800138obj-$(CONFIG_MACH_OMAP3_TOUCHBOOK) += board-omap3touchbook.o \
Adrian Hunterd02a900b2010-02-15 10:03:34 -0800139 hsmmc.o
kishore kadiyala717c1fb2010-05-15 18:21:06 +0000140obj-$(CONFIG_MACH_OMAP_4430SDP) += board-4430sdp.o \
141 hsmmc.o
Tony Lindgrenad19d8d2009-03-30 22:58:31 +0100142
Paul Walmsley657ebfa2010-02-22 22:09:20 -0700143obj-$(CONFIG_MACH_OMAP3517EVM) += board-am3517evm.o
Ranjith Lohithakshanc6253272009-11-18 18:41:09 -0800144
Jason9cbc3492010-05-17 14:39:09 +0800145obj-$(CONFIG_MACH_SBC3530) += board-omap3stalker.o \
146 hsmmc.o
Felipe Balbi18cb7ac2009-03-23 18:34:06 -0700147# Platform specific device init code
Felipe Balbi18cb7ac2009-03-23 18:34:06 -0700148obj-y += usb-musb.o
Kalle Valo1b52d5d2009-08-28 10:51:37 -0700149obj-$(CONFIG_MACH_OMAP2_TUSB6010) += usb-tusb6010.o
Felipe Balbi58a54912009-11-22 10:11:01 -0800150obj-y += usb-ehci.o
Juha Yrjolaaa62e902009-05-28 13:23:52 -0700151
152onenand-$(CONFIG_MTD_ONENAND_OMAP2) := gpmc-onenand.o
153obj-y += $(onenand-m) $(onenand-y)
Tony Lindgren1a48e152009-05-28 13:23:52 -0700154
Vimal Singh2f70a1e2010-02-15 10:03:33 -0800155nand-$(CONFIG_MTD_NAND_OMAP2) := gpmc-nand.o
156obj-y += $(nand-m) $(nand-y)
157
Tony Lindgren1a48e152009-05-28 13:23:52 -0700158smc91x-$(CONFIG_SMC91X) := gpmc-smc91x.o
159obj-y += $(smc91x-m) $(smc91x-y)