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 9hwmod-common = omap_hwmod.o \ 10 omap_hwmod_common_data.o 11prcm-common = prcm.o powerdomain.o 12clock-common = clock.o clock_common_data.o \ 13 clockdomain.o clkt_dpll.o \ 14 clkt_clksel.o 15 16obj-$(CONFIG_ARCH_OMAP2) += $(omap-2-3-common) $(prcm-common) $(hwmod-common) 17obj-$(CONFIG_ARCH_OMAP3) += $(omap-2-3-common) $(prcm-common) $(hwmod-common) 18obj-$(CONFIG_ARCH_OMAP4) += $(prcm-common) 19 20obj-$(CONFIG_OMAP_MCBSP) += mcbsp.o 21 22# SMP support ONLY available for OMAP4 23obj-$(CONFIG_SMP) += omap-smp.o omap-headsmp.o 24obj-$(CONFIG_LOCAL_TIMERS) += timer-mpu.o 25obj-$(CONFIG_ARCH_OMAP4) += omap44xx-smc.o omap4-common.o 26 27AFLAGS_omap44xx-smc.o :=-Wa,-march=armv7-a 28 29# Functions loaded to SRAM 30obj-$(CONFIG_ARCH_OMAP2420) += sram242x.o 31obj-$(CONFIG_ARCH_OMAP2430) += sram243x.o 32obj-$(CONFIG_ARCH_OMAP3) += sram34xx.o 33 34AFLAGS_sram242x.o :=-Wa,-march=armv6 35AFLAGS_sram243x.o :=-Wa,-march=armv6 36AFLAGS_sram34xx.o :=-Wa,-march=armv7-a 37 38# Pin multiplexing 39obj-$(CONFIG_ARCH_OMAP3) += mux34xx.o 40 41# SMS/SDRC 42obj-$(CONFIG_ARCH_OMAP2) += sdrc2xxx.o 43# obj-$(CONFIG_ARCH_OMAP3) += sdrc3xxx.o 44 45# Power Management 46ifeq ($(CONFIG_PM),y) 47obj-$(CONFIG_ARCH_OMAP2) += pm24xx.o 48obj-$(CONFIG_ARCH_OMAP2) += sleep24xx.o 49obj-$(CONFIG_ARCH_OMAP3) += pm34xx.o sleep34xx.o cpuidle34xx.o 50obj-$(CONFIG_PM_DEBUG) += pm-debug.o 51 52AFLAGS_sleep24xx.o :=-Wa,-march=armv6 53AFLAGS_sleep34xx.o :=-Wa,-march=armv7-a 54 55endif 56 57# PRCM 58obj-$(CONFIG_ARCH_OMAP2) += cm.o 59obj-$(CONFIG_ARCH_OMAP3) += cm.o 60obj-$(CONFIG_ARCH_OMAP4) += cm4xxx.o 61 62# Clock framework 63obj-$(CONFIG_ARCH_OMAP2) += $(clock-common) clock2xxx.o \ 64 clkt2xxx_sys.o \ 65 clkt2xxx_dpllcore.o \ 66 clkt2xxx_virt_prcm_set.o \ 67 clkt2xxx_apll.o clkt2xxx_osc.o 68obj-$(CONFIG_ARCH_OMAP2420) += clock2420_data.o 69obj-$(CONFIG_ARCH_OMAP2430) += clock2430.o clock2430_data.o 70obj-$(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) 78obj-$(CONFIG_ARCH_OMAP2420) += opp2420_data.o 79obj-$(CONFIG_ARCH_OMAP2430) += opp2430_data.o 80 81# 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 85 86# EMU peripherals 87obj-$(CONFIG_OMAP3_EMU) += emu.o 88 89obj-$(CONFIG_OMAP_MBOX_FWK) += mailbox_mach.o 90mailbox_mach-objs := mailbox.o 91 92obj-$(CONFIG_OMAP_IOMMU) := iommu2.o omap-iommu.o 93 94i2c-omap-$(CONFIG_I2C_OMAP) := i2c.o 95obj-y += $(i2c-omap-m) $(i2c-omap-y) 96 97# Specific board support 98obj-$(CONFIG_MACH_OMAP_GENERIC) += board-generic.o 99obj-$(CONFIG_MACH_OMAP_H4) += board-h4.o 100obj-$(CONFIG_MACH_OMAP_2430SDP) += board-2430sdp.o \ 101 hsmmc.o 102obj-$(CONFIG_MACH_OMAP_APOLLON) += board-apollon.o 103obj-$(CONFIG_MACH_OMAP3_BEAGLE) += board-omap3beagle.o \ 104 hsmmc.o 105obj-$(CONFIG_MACH_DEVKIT8000) += board-devkit8000.o \ 106 hsmmc.o 107obj-$(CONFIG_MACH_OMAP_LDP) += board-ldp.o \ 108 hsmmc.o 109obj-$(CONFIG_MACH_OVERO) += board-overo.o \ 110 hsmmc.o 111obj-$(CONFIG_MACH_OMAP3EVM) += board-omap3evm.o \ 112 hsmmc.o 113obj-$(CONFIG_MACH_OMAP3_PANDORA) += board-omap3pandora.o \ 114 hsmmc.o 115obj-$(CONFIG_MACH_OMAP_3430SDP) += board-3430sdp.o \ 116 hsmmc.o \ 117 board-sdp-flash.o 118obj-$(CONFIG_MACH_NOKIA_N8X0) += board-n8x0.o 119obj-$(CONFIG_MACH_NOKIA_RX51) += board-rx51.o \ 120 board-rx51-sdram.o \ 121 board-rx51-peripherals.o \ 122 board-rx51-video.o \ 123 hsmmc.o 124obj-$(CONFIG_MACH_OMAP_ZOOM2) += board-zoom2.o \ 125 board-zoom-peripherals.o \ 126 hsmmc.o \ 127 board-zoom-debugboard.o 128obj-$(CONFIG_MACH_OMAP_ZOOM3) += board-zoom3.o \ 129 board-zoom-peripherals.o \ 130 hsmmc.o \ 131 board-zoom-debugboard.o 132obj-$(CONFIG_MACH_OMAP_3630SDP) += board-3630sdp.o \ 133 board-zoom-peripherals.o \ 134 hsmmc.o 135obj-$(CONFIG_MACH_CM_T35) += board-cm-t35.o \ 136 hsmmc.o 137obj-$(CONFIG_MACH_IGEP0020) += board-igep0020.o \ 138 hsmmc.o 139obj-$(CONFIG_MACH_OMAP3_TOUCHBOOK) += board-omap3touchbook.o \ 140 hsmmc.o 141obj-$(CONFIG_MACH_OMAP_4430SDP) += board-4430sdp.o \ 142 hsmmc.o 143 144obj-$(CONFIG_MACH_OMAP3517EVM) += board-am3517evm.o 145 146obj-$(CONFIG_MACH_SBC3530) += board-omap3stalker.o \ 147 hsmmc.o 148# Platform specific device init code 149obj-y += usb-musb.o 150obj-$(CONFIG_MACH_OMAP2_TUSB6010) += usb-tusb6010.o 151obj-y += usb-ehci.o 152 153onenand-$(CONFIG_MTD_ONENAND_OMAP2) := gpmc-onenand.o 154obj-y += $(onenand-m) $(onenand-y) 155 156nand-$(CONFIG_MTD_NAND_OMAP2) := gpmc-nand.o 157obj-y += $(nand-m) $(nand-y) 158 159smc91x-$(CONFIG_SMC91X) := gpmc-smc91x.o 160obj-y += $(smc91x-m) $(smc91x-y) 161