diff options
Diffstat (limited to 'arch/arm/mach-omap2/Makefile')
-rw-r--r-- | arch/arm/mach-omap2/Makefile | 100 |
1 files changed, 58 insertions, 42 deletions
diff --git a/arch/arm/mach-omap2/Makefile b/arch/arm/mach-omap2/Makefile index fe40d9e488c9..20849604be94 100644 --- a/arch/arm/mach-omap2/Makefile +++ b/arch/arm/mach-omap2/Makefile | |||
@@ -4,30 +4,36 @@ | |||
4 | 4 | ||
5 | # Common support | 5 | # Common support |
6 | obj-y := id.o io.o control.o mux.o devices.o serial.o gpmc.o timer.o pm.o \ | 6 | obj-y := id.o io.o control.o mux.o devices.o serial.o gpmc.o timer.o pm.o \ |
7 | common.o gpio.o dma.o wd_timer.o display.o i2c.o hdq1w.o omap_hwmod.o | 7 | common.o gpio.o dma.o wd_timer.o display.o i2c.o hdq1w.o |
8 | 8 | ||
9 | # INTCPS IP block support - XXX should be moved to drivers/ | 9 | omap-2-3-common = irq.o |
10 | obj-$(CONFIG_ARCH_OMAP2) += irq.o | 10 | hwmod-common = omap_hwmod.o \ |
11 | obj-$(CONFIG_ARCH_OMAP3) += irq.o | 11 | omap_hwmod_common_data.o |
12 | obj-$(CONFIG_SOC_AM33XX) += irq.o | 12 | clock-common = clock.o clock_common_data.o \ |
13 | clkt_dpll.o clkt_clksel.o | ||
14 | secure-common = omap-smc.o omap-secure.o | ||
13 | 15 | ||
14 | # Secure monitor API support | 16 | obj-$(CONFIG_ARCH_OMAP2) += $(omap-2-3-common) $(hwmod-common) |
15 | obj-$(CONFIG_ARCH_OMAP3) += omap-smc.o omap-secure.o | 17 | obj-$(CONFIG_ARCH_OMAP3) += $(omap-2-3-common) $(hwmod-common) $(secure-common) |
16 | obj-$(CONFIG_ARCH_OMAP4) += omap-smc.o omap-secure.o | 18 | obj-$(CONFIG_ARCH_OMAP4) += prm44xx.o $(hwmod-common) $(secure-common) |
17 | obj-$(CONFIG_SOC_OMAP5) += omap-smc.o omap-secure.o | 19 | obj-$(CONFIG_SOC_AM33XX) += irq.o $(hwmod-common) |
20 | obj-$(CONFIG_SOC_OMAP5) += prm44xx.o $(hwmod-common) $(secure-common) | ||
18 | 21 | ||
19 | ifneq ($(CONFIG_SND_OMAP_SOC_MCBSP),) | 22 | ifneq ($(CONFIG_SND_OMAP_SOC_MCBSP),) |
20 | obj-y += mcbsp.o | 23 | obj-y += mcbsp.o |
21 | endif | 24 | endif |
22 | 25 | ||
23 | obj-$(CONFIG_TWL4030_CORE) += omap_twl.o | 26 | obj-$(CONFIG_TWL4030_CORE) += omap_twl.o |
27 | obj-$(CONFIG_SOC_HAS_OMAP2_SDRC) += sdrc.o | ||
24 | 28 | ||
25 | # SMP support ONLY available for OMAP4 | 29 | # SMP support ONLY available for OMAP4 |
26 | 30 | ||
27 | obj-$(CONFIG_SMP) += omap-smp.o omap-headsmp.o | 31 | obj-$(CONFIG_SMP) += omap-smp.o omap-headsmp.o |
28 | obj-$(CONFIG_HOTPLUG_CPU) += omap-hotplug.o | 32 | obj-$(CONFIG_HOTPLUG_CPU) += omap-hotplug.o |
29 | obj-$(CONFIG_ARCH_OMAP4) += omap4-common.o omap-wakeupgen.o | 33 | omap-4-5-common = omap4-common.o omap-wakeupgen.o \ |
30 | obj-$(CONFIG_SOC_OMAP5) += omap4-common.o omap-wakeupgen.o | 34 | sleep44xx.o |
35 | obj-$(CONFIG_ARCH_OMAP4) += $(omap-4-5-common) | ||
36 | obj-$(CONFIG_SOC_OMAP5) += $(omap-4-5-common) | ||
31 | 37 | ||
32 | plus_sec := $(call as-instr,.arch_extension sec,+sec) | 38 | plus_sec := $(call as-instr,.arch_extension sec,+sec) |
33 | AFLAGS_omap-headsmp.o :=-Wa,-march=armv7-a$(plus_sec) | 39 | AFLAGS_omap-headsmp.o :=-Wa,-march=armv7-a$(plus_sec) |
@@ -52,7 +58,6 @@ obj-$(CONFIG_ARCH_OMAP4) += mux44xx.o | |||
52 | # SMS/SDRC | 58 | # SMS/SDRC |
53 | obj-$(CONFIG_ARCH_OMAP2) += sdrc2xxx.o | 59 | obj-$(CONFIG_ARCH_OMAP2) += sdrc2xxx.o |
54 | # obj-$(CONFIG_ARCH_OMAP3) += sdrc3xxx.o | 60 | # obj-$(CONFIG_ARCH_OMAP3) += sdrc3xxx.o |
55 | obj-$(CONFIG_SOC_HAS_OMAP2_SDRC) += sdrc.o | ||
56 | 61 | ||
57 | # OPP table initialization | 62 | # OPP table initialization |
58 | ifeq ($(CONFIG_PM_OPP),y) | 63 | ifeq ($(CONFIG_PM_OPP),y) |
@@ -63,15 +68,15 @@ endif | |||
63 | 68 | ||
64 | # Power Management | 69 | # Power Management |
65 | ifeq ($(CONFIG_PM),y) | 70 | ifeq ($(CONFIG_PM),y) |
66 | obj-$(CONFIG_ARCH_OMAP2) += pm24xx.o sleep24xx.o | 71 | obj-$(CONFIG_ARCH_OMAP2) += pm24xx.o |
72 | obj-$(CONFIG_ARCH_OMAP2) += sleep24xx.o | ||
67 | obj-$(CONFIG_ARCH_OMAP3) += pm34xx.o sleep34xx.o | 73 | obj-$(CONFIG_ARCH_OMAP3) += pm34xx.o sleep34xx.o |
68 | obj-$(CONFIG_ARCH_OMAP4) += pm44xx.o omap-mpuss-lowpower.o | 74 | obj-$(CONFIG_ARCH_OMAP4) += pm44xx.o omap-mpuss-lowpower.o |
69 | obj-$(CONFIG_ARCH_OMAP4) += sleep44xx.o | 75 | obj-$(CONFIG_SOC_OMAP5) += omap-mpuss-lowpower.o |
70 | obj-$(CONFIG_SOC_OMAP5) += omap-mpuss-lowpower.o sleep44xx.o | ||
71 | obj-$(CONFIG_PM_DEBUG) += pm-debug.o | 76 | obj-$(CONFIG_PM_DEBUG) += pm-debug.o |
72 | 77 | ||
73 | obj-$(CONFIG_POWER_AVS_OMAP) += sr_device.o | 78 | obj-$(CONFIG_POWER_AVS_OMAP) += sr_device.o |
74 | obj-$(CONFIG_POWER_AVS_OMAP_CLASS3) += smartreflex-class3.o | 79 | obj-$(CONFIG_POWER_AVS_OMAP_CLASS3) += smartreflex-class3.o |
75 | 80 | ||
76 | AFLAGS_sleep24xx.o :=-Wa,-march=armv6 | 81 | AFLAGS_sleep24xx.o :=-Wa,-march=armv6 |
77 | AFLAGS_sleep34xx.o :=-Wa,-march=armv7-a$(plus_sec) | 82 | AFLAGS_sleep34xx.o :=-Wa,-march=armv7-a$(plus_sec) |
@@ -83,76 +88,88 @@ endif | |||
83 | endif | 88 | endif |
84 | 89 | ||
85 | ifeq ($(CONFIG_CPU_IDLE),y) | 90 | ifeq ($(CONFIG_CPU_IDLE),y) |
86 | obj-$(CONFIG_ARCH_OMAP3) += cpuidle34xx.o | 91 | obj-$(CONFIG_ARCH_OMAP3) += cpuidle34xx.o |
87 | obj-$(CONFIG_ARCH_OMAP4) += cpuidle44xx.o | 92 | obj-$(CONFIG_ARCH_OMAP4) += cpuidle44xx.o |
88 | endif | 93 | endif |
89 | 94 | ||
90 | # PRCM | 95 | # PRCM |
91 | obj-y += prcm.o prm_common.o | 96 | obj-y += prcm.o prm_common.o |
92 | obj-$(CONFIG_ARCH_OMAP2) += cm2xxx_3xxx.o prm2xxx_3xxx.o | 97 | obj-$(CONFIG_ARCH_OMAP2) += cm2xxx_3xxx.o prm2xxx_3xxx.o |
93 | obj-$(CONFIG_ARCH_OMAP3) += cm2xxx_3xxx.o prm2xxx_3xxx.o | 98 | obj-$(CONFIG_ARCH_OMAP3) += cm2xxx_3xxx.o prm2xxx_3xxx.o |
99 | obj-$(CONFIG_ARCH_OMAP3) += prm3xxx.o | ||
94 | obj-$(CONFIG_ARCH_OMAP3) += vc3xxx_data.o vp3xxx_data.o | 100 | obj-$(CONFIG_ARCH_OMAP3) += vc3xxx_data.o vp3xxx_data.o |
95 | obj-$(CONFIG_SOC_AM33XX) += prm33xx.o cm33xx.o | 101 | obj-$(CONFIG_SOC_AM33XX) += prm33xx.o cm33xx.o |
96 | omap-prcm-4-5-common = cminst44xx.o cm44xx.o prm44xx.o \ | 102 | omap-prcm-4-5-common = cminst44xx.o cm44xx.o prm44xx.o \ |
97 | prcm_mpu44xx.o prminst44xx.o \ | 103 | prcm_mpu44xx.o prminst44xx.o \ |
98 | vc44xx_data.o vp44xx_data.o \ | 104 | vc44xx_data.o vp44xx_data.o |
99 | prm44xx.o | ||
100 | obj-$(CONFIG_ARCH_OMAP4) += $(omap-prcm-4-5-common) | 105 | obj-$(CONFIG_ARCH_OMAP4) += $(omap-prcm-4-5-common) |
101 | obj-$(CONFIG_SOC_OMAP5) += $(omap-prcm-4-5-common) | 106 | obj-$(CONFIG_SOC_OMAP5) += $(omap-prcm-4-5-common) |
102 | 107 | ||
103 | # OMAP voltage domains | 108 | # OMAP voltage domains |
104 | obj-y += voltage.o vc.o vp.o | 109 | voltagedomain-common := voltage.o vc.o vp.o |
110 | obj-$(CONFIG_ARCH_OMAP2) += $(voltagedomain-common) | ||
105 | obj-$(CONFIG_ARCH_OMAP2) += voltagedomains2xxx_data.o | 111 | obj-$(CONFIG_ARCH_OMAP2) += voltagedomains2xxx_data.o |
112 | obj-$(CONFIG_ARCH_OMAP3) += $(voltagedomain-common) | ||
106 | obj-$(CONFIG_ARCH_OMAP3) += voltagedomains3xxx_data.o | 113 | obj-$(CONFIG_ARCH_OMAP3) += voltagedomains3xxx_data.o |
114 | obj-$(CONFIG_ARCH_OMAP4) += $(voltagedomain-common) | ||
107 | obj-$(CONFIG_ARCH_OMAP4) += voltagedomains44xx_data.o | 115 | obj-$(CONFIG_ARCH_OMAP4) += voltagedomains44xx_data.o |
108 | obj-$(CONFIG_SOC_AM33XX) += voltagedomains33xx_data.o | 116 | obj-$(CONFIG_SOC_AM33XX) += $(voltagedomain-common) |
117 | obj-$(CONFIG_SOC_AM33XX) += voltagedomains33xx_data.o | ||
118 | obj-$(CONFIG_SOC_OMAP5) += $(voltagedomain-common) | ||
109 | 119 | ||
110 | # OMAP powerdomain framework | 120 | # OMAP powerdomain framework |
111 | obj-y += powerdomain.o powerdomain-common.o | 121 | powerdomain-common += powerdomain.o powerdomain-common.o |
122 | obj-$(CONFIG_ARCH_OMAP2) += $(powerdomain-common) | ||
112 | obj-$(CONFIG_ARCH_OMAP2) += powerdomains2xxx_data.o | 123 | obj-$(CONFIG_ARCH_OMAP2) += powerdomains2xxx_data.o |
113 | obj-$(CONFIG_ARCH_OMAP2) += powerdomain2xxx_3xxx.o | ||
114 | obj-$(CONFIG_ARCH_OMAP2) += powerdomains2xxx_3xxx_data.o | 124 | obj-$(CONFIG_ARCH_OMAP2) += powerdomains2xxx_3xxx_data.o |
115 | obj-$(CONFIG_ARCH_OMAP3) += powerdomain2xxx_3xxx.o | 125 | obj-$(CONFIG_ARCH_OMAP3) += $(powerdomain-common) |
116 | obj-$(CONFIG_ARCH_OMAP3) += powerdomains3xxx_data.o | 126 | obj-$(CONFIG_ARCH_OMAP3) += powerdomains3xxx_data.o |
117 | obj-$(CONFIG_ARCH_OMAP3) += powerdomains2xxx_3xxx_data.o | 127 | obj-$(CONFIG_ARCH_OMAP3) += powerdomains2xxx_3xxx_data.o |
118 | obj-$(CONFIG_ARCH_OMAP4) += powerdomain44xx.o | 128 | obj-$(CONFIG_ARCH_OMAP4) += $(powerdomain-common) |
119 | obj-$(CONFIG_ARCH_OMAP4) += powerdomains44xx_data.o | 129 | obj-$(CONFIG_ARCH_OMAP4) += powerdomains44xx_data.o |
120 | obj-$(CONFIG_SOC_AM33XX) += powerdomain33xx.o | 130 | obj-$(CONFIG_SOC_AM33XX) += $(powerdomain-common) |
121 | obj-$(CONFIG_SOC_AM33XX) += powerdomains33xx_data.o | 131 | obj-$(CONFIG_SOC_AM33XX) += powerdomains33xx_data.o |
122 | obj-$(CONFIG_SOC_OMAP5) += powerdomain44xx.o | 132 | obj-$(CONFIG_SOC_OMAP5) += $(powerdomain-common) |
123 | 133 | ||
124 | # PRCM clockdomain control | 134 | # PRCM clockdomain control |
125 | obj-y += clockdomain.o | 135 | clockdomain-common += clockdomain.o |
136 | obj-$(CONFIG_ARCH_OMAP2) += $(clockdomain-common) | ||
126 | obj-$(CONFIG_ARCH_OMAP2) += clockdomain2xxx_3xxx.o | 137 | obj-$(CONFIG_ARCH_OMAP2) += clockdomain2xxx_3xxx.o |
127 | obj-$(CONFIG_ARCH_OMAP2) += clockdomains2xxx_3xxx_data.o | 138 | obj-$(CONFIG_ARCH_OMAP2) += clockdomains2xxx_3xxx_data.o |
128 | obj-$(CONFIG_SOC_OMAP2420) += clockdomains2420_data.o | 139 | obj-$(CONFIG_SOC_OMAP2420) += clockdomains2420_data.o |
129 | obj-$(CONFIG_SOC_OMAP2430) += clockdomains2430_data.o | 140 | obj-$(CONFIG_SOC_OMAP2430) += clockdomains2430_data.o |
141 | obj-$(CONFIG_ARCH_OMAP3) += $(clockdomain-common) | ||
130 | obj-$(CONFIG_ARCH_OMAP3) += clockdomain2xxx_3xxx.o | 142 | obj-$(CONFIG_ARCH_OMAP3) += clockdomain2xxx_3xxx.o |
131 | obj-$(CONFIG_ARCH_OMAP3) += clockdomains2xxx_3xxx_data.o | 143 | obj-$(CONFIG_ARCH_OMAP3) += clockdomains2xxx_3xxx_data.o |
132 | obj-$(CONFIG_ARCH_OMAP3) += clockdomains3xxx_data.o | 144 | obj-$(CONFIG_ARCH_OMAP3) += clockdomains3xxx_data.o |
145 | obj-$(CONFIG_ARCH_OMAP4) += $(clockdomain-common) | ||
133 | obj-$(CONFIG_ARCH_OMAP4) += clockdomain44xx.o | 146 | obj-$(CONFIG_ARCH_OMAP4) += clockdomain44xx.o |
134 | obj-$(CONFIG_ARCH_OMAP4) += clockdomains44xx_data.o | 147 | obj-$(CONFIG_ARCH_OMAP4) += clockdomains44xx_data.o |
148 | obj-$(CONFIG_SOC_AM33XX) += $(clockdomain-common) | ||
135 | obj-$(CONFIG_SOC_AM33XX) += clockdomain33xx.o | 149 | obj-$(CONFIG_SOC_AM33XX) += clockdomain33xx.o |
136 | obj-$(CONFIG_SOC_AM33XX) += clockdomains33xx_data.o | 150 | obj-$(CONFIG_SOC_AM33XX) += clockdomains33xx_data.o |
151 | obj-$(CONFIG_SOC_OMAP5) += $(clockdomain-common) | ||
137 | obj-$(CONFIG_SOC_OMAP5) += clockdomain44xx.o | 152 | obj-$(CONFIG_SOC_OMAP5) += clockdomain44xx.o |
138 | 153 | ||
139 | # Clock framework | 154 | # Clock framework |
140 | obj-y += clock.o clock_common_data.o \ | 155 | obj-$(CONFIG_ARCH_OMAP2) += $(clock-common) clock2xxx.o |
141 | clkt_dpll.o clkt_clksel.o | 156 | obj-$(CONFIG_ARCH_OMAP2) += clkt2xxx_sys.o |
142 | obj-$(CONFIG_ARCH_OMAP2) += clock2xxx.o | 157 | obj-$(CONFIG_ARCH_OMAP2) += clkt2xxx_dpllcore.o |
143 | obj-$(CONFIG_ARCH_OMAP2) += clkt2xxx_dpllcore.o clkt2xxx_sys.o | ||
144 | obj-$(CONFIG_ARCH_OMAP2) += clkt2xxx_virt_prcm_set.o | 158 | obj-$(CONFIG_ARCH_OMAP2) += clkt2xxx_virt_prcm_set.o |
145 | obj-$(CONFIG_ARCH_OMAP2) += clkt2xxx_apll.o clkt2xxx_osc.o | 159 | obj-$(CONFIG_ARCH_OMAP2) += clkt2xxx_apll.o clkt2xxx_osc.o |
146 | obj-$(CONFIG_ARCH_OMAP2) += clkt2xxx_dpll.o clkt_iclk.o | 160 | obj-$(CONFIG_ARCH_OMAP2) += clkt2xxx_dpll.o clkt_iclk.o |
147 | obj-$(CONFIG_SOC_OMAP2420) += clock2420_data.o | 161 | obj-$(CONFIG_SOC_OMAP2420) += clock2420_data.o |
148 | obj-$(CONFIG_SOC_OMAP2430) += clock2430.o clock2430_data.o | 162 | obj-$(CONFIG_SOC_OMAP2430) += clock2430.o clock2430_data.o |
149 | obj-$(CONFIG_ARCH_OMAP3) += clock3xxx.o | 163 | obj-$(CONFIG_ARCH_OMAP3) += $(clock-common) clock3xxx.o |
150 | obj-$(CONFIG_ARCH_OMAP3) += clock34xx.o clkt34xx_dpll3m2.o | 164 | obj-$(CONFIG_ARCH_OMAP3) += clock34xx.o clkt34xx_dpll3m2.o |
151 | obj-$(CONFIG_ARCH_OMAP3) += clock3517.o clock36xx.o clkt_iclk.o | 165 | obj-$(CONFIG_ARCH_OMAP3) += clock3517.o clock36xx.o |
152 | obj-$(CONFIG_ARCH_OMAP3) += dpll3xxx.o clock3xxx_data.o | 166 | obj-$(CONFIG_ARCH_OMAP3) += dpll3xxx.o clock3xxx_data.o |
153 | obj-$(CONFIG_ARCH_OMAP4) += clock44xx_data.o | 167 | obj-$(CONFIG_ARCH_OMAP3) += clkt_iclk.o |
168 | obj-$(CONFIG_ARCH_OMAP4) += $(clock-common) clock44xx_data.o | ||
154 | obj-$(CONFIG_ARCH_OMAP4) += dpll3xxx.o dpll44xx.o | 169 | obj-$(CONFIG_ARCH_OMAP4) += dpll3xxx.o dpll44xx.o |
155 | obj-$(CONFIG_SOC_AM33XX) += dpll3xxx.o clock33xx_data.o | 170 | obj-$(CONFIG_SOC_AM33XX) += $(clock-common) dpll3xxx.o |
171 | obj-$(CONFIG_SOC_AM33XX) += clock33xx_data.o | ||
172 | obj-$(CONFIG_SOC_OMAP5) += $(clock-common) | ||
156 | obj-$(CONFIG_SOC_OMAP5) += dpll3xxx.o dpll44xx.o | 173 | obj-$(CONFIG_SOC_OMAP5) += dpll3xxx.o dpll44xx.o |
157 | 174 | ||
158 | # OMAP2 clock rate set data (old "OPP" data) | 175 | # OMAP2 clock rate set data (old "OPP" data) |
@@ -160,7 +177,6 @@ obj-$(CONFIG_SOC_OMAP2420) += opp2420_data.o | |||
160 | obj-$(CONFIG_SOC_OMAP2430) += opp2430_data.o | 177 | obj-$(CONFIG_SOC_OMAP2430) += opp2430_data.o |
161 | 178 | ||
162 | # hwmod data | 179 | # hwmod data |
163 | obj-y += omap_hwmod_common_data.o | ||
164 | obj-$(CONFIG_SOC_OMAP2420) += omap_hwmod_2xxx_ipblock_data.o | 180 | obj-$(CONFIG_SOC_OMAP2420) += omap_hwmod_2xxx_ipblock_data.o |
165 | obj-$(CONFIG_SOC_OMAP2420) += omap_hwmod_2xxx_3xxx_ipblock_data.o | 181 | obj-$(CONFIG_SOC_OMAP2420) += omap_hwmod_2xxx_3xxx_ipblock_data.o |
166 | obj-$(CONFIG_SOC_OMAP2420) += omap_hwmod_2xxx_interconnect_data.o | 182 | obj-$(CONFIG_SOC_OMAP2420) += omap_hwmod_2xxx_interconnect_data.o |
@@ -206,10 +222,10 @@ obj-$(CONFIG_MACH_OMAP_H4) += board-h4.o | |||
206 | obj-$(CONFIG_MACH_OMAP_2430SDP) += board-2430sdp.o | 222 | obj-$(CONFIG_MACH_OMAP_2430SDP) += board-2430sdp.o |
207 | obj-$(CONFIG_MACH_OMAP_APOLLON) += board-apollon.o | 223 | obj-$(CONFIG_MACH_OMAP_APOLLON) += board-apollon.o |
208 | obj-$(CONFIG_MACH_OMAP3_BEAGLE) += board-omap3beagle.o | 224 | obj-$(CONFIG_MACH_OMAP3_BEAGLE) += board-omap3beagle.o |
209 | obj-$(CONFIG_MACH_DEVKIT8000) += board-devkit8000.o | 225 | obj-$(CONFIG_MACH_DEVKIT8000) += board-devkit8000.o |
210 | obj-$(CONFIG_MACH_OMAP_LDP) += board-ldp.o | 226 | obj-$(CONFIG_MACH_OMAP_LDP) += board-ldp.o |
211 | obj-$(CONFIG_MACH_OMAP3530_LV_SOM) += board-omap3logic.o | 227 | obj-$(CONFIG_MACH_OMAP3530_LV_SOM) += board-omap3logic.o |
212 | obj-$(CONFIG_MACH_OMAP3_TORPEDO) += board-omap3logic.o | 228 | obj-$(CONFIG_MACH_OMAP3_TORPEDO) += board-omap3logic.o |
213 | obj-$(CONFIG_MACH_ENCORE) += board-omap3encore.o | 229 | obj-$(CONFIG_MACH_ENCORE) += board-omap3encore.o |
214 | obj-$(CONFIG_MACH_OVERO) += board-overo.o | 230 | obj-$(CONFIG_MACH_OVERO) += board-overo.o |
215 | obj-$(CONFIG_MACH_OMAP3EVM) += board-omap3evm.o | 231 | obj-$(CONFIG_MACH_OMAP3EVM) += board-omap3evm.o |