1# 2# Makefile for the linux kernel. 3# 4 5# Common support 6obj-y := id.o io.o control.o mux.o devices.o serial.o gpmc.o timer-gp.o 7 8omap-2-3-common = irq.o sdrc.o omap_hwmod.o 9omap-3-4-common = dpll3xxx.o 10prcm-common = prcm.o powerdomain.o 11clock-common = clock.o clock_common_data.o \ 12 clockdomain.o clkt_dpll.o \ 13 clkt_clksel.o 14clock-omap2xxx = clkt2xxx_dpllcore.o \ 15 clkt2xxx_virt_prcm_set.o \ 16 clkt2xxx_apll.o clkt2xxx_osc.o \ 17 clkt2xxx_sys.o 18clock-omap3xxx = clkt34xx_dpll3m2.o 19 20obj-$(CONFIG_ARCH_OMAP2) += $(omap-2-3-common) $(prcm-common) $(clock-common) \ 21 $(clock-omap2xxx) 22obj-$(CONFIG_ARCH_OMAP3) += $(omap-2-3-common) $(prcm-common) $(clock-common) \ 23 $(omap-3-4-common) $(clock-omap3xxx) 24obj-$(CONFIG_ARCH_OMAP4) += $(omap-3-4-common) $(prcm-common) $(clock-common) 25 26obj-$(CONFIG_OMAP_MCBSP) += mcbsp.o 27 28# SMP support ONLY available for OMAP4 29obj-$(CONFIG_SMP) += omap-smp.o omap-headsmp.o 30obj-$(CONFIG_LOCAL_TIMERS) += timer-mpu.o 31 32# Functions loaded to SRAM 33obj-$(CONFIG_ARCH_OMAP2420) += sram242x.o 34obj-$(CONFIG_ARCH_OMAP2430) += sram243x.o 35obj-$(CONFIG_ARCH_OMAP3) += sram34xx.o 36 37AFLAGS_sram242x.o :=-Wa,-march=armv6 38AFLAGS_sram243x.o :=-Wa,-march=armv6 39AFLAGS_sram34xx.o :=-Wa,-march=armv7-a 40 41# Pin multiplexing 42obj-$(CONFIG_ARCH_OMAP3) += mux34xx.o 43 44# SMS/SDRC 45obj-$(CONFIG_ARCH_OMAP2) += sdrc2xxx.o 46# obj-$(CONFIG_ARCH_OMAP3) += sdrc3xxx.o 47 48# Power Management 49ifeq ($(CONFIG_PM),y) 50obj-$(CONFIG_ARCH_OMAP2) += pm24xx.o 51obj-$(CONFIG_ARCH_OMAP2) += sleep24xx.o 52obj-$(CONFIG_ARCH_OMAP3) += pm34xx.o sleep34xx.o cpuidle34xx.o 53obj-$(CONFIG_PM_DEBUG) += pm-debug.o 54 55AFLAGS_sleep24xx.o :=-Wa,-march=armv6 56AFLAGS_sleep34xx.o :=-Wa,-march=armv7-a 57 58endif 59 60# PRCM 61obj-$(CONFIG_ARCH_OMAP2) += cm.o 62obj-$(CONFIG_ARCH_OMAP3) += cm.o 63obj-$(CONFIG_ARCH_OMAP4) += cm4xxx.o 64 65# Clock framework 66obj-$(CONFIG_ARCH_OMAP2) += clock2xxx.o clock2xxx_data.o 67obj-$(CONFIG_ARCH_OMAP2420) += opp2420_data.o 68obj-$(CONFIG_ARCH_OMAP3) += clock34xx.o clock34xx_data.o 69obj-$(CONFIG_ARCH_OMAP2430) += opp2430_data.o 70obj-$(CONFIG_ARCH_OMAP4) += clock44xx.o clock44xx_data.o 71 72# EMU peripherals 73obj-$(CONFIG_OMAP3_EMU) += emu.o 74 75obj-$(CONFIG_OMAP_MBOX_FWK) += mailbox_mach.o 76mailbox_mach-objs := mailbox.o 77 78iommu-y += iommu2.o 79iommu-$(CONFIG_ARCH_OMAP3) += omap3-iommu.o 80 81obj-$(CONFIG_OMAP_IOMMU) += $(iommu-y) 82 83i2c-omap-$(CONFIG_I2C_OMAP) := i2c.o 84obj-y += $(i2c-omap-m) $(i2c-omap-y) 85 86# Specific board support 87obj-$(CONFIG_MACH_OMAP_GENERIC) += board-generic.o 88obj-$(CONFIG_MACH_OMAP_H4) += board-h4.o 89obj-$(CONFIG_MACH_OMAP_2430SDP) += board-2430sdp.o \ 90 hsmmc.o 91obj-$(CONFIG_MACH_OMAP_APOLLON) += board-apollon.o 92obj-$(CONFIG_MACH_OMAP3_BEAGLE) += board-omap3beagle.o \ 93 hsmmc.o 94obj-$(CONFIG_MACH_OMAP_LDP) += board-ldp.o \ 95 hsmmc.o 96obj-$(CONFIG_MACH_OVERO) += board-overo.o \ 97 hsmmc.o 98obj-$(CONFIG_MACH_OMAP3EVM) += board-omap3evm.o \ 99 hsmmc.o 100obj-$(CONFIG_MACH_OMAP3_PANDORA) += board-omap3pandora.o \ 101 hsmmc.o 102obj-$(CONFIG_MACH_OMAP_3430SDP) += board-3430sdp.o \ 103 hsmmc.o \ 104 board-sdp-flash.o 105obj-$(CONFIG_MACH_NOKIA_N8X0) += board-n8x0.o 106obj-$(CONFIG_MACH_NOKIA_RX51) += board-rx51.o \ 107 board-rx51-sdram.o \ 108 board-rx51-peripherals.o \ 109 hsmmc.o 110obj-$(CONFIG_MACH_OMAP_ZOOM2) += board-zoom2.o \ 111 board-zoom-peripherals.o \ 112 hsmmc.o \ 113 board-zoom-debugboard.o 114obj-$(CONFIG_MACH_OMAP_ZOOM3) += board-zoom3.o \ 115 board-zoom-peripherals.o \ 116 hsmmc.o \ 117 board-zoom-debugboard.o 118obj-$(CONFIG_MACH_OMAP_3630SDP) += board-3630sdp.o \ 119 board-zoom-peripherals.o \ 120 hsmmc.o 121obj-$(CONFIG_MACH_CM_T35) += board-cm-t35.o \ 122 hsmmc.o 123obj-$(CONFIG_MACH_IGEP0020) += board-igep0020.o \ 124 hsmmc.o 125obj-$(CONFIG_MACH_OMAP3_TOUCHBOOK) += board-omap3touchbook.o \ 126 hsmmc.o 127obj-$(CONFIG_MACH_OMAP_4430SDP) += board-4430sdp.o 128 129obj-$(CONFIG_MACH_OMAP3517EVM) += board-am3517evm.o 130 131# Platform specific device init code 132obj-y += usb-musb.o 133obj-$(CONFIG_MACH_OMAP2_TUSB6010) += usb-tusb6010.o 134obj-y += usb-ehci.o 135 136onenand-$(CONFIG_MTD_ONENAND_OMAP2) := gpmc-onenand.o 137obj-y += $(onenand-m) $(onenand-y) 138 139nand-$(CONFIG_MTD_NAND_OMAP2) := gpmc-nand.o 140obj-y += $(nand-m) $(nand-y) 141 142smc91x-$(CONFIG_SMC91X) := gpmc-smc91x.o 143obj-y += $(smc91x-m) $(smc91x-y) 144