1 # SPDX-License-Identifier: GPL-2.0 2 # 3 # Makefile for the linux kernel. 4 # 5 6 # Common support 7 obj-y := id.o io.o control.o devices.o fb.o pm 8 common.o dma.o omap-headsmp.o sram.o 9 10 hwmod-common = omap 11 omap 12 omap 13 omap 14 i2c. 15 clock-common = cloc 16 secure-common = omap 17 18 obj-$(CONFIG_ARCH_OMAP2) += $(omap-2-3-common) 19 obj-$(CONFIG_ARCH_OMAP3) += $(omap-2-3-common) 20 obj-$(CONFIG_ARCH_OMAP4) += $(secure-common) 21 obj-$(CONFIG_SOC_AM33XX) += $(secure-common) 22 obj-$(CONFIG_SOC_OMAP5) += $(secure-common) 23 obj-$(CONFIG_SOC_AM43XX) += $(secure-common) 24 obj-$(CONFIG_SOC_DRA7XX) += $(secure-common) 25 26 ifneq ($(CONFIG_SND_SOC_OMAP_MCBSP),) 27 obj-$(CONFIG_OMAP_HWMOD) += mcbsp.o 28 endif 29 30 obj-$(CONFIG_TWL4030_CORE) += omap_twl.o 31 32 ifneq ($(CONFIG_MFD_CPCAP),) 33 obj-y += pmi 34 endif 35 36 obj-$(CONFIG_SOC_HAS_OMAP2_SDRC) += sdr 37 38 # SMP support ONLY available for OMAP4 39 40 smp-$(CONFIG_SMP) += oma 41 smp-$(CONFIG_HOTPLUG_CPU) += oma 42 omap-4-5-common = oma 43 obj-$(CONFIG_ARCH_OMAP4) += $(o 44 obj-$(CONFIG_SOC_OMAP5) += $(o 45 obj-$(CONFIG_SOC_AM43XX) += $(o 46 obj-$(CONFIG_SOC_DRA7XX) += $(o 47 48 omap5-dra7-common-$(CONFIG_SOC_HAS_REALTIME_CO 49 obj-$(CONFIG_SOC_OMAP5) += $(o 50 obj-$(CONFIG_SOC_DRA7XX) += $(o 51 52 # Functions loaded to SRAM 53 obj-$(CONFIG_SOC_OMAP2420) += sra 54 obj-$(CONFIG_SOC_OMAP2430) += sra 55 56 # Restart code (OMAP4/5 currently in omap4-com 57 obj-$(CONFIG_SOC_OMAP2420) += oma 58 obj-$(CONFIG_SOC_OMAP2430) += oma 59 obj-$(CONFIG_SOC_TI81XX) += ti8 60 obj-$(CONFIG_SOC_AM33XX) += am3 61 obj-$(CONFIG_SOC_AM43XX) += oma 62 obj-$(CONFIG_ARCH_OMAP3) += oma 63 obj-$(CONFIG_ARCH_OMAP4) += oma 64 obj-$(CONFIG_SOC_OMAP5) += oma 65 obj-$(CONFIG_SOC_DRA7XX) += oma 66 67 # SMS/SDRC 68 obj-$(CONFIG_ARCH_OMAP2) += sdr 69 # obj-$(CONFIG_ARCH_OMAP3) += sdr 70 71 # OPP table initialization 72 ifeq ($(CONFIG_PM_OPP),y) 73 obj-$(CONFIG_ARCH_OMAP3) += opp 74 obj-$(CONFIG_ARCH_OMAP4) += opp 75 endif 76 77 # Power Management 78 omap-4-5-pm-common = omap 79 obj-$(CONFIG_ARCH_OMAP4) += $(o 80 obj-$(CONFIG_SOC_OMAP5) += $(o 81 82 ifeq ($(CONFIG_PM),y) 83 obj-$(CONFIG_ARCH_OMAP2) += sle 84 obj-$(CONFIG_ARCH_OMAP3) += pm3 85 omap-4-5-pm-common += pm4 86 obj-$(CONFIG_ARCH_OMAP4) += $(o 87 obj-$(CONFIG_SOC_OMAP5) += $(o 88 obj-$(CONFIG_SOC_DRA7XX) += $(o 89 obj-$(CONFIG_SOC_AM33XX) += pm3 90 obj-$(CONFIG_SOC_AM43XX) += pm3 91 obj-$(CONFIG_PM_DEBUG) += pm- 92 93 obj-$(CONFIG_POWER_AVS_OMAP) += sr_ 94 obj-$(CONFIG_POWER_AVS_OMAP_CLASS3) += smar 95 96 endif 97 98 ifeq ($(CONFIG_CPU_IDLE),y) 99 obj-$(CONFIG_ARCH_OMAP3) += cpu 100 omap-4-5-idle-common = cpu 101 obj-$(CONFIG_ARCH_OMAP4) += $(o 102 obj-$(CONFIG_SOC_OMAP5) += $(o 103 obj-$(CONFIG_SOC_DRA7XX) += $(o 104 endif 105 106 # PRCM 107 obj-y += prm 108 obj-$(CONFIG_ARCH_OMAP2) += prm 109 obj-$(CONFIG_ARCH_OMAP3) += prm 110 obj-$(CONFIG_ARCH_OMAP3) += vc3 111 omap-prcm-4-5-common = cmi 112 prc 113 vc4 114 obj-$(CONFIG_ARCH_OMAP4) += $(o 115 obj-$(CONFIG_SOC_OMAP5) += $(o 116 obj-$(CONFIG_SOC_DRA7XX) += $(o 117 am33xx-43xx-prcm-common += prm 118 obj-$(CONFIG_SOC_TI81XX) += $(a 119 obj-$(CONFIG_SOC_AM33XX) += $(a 120 obj-$(CONFIG_SOC_AM43XX) += $(o 121 $(a 122 123 # OMAP voltage domains 124 voltagedomain-common := vol 125 obj-$(CONFIG_ARCH_OMAP2) += $(v 126 obj-$(CONFIG_ARCH_OMAP2) += vol 127 obj-$(CONFIG_ARCH_OMAP3) += $(v 128 obj-$(CONFIG_ARCH_OMAP3) += vol 129 obj-$(CONFIG_ARCH_OMAP4) += $(v 130 obj-$(CONFIG_ARCH_OMAP4) += vol 131 obj-$(CONFIG_SOC_AM33XX) += $(v 132 obj-$(CONFIG_SOC_AM43XX) += $(v 133 obj-$(CONFIG_SOC_OMAP5) += $(v 134 obj-$(CONFIG_SOC_OMAP5) += volt 135 obj-$(CONFIG_SOC_DRA7XX) += $(v 136 137 # OMAP powerdomain framework 138 powerdomain-common += pow 139 obj-$(CONFIG_ARCH_OMAP2) += $(p 140 obj-$(CONFIG_ARCH_OMAP2) += pow 141 obj-$(CONFIG_ARCH_OMAP2) += pow 142 obj-$(CONFIG_ARCH_OMAP3) += $(p 143 obj-$(CONFIG_ARCH_OMAP3) += pow 144 obj-$(CONFIG_ARCH_OMAP3) += pow 145 obj-$(CONFIG_ARCH_OMAP4) += $(p 146 obj-$(CONFIG_ARCH_OMAP4) += pow 147 obj-$(CONFIG_SOC_AM33XX) += $(p 148 obj-$(CONFIG_SOC_AM33XX) += pow 149 obj-$(CONFIG_SOC_AM43XX) += $(p 150 obj-$(CONFIG_SOC_AM43XX) += pow 151 obj-$(CONFIG_SOC_OMAP5) += $(p 152 obj-$(CONFIG_SOC_OMAP5) += pow 153 obj-$(CONFIG_SOC_DRA7XX) += $(p 154 obj-$(CONFIG_SOC_DRA7XX) += pow 155 156 # PRCM clockdomain control 157 clockdomain-common += clo 158 obj-$(CONFIG_ARCH_OMAP2) += $(c 159 obj-$(CONFIG_ARCH_OMAP2) += clo 160 obj-$(CONFIG_SOC_OMAP2420) += clo 161 obj-$(CONFIG_SOC_OMAP2430) += clo 162 obj-$(CONFIG_ARCH_OMAP3) += $(c 163 obj-$(CONFIG_ARCH_OMAP3) += clo 164 obj-$(CONFIG_ARCH_OMAP3) += clo 165 obj-$(CONFIG_ARCH_OMAP4) += $(c 166 obj-$(CONFIG_ARCH_OMAP4) += clo 167 obj-$(CONFIG_SOC_AM33XX) += $(c 168 obj-$(CONFIG_SOC_AM33XX) += clo 169 obj-$(CONFIG_SOC_TI81XX) += $(c 170 obj-$(CONFIG_SOC_TI81XX) += clo 171 obj-$(CONFIG_SOC_AM43XX) += $(c 172 obj-$(CONFIG_SOC_AM43XX) += clo 173 obj-$(CONFIG_SOC_OMAP5) += $(c 174 obj-$(CONFIG_SOC_OMAP5) += clo 175 obj-$(CONFIG_SOC_DRA7XX) += $(c 176 obj-$(CONFIG_SOC_DRA7XX) += clo 177 178 # Clock framework 179 obj-$(CONFIG_ARCH_OMAP2) += $(c 180 obj-$(CONFIG_ARCH_OMAP2) += clk 181 obj-$(CONFIG_ARCH_OMAP2) += clk 182 obj-$(CONFIG_ARCH_OMAP2) += clk 183 obj-$(CONFIG_ARCH_OMAP3) += $(c 184 obj-$(CONFIG_ARCH_OMAP4) += $(c 185 obj-$(CONFIG_SOC_AM33XX) += $(c 186 obj-$(CONFIG_SOC_OMAP5) += $(c 187 obj-$(CONFIG_SOC_DRA7XX) += $(c 188 obj-$(CONFIG_SOC_AM43XX) += $(c 189 190 # OMAP2 clock rate set data (old "OPP" data) 191 obj-$(CONFIG_SOC_OMAP2420) += opp 192 obj-$(CONFIG_SOC_OMAP2430) += opp 193 194 # hwmod data 195 obj-$(CONFIG_SOC_OMAP2420) += oma 196 obj-$(CONFIG_SOC_OMAP2420) += oma 197 obj-$(CONFIG_SOC_OMAP2420) += oma 198 obj-$(CONFIG_SOC_OMAP2420) += oma 199 obj-$(CONFIG_SOC_OMAP2430) += oma 200 obj-$(CONFIG_SOC_OMAP2430) += oma 201 obj-$(CONFIG_SOC_OMAP2430) += oma 202 obj-$(CONFIG_SOC_OMAP2430) += oma 203 obj-$(CONFIG_ARCH_OMAP3) += oma 204 obj-$(CONFIG_ARCH_OMAP3) += oma 205 obj-$(CONFIG_SOC_TI81XX) += oma 206 207 # OMAP2420 MSDI controller integration support 208 obj-$(CONFIG_SOC_OMAP2420) += msd 209 210 # Specific board support 211 obj-$(CONFIG_MACH_OMAP_GENERIC) += boa 212 obj-$(CONFIG_MACH_NOKIA_N8X0) += boa 213 214 # Platform specific device init code 215 216 obj-y += oma 217 218 obj-$(CONFIG_MACH_OMAP2_TUSB6010) += usb 219 220 $(obj)/pm-asm-offsets.h: $(obj)/pm-asm-offsets 221 $(call filechk,offsets,__TI_PM_ASM_OFF 222 223 $(obj)/sleep33xx.o $(obj)/sleep43xx.o: $(obj)/ 224 225 targets += pm-asm-offsets.s 226 clean-files += pm-asm-offsets.h 227 228 obj-$(CONFIG_OMAP_IOMMU) += oma
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.