b0bd52a28d1733a507e2be48bab2cc944cb99dba
[processor-sdk/pdk.git] / packages / ti / drv / spi / spi_component.mk
1 #
2 # Copyright (c) 2016 - 2019, Texas Instruments Incorporated
3 # All rights reserved.
4 #
5 # Redistribution and use in source and binary forms, with or without
6 # modification, are permitted provided that the following conditions
7 # are met:
8 #
9 # *  Redistributions of source code must retain the above copyright
10 #    notice, this list of conditions and the following disclaimer.
11 #
12 # *  Redistributions in binary form must reproduce the above copyright
13 #    notice, this list of conditions and the following disclaimer in the
14 #    documentation and/or other materials provided with the distribution.
15 #
16 # *  Neither the name of Texas Instruments Incorporated nor the names of
17 #    its contributors may be used to endorse or promote products derived
18 #    from this software without specific prior written permission.
19 #
20 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21 # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
22 # THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
23 # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
24 # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
25 # EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
26 # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
27 # OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
28 # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
29 # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
30 # EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31 #
33 # File: spi_component.mk
34 #       This file is component include make file of SPI library.
35 # List of variables set in this file and their purpose:
36 # <mod>_RELPATH        - This is the relative path of the module, typically from
37 #                        top-level directory of the package
38 # <mod>_PATH           - This is the absolute path of the module. It derives from
39 #                        absolute path of the top-level directory (set in env.mk)
40 #                        and relative path set above
41 # <mod>_INCLUDE        - This is the path that has interface header files of the
42 #                        module. This can be multiple directories (space separated)
43 # <mod>_PKG_LIST       - Names of the modules (and sub-modules) that are a part
44 #                        part of this module, including itself.
45 # <mod>_BOARD_DEPENDENCY - "yes": means the code for this module depends on
46 #                             board and the compiled obj/lib has to be kept
47 #                             under <board> directory
48 #                             "no" or "" or if this variable is not defined: means
49 #                             this module has no board dependent code and hence
50 #                             the obj/libs are not kept under <board> dir.
51 # <mod>_CORE_DEPENDENCY     - "yes": means the code for this module depends on
52 #                             core and the compiled obj/lib has to be kept
53 #                             under <core> directory
54 #                             "no" or "" or if this variable is not defined: means
55 #                             this module has no core dependent code and hence
56 #                             the obj/libs are not kept under <core> dir.
57 # <mod>_APP_STAGE_FILES     - List of source files that belongs to the module
58 #                             <mod>, but that needs to be compiled at application
59 #                             build stage (in the context of the app). This is
60 #                             primarily for link time configurations or if the
61 #                             source file is dependent on options/defines that are
62 #                             application dependent. This can be left blank or
63 #                             not defined at all, in which case, it means there
64 #                             no source files in the module <mod> that are required
65 #                             to be compiled in the application build stage.
66 #
67 ifeq ($(spi_component_make_include), )
69 drvspi_BOARDLIST       = am65xx_evm am65xx_idk j721e_sim j721e_evm
70 drvspi_SOCLIST         = tda2xx tda2px tda2ex tda3xx dra72x dra75x dra78x am574x am572x am571x k2h k2k k2l k2e k2g c6678 c6657 am437x am335x omapl137 omapl138 am65xx j721e
71 drvspi_SOCLISTLIM      = tda2xx tda2px tda2ex tda3xx dra72x dra75x dra78x am574x am572x am571x k2h k2k k2l k2e k2g c6678 c6657 am437x am335x omapl137 omapl138 am65xx
72 drvspi_dma_SOCLIST     = tda2xx tda2px tda2ex tda3xx dra72x dra75x dra78x am574x am572x am571x k2h k2k k2l k2e k2g c6678 c6657 am437x am335x omapl137 omapl138 am65xx j721e
73 drvspi_am574x_CORELIST = c66x a15_0 ipu1_0
74 drvspi_am572x_CORELIST = c66x a15_0 ipu1_0
75 drvspi_am571x_CORELIST = c66x a15_0 ipu1_0
76 drvspi_k2h_CORELIST    = c66x a15_0
77 drvspi_k2k_CORELIST    = c66x a15_0
78 drvspi_k2l_CORELIST    = c66x a15_0
79 drvspi_k2e_CORELIST    = c66x a15_0
80 drvspi_k2g_CORELIST    = c66x a15_0
81 drvspi_c6678_CORELIST  = c66x
82 drvspi_c6657_CORELIST  = c66x
83 drvspi_am437x_CORELIST = a9host pru_0 pru_1
84 drvspi_am335x_CORELIST = a8host pru_0 pru_1
85 drvspi_omapl137_CORELIST    = c674x arm9_0
86 drvspi_omapl138_CORELIST    = c674x arm9_0
87 drvspi_tda2xx_CORELIST = ipu1_0
88 drvspi_tda2px_CORELIST = ipu1_0
89 drvspi_tda2ex_CORELIST = ipu1_0
90 drvspi_tda3xx_CORELIST = ipu1_0
91 drvspi_dra72x_CORELIST = c66x a15_0 ipu1_0
92 drvspi_dra75x_CORELIST = c66x a15_0 ipu1_0
93 drvspi_dra78x_CORELIST = c66x ipu1_0
94 drvspi_am65xx_CORELIST   = mpu1_0 mcu1_0
95 drvspi_j721e_CORELIST     = $(DEFAULT_j721e_CORELIST)
96 drvspi_j721e_CORELISTARM  = mpu1_0 mcu1_0 mcu1_1 mcu2_0 mcu2_1 mcu3_0 mcu3_1
97 ############################
98 # spi package
99 # List of components included under spi lib
100 # The components included here are built and will be part of spi lib
101 ############################
102 spi_LIB_LIST = spi spi_dma spi_profile spi_dma_profile spi_indp spi_profile_indp
103 drvspi_LIB_LIST = $(spi_LIB_LIST)
105 ############################
106 # spi Firmwares
107 # All the firmware mentioned in list are built when build target is called
108 # List below all frimware for allowed values
109 ############################
110 spi_FIRM_LIST = icss_espi
111 drvspi_FIRM_LIST = $(spi_FIRM_LIST)
113 ############################
114 # spi examples
115 # List of examples under spi
116 # All the tests mentioned in list are built when test target is called
117 # List below all examples for allowed values
118 ############################
119 spi_EXAMPLE_LIST = drv_mcspi_loopback_app   MCSPI_Baremetal_MasterSlave_TestApp MCSPI_Baremetal_MasterSlave_Dma_TestApp MCSPI_MasterSlave_TestApp MCSPI_MasterSlave_Dma_TestApp  OSPI_Baremetal_Flash_TestApp  OSPI_Baremetal_Flash_Dma_TestApp OSPI_Flash_TestApp OSPI_Flash_SMP_TestApp OSPI_Flash_Dma_TestApp OSPI_Flash_Dma_SMP_TestApp
120 drvspi_EXAMPLE_LIST = $(spi_EXAMPLE_LIST)
123 # SPI Modules
126 # SPI LIB
127 spi_COMP_LIST = spi
128 spi_RELPATH = ti/drv/spi
129 spi_PATH = $(PDK_SPI_COMP_PATH)
130 spi_LIBNAME = ti.drv.spi
131 export spi_LIBNAME
132 spi_LIBPATH = $(spi_PATH)/lib
133 export spi_LIBPATH
134 spi_OBJPATH = $(spi_RELPATH)/spi
135 export spi_OBJPATH
136 spi_MAKEFILE = -f build/makefile.mk
137 export spi_MAKEFILE
138 spi_BOARD_DEPENDENCY = no
139 spi_CORE_DEPENDENCY = no
140 spi_SOC_DEPENDENCY = yes
141 export spi_COMP_LIST
142 export spi_BOARD_DEPENDENCY
143 export spi_CORE_DEPENDENCY
144 export spi_SOC_DEPENDENCY
145 spi_PKG_LIST = spi
146 export spi_PKG_LIST
147 spi_INCLUDE = $(spi_PATH)
148 spi_SOCLIST = $(drvspi_SOCLIST)
149 export spi_SOCLIST
150 spi_$(SOC)_CORELIST = $(drvspi_$(SOC)_CORELIST)
151 export spi_$(SOC)_CORELIST
153 # SPI LIB DEVICE INDEPENDENT
154 spi_indp_COMP_LIST = spi_indp
155 spi_indp_RELPATH = ti/drv/spi
156 spi_indp_PATH = $(PDK_SPI_COMP_PATH)
157 spi_indp_LIBNAME = ti.drv.spi
158 export spi_indp_LIBNAME
159 spi_indp_LIBPATH = $(spi_indp_PATH)/lib
160 export spi_indp_LIBPATH
161 spi_indp_OBJPATH = $(spi_indp_RELPATH)/spi_indp
162 export spi_indp_OBJPATH
163 spi_indp_MAKEFILE = -f build/makefile_indp.mk
164 export spi_indp_MAKEFILE
165 spi_indp_BOARD_DEPENDENCY = no
166 spi_indp_CORE_DEPENDENCY = no
167 spi_indp_SOC_DEPENDENCY = no
168 export spi_indp_COMP_LIST
169 export spi_indp_BOARD_DEPENDENCY
170 export spi_indp_CORE_DEPENDENCY
171 export spi_indp_SOC_DEPENDENCY
172 spi_indp_PKG_LIST = spi_indp
173 spi_indp_INCLUDE = $(spi_indp_PATH)
174 spi_indp_SOCLIST = $(drvspi_SOCLIST)
175 export spi_indp_SOCLIST
176 spi_indp_$(SOC)_CORELIST = $(drvspi_$(SOC)_CORELIST)
177 export spi_indp_$(SOC)_CORELIST
179 # SPI DMA LIB
180 spi_dma_COMP_LIST = spi_dma
181 spi_dma_RELPATH = ti/drv/spi
182 spi_dma_PATH = $(PDK_SPI_COMP_PATH)
183 spi_dma_LIBNAME = ti.drv.spi.dma
184 export spi_dma_LIBNAME
185 spi_dma_LIBPATH = $(spi_dma_PATH)/lib
186 export spi_dma_LIBPATH
187 spi_dma_OBJPATH = $(spi_dma_RELPATH)/spi_dma
188 export spi_dma_OBJPATH
189 spi_dma_MAKEFILE = -f build/makefile_dma.mk
190 export spi_dma_MAKEFILE
191 spi_dma_BOARD_DEPENDENCY = no
192 spi_dma_CORE_DEPENDENCY = no
193 spi_dma_SOC_DEPENDENCY = yes
194 export spi_dma_COMP_LIST
195 export spi_dma_BOARD_DEPENDENCY
196 export spi_dma_CORE_DEPENDENCY
197 export spi_dma_SOC_DEPENDENCY
198 spi_dma_PKG_LIST = spi_dma
199 export spi_dma_PKG_LIST
200 spi_dma_INCLUDE = $(spi_dma_PATH)
201 spi_dma_SOCLIST = $(drvspi_dma_SOCLIST)
202 export spi_dma_SOCLIST
203 spi_dma_$(SOC)_CORELIST = $(drvspi_$(SOC)_CORELIST)
204 export spi_dma_$(SOC)_CORELIST
206 # SPI PROFILING SOC LIB
207 spi_profile_COMP_LIST = spi_profile
208 spi_profile_RELPATH = ti/drv/spi
209 spi_profile_PATH = $(PDK_SPI_COMP_PATH)
210 spi_profile_LIBNAME = ti.drv.spi.profiling
211 export spi_profile_LIBNAME
212 spi_profile_LIBPATH = $(spi_profile_PATH)/lib
213 export spi_profile_LIBPATH
214 spi_profile_OBJPATH = $(spi_profile_RELPATH)/spi_profile
215 export spi_profile_OBJPATH
216 spi_profile_MAKEFILE = -f build/makefile_profile.mk
217 export spi_profile_MAKEFILE
218 spi_profile_BOARD_DEPENDENCY = no
219 spi_profile_CORE_DEPENDENCY = no
220 spi_profile_SOC_DEPENDENCY = yes
221 export spi_profile_COMP_LIST
222 export spi_profile_BOARD_DEPENDENCY
223 export spi_profile_CORE_DEPENDENCY
224 export spi_profile_SOC_DEPENDENCY
225 spi_profile_PKG_LIST = spi_profile
226 spi_profile_INCLUDE = $(spi_profile_PATH)
227 spi_profile_SOCLIST = $(drvspi_SOCLISTLIM)
228 export spi_profile_SOCLIST
229 spi_profile_$(SOC)_CORELIST = $(drvspi_$(SOC)_CORELIST)
230 export spi_profile_$(SOC)_CORELIST
232 # SPI PROFILING SOC INDEPENDENT LIB
233 spi_profile_indp_COMP_LIST = spi_profile_indp
234 spi_profile_indp_RELPATH = ti/drv/spi
235 spi_profile_indp_PATH = $(PDK_SPI_COMP_PATH)
236 spi_profile_indp_LIBNAME = ti.drv.spi.profiling
237 export spi_profile_indp_LIBNAME
238 spi_profile_indp_LIBPATH = $(spi_profile_indp_PATH)/lib
239 export spi_profile_indp_LIBPATH
240 spi_profile_indp_OBJPATH = $(spi_profile_indp_RELPATH)/spi_profile_indp
241 export spi_profile_indp_OBJPATH
242 spi_profile_indp_MAKEFILE = -f build/makefile_profile_indp.mk
243 export spi_profile_indp_MAKEFILE
244 spi_profile_indp_BOARD_DEPENDENCY = no
245 spi_profile_indp_CORE_DEPENDENCY = no
246 spi_profile_indp_SOC_DEPENDENCY = no
247 export spi_profile_indp_COMP_LIST
248 export spi_profile_indp_BOARD_DEPENDENCY
249 export spi_profile_indp_CORE_DEPENDENCY
250 export spi_profile_indp_SOC_DEPENDENCY
251 spi_profile_indp_PKG_LIST = spi_profile_indp
252 spi_profile_indp_INCLUDE = $(spi_profile_indp_PATH)
253 spi_profile_indp_SOCLIST = $(drvspi_SOCLISTLIM)
254 export spi_profile_indp_SOCLIST
255 spi_profile_indp_$(SOC)_CORELIST = $(drvspi_$(SOC)_CORELIST)
256 export spi_profile_indp_$(SOC)_CORELIST
258 # SPI DMA PROFILING SOC LIB
259 spi_dma_profile_COMP_LIST = spi_dma_profile
260 spi_dma_profile_RELPATH = ti/drv/spi
261 spi_dma_profile_PATH = $(PDK_SPI_COMP_PATH)
262 spi_dma_profile_LIBNAME = ti.drv.spi.profiling.dma
263 export spi_dma_profile_LIBNAME
264 spi_dma_profile_LIBPATH = $(spi_dma_profile_PATH)/lib
265 export spi_dma_profile_LIBPATH
266 spi_dma_profile_OBJPATH = $(spi_dma_profile_RELPATH)/spi_dma_profile
267 export spi_dma_profile_OBJPATH
268 spi_dma_profile_MAKEFILE = -f build/makefile_dma_profile.mk
269 export spi_dma_profile_MAKEFILE
270 spi_dma_profile_BOARD_DEPENDENCY = no
271 spi_dma_profile_CORE_DEPENDENCY = no
272 spi_dma_profile_SOC_DEPENDENCY = yes
273 export spi_dma_profile_COMP_LIST
274 export spi_dma_profile_BOARD_DEPENDENCY
275 export spi_dma_profile_CORE_DEPENDENCY
276 export spi_dma_profile_SOC_DEPENDENCY
277 spi_dma_profile_PKG_LIST = spi_dma_profile
278 spi_dma_profile_INCLUDE = $(spi_dma_profile_PATH)
279 spi_dma_profile_SOCLIST = $(drvspi_SOCLISTLIM)
280 export spi_dma_profile_SOCLIST
281 spi_dma_profile_$(SOC)_CORELIST = $(drvspi_$(SOC)_CORELIST)
282 export spi_dma_profile_$(SOC)_CORELIST
285 # SPI Firmwares
287 icss_espi_COMP_LIST = icss_espi
288 # temporary fix for nightly build
289 # icss_espi_RELPATH = ti/drv/spi/firmware/icss_espi
290 icss_espi_RELPATH = icss_espi
291 icss_espi_PATH = $(PDK_SPI_COMP_PATH)/firmware/icss_espi
292 icss_espi_HEADERNAME = icss_espi
293 export icss_espi_HEADERNAME
294 icss_espi_HEADERPATH = $(icss_espi_PATH)/bin
295 export icss_espi_HEADERPATH
296 icss_espi_OBJPATH = $(icss_espi_RELPATH)
297 export icss_espi_OBJPATH
298 icss_espi_MAKEFILE = -f ../../build/makefile_icss_espi.mk
299 export icss_espi_MAKEFILE
300 icss_espi_BOARD_DEPENDENCY = no
301 icss_espi_CORE_DEPENDENCY = yes
302 icss_espi_SOC_DEPENDENCY = yes
303 export icss_espi_COMP_LIST
304 export icss_espi_BOARD_DEPENDENCY
305 export icss_espi_CORE_DEPENDENCY
306 export icss_espi_SOC_DEPENDENCY
307 icss_espi_PKG_LIST = icss_espi
308 export icss_espi_PKG_LIST
309 icss_espi_INCLUDE = $(icss_espi_PATH)
310 icss_espi_SOCLIST = am437x am335x
311 export icss_espii_SOCLIST
312 icss_espi_$(SOC)_CORELIST = $(drvspi_$(SOC)_CORELIST)
313 export icss_espi_$(SOC)_CORELIST
316 # SPI Examples
318 # SPI Polling mode Test app
319 drv_mcspi_loopback_app_COMP_LIST = drv_mcspi_loopback_app
320 drv_mcspi_loopback_app_RELPATH = ti/drv/spi/example/mcspiLoopbackApp
321 drv_mcspi_loopback_app_PATH = $(PDK_SPI_COMP_PATH)/example/mcspiLoopbackApp
322 drv_mcspi_loopback_app_BOARD_DEPENDENCY = yes
323 drv_mcspi_loopback_app_CORE_DEPENDENCY = no
324 drv_mcspi_loopback_app_XDC_CONFIGURO = yes
325 export drv_mcspi_loopback_app_COMP_LIST
326 export drv_mcspi_loopback_app_BOARD_DEPENDENCY
327 export drv_mcspi_loopback_app_CORE_DEPENDENCY
328 export drv_mcspi_loopback_app_XDC_CONFIGURO
329 drv_mcspi_loopback_app_PKG_LIST = drv_mcspi_loopback_app
330 drv_mcspi_loopback_app_INCLUDE = $(drv_mcspi_loopback_app_PATH)
331 drv_mcspi_loopback_app_SOCLIST = tda2xx tda2px tda2ex tda3xx dra72x dra75x dra78x
332 export drv_mcspi_loopback_app_SOCLIST
333 drv_mcspi_loopback_app_$(SOC)_CORELIST = $(spi_$(SOC)_CORELIST)
334 export drv_mcspi_loopback_app_$(SOC)_CORELIST
336 # SPI baremetal master slave Test app
337 MCSPI_Baremetal_MasterSlave_TestApp_COMP_LIST = MCSPI_Baremetal_MasterSlave_TestApp
338 MCSPI_Baremetal_MasterSlave_TestApp_RELPATH = ti/drv/spi/example/mcspi_slavemode
339 MCSPI_Baremetal_MasterSlave_TestApp_PATH = $(PDK_SPI_COMP_PATH)/example/mcspi_slavemode
340 MCSPI_Baremetal_MasterSlave_TestApp_BOARD_DEPENDENCY = yes
341 MCSPI_Baremetal_MasterSlave_TestApp_CORE_DEPENDENCY = no
342 MCSPI_Baremetal_MasterSlave_TestApp_MAKEFILE = -f makefile IS_BAREMETAL=yes
343 export MCSPI_Baremetal_MasterSlave_TestApp_COMP_LIST
344 export MCSPI_Baremetal_MasterSlave_TestApp_BOARD_DEPENDENCY
345 export MCSPI_Baremetal_MasterSlave_TestApp_CORE_DEPENDENCY
346 export MCSPI_Baremetal_MasterSlave_TestApp_MAKEFILE
347 MCSPI_Baremetal_MasterSlave_TestApp_PKG_LIST = MCSPI_Baremetal_MasterSlave_TestApp
348 MCSPI_Baremetal_MasterSlave_TestApp_INCLUDE = $(MCSPI_Baremetal_MasterSlave_TestApp_PATH)
349 MCSPI_Baremetal_MasterSlave_TestApp_BOARDLIST = $(drvspi_BOARDLIST)
350 export MCSPI_Baremetal_MasterSlave_TestApp_BOARDLIST
351 ifeq ($(SOC),$(filter $(SOC), j721e))
352 MCSPI_Baremetal_MasterSlave_TestApp_$(SOC)_CORELIST = $(drvspi_j721e_CORELISTARM)
353 else
354 MCSPI_Baremetal_MasterSlave_TestApp_$(SOC)_CORELIST = $(drvspi_$(SOC)_CORELIST)
355 endif
356 export MCSPI_Baremetal_MasterSlave_TestApp_$(SOC)_CORELIST
358 # SPI baremetal dma master slave Test app
359 MCSPI_Baremetal_MasterSlave_Dma_TestApp_COMP_LIST = MCSPI_Baremetal_MasterSlave_Dma_TestApp
360 MCSPI_Baremetal_MasterSlave_Dma_TestApp_RELPATH = ti/drv/spi/example/mcspi_slavemode
361 MCSPI_Baremetal_MasterSlave_Dma_TestApp_PATH = $(PDK_SPI_COMP_PATH)/example/mcspi_slavemode
362 MCSPI_Baremetal_MasterSlave_Dma_TestApp_BOARD_DEPENDENCY = yes
363 MCSPI_Baremetal_MasterSlave_Dma_TestApp_CORE_DEPENDENCY = no
364 MCSPI_Baremetal_MasterSlave_Dma_TestApp_MAKEFILE = -f makefile IS_BAREMETAL=yes DMA=enable
365 export MCSPI_Baremetal_MasterSlave_Dma_TestApp_COMP_LIST
366 export MCSPI_Baremetal_MasterSlave_Dma_TestApp_BOARD_DEPENDENCY
367 export MCSPI_Baremetal_MasterSlave_Dma_TestApp_CORE_DEPENDENCY
368 export MCSPI_Baremetal_MasterSlave_Dma_TestApp_MAKEFILE
369 MCSPI_Baremetal_MasterSlave_Dma_TestApp_PKG_LIST = MCSPI_Baremetal_MasterSlave_Dma_TestApp
370 MCSPI_Baremetal_MasterSlave_Dma_TestApp_INCLUDE = $(MCSPI_Baremetal_MasterSlave_Dma_TestApp_PATH)
371 MCSPI_Baremetal_MasterSlave_Dma_TestApp_BOARDLIST = $(drvspi_BOARDLIST)
372 export MCSPI_Baremetal_MasterSlave_Dma_TestApp_BOARDLIST
373 ifeq ($(SOC),$(filter $(SOC), j721e))
374 MCSPI_Baremetal_MasterSlave_Dma_TestApp_$(SOC)_CORELIST = $(drvspi_j721e_CORELISTARM)
375 else
376 MCSPI_Baremetal_MasterSlave_Dma_TestApp_$(SOC)_CORELIST = $(drvspi_$(SOC)_CORELIST)
377 endif
378 export MCSPI_Baremetal_MasterSlave_Dma_TestApp_$(SOC)_CORELIST
380 # SPI rtos master slave Test app
381 MCSPI_MasterSlave_TestApp_COMP_LIST = MCSPI_MasterSlave_TestApp
382 MCSPI_MasterSlave_TestApp_RELPATH = ti/drv/spi/example/mcspi_slavemode
383 MCSPI_MasterSlave_TestApp_PATH = $(PDK_SPI_COMP_PATH)/example/mcspi_slavemode
384 MCSPI_MasterSlave_TestApp_BOARD_DEPENDENCY = yes
385 MCSPI_MasterSlave_TestApp_CORE_DEPENDENCY = no
386 MCSPI_MasterSlave_TestApp_XDC_CONFIGURO = yes
387 MCSPI_MasterSlave_TestApp_MAKEFILE = -f makefile
388 export MCSPI_MasterSlave_TestApp_COMP_LIST
389 export MCSPI_MasterSlave_TestApp_BOARD_DEPENDENCY
390 export MCSPI_MasterSlave_TestApp_CORE_DEPENDENCY
391 export MCSPI_MasterSlave_TestApp_XDC_CONFIGURO
392 export MCSPI_MasterSlave_TestApp_MAKEFILE
393 MCSPI_MasterSlave_TestApp_PKG_LIST = MCSPI_MasterSlave_TestApp
394 MCSPI_MasterSlave_TestApp_INCLUDE = $(MCSPI_MasterSlave_TestApp_PATH)
395 MCSPI_MasterSlave_TestApp_BOARDLIST = $(drvspi_BOARDLIST)
396 export MCSPI_MasterSlave_TestApp_BOARDLIST
397 MCSPI_MasterSlave_TestApp_$(SOC)_CORELIST = $(drvspi_$(SOC)_CORELIST)
398 export MCSPI_MasterSlave_TestApp_$(SOC)_CORELIST
400 # SPI rtos dma master slave Test app
401 MCSPI_MasterSlave_Dma_TestApp_COMP_LIST = MCSPI_MasterSlave_Dma_TestApp
402 MCSPI_MasterSlave_Dma_TestApp_RELPATH = ti/drv/spi/example/mcspi_slavemode
403 MCSPI_MasterSlave_Dma_TestApp_PATH = $(PDK_SPI_COMP_PATH)/example/mcspi_slavemode
404 MCSPI_MasterSlave_Dma_TestApp_BOARD_DEPENDENCY = yes
405 MCSPI_MasterSlave_Dma_TestApp_CORE_DEPENDENCY = no
406 MCSPI_MasterSlave_Dma_TestApp_XDC_CONFIGURO = yes
407 MCSPI_MasterSlave_Dma_TestApp_MAKEFILE = -f makefile DMA=enable
408 export MCSPI_MasterSlave_Dma_TestApp_COMP_LIST
409 export MCSPI_MasterSlave_Dma_TestApp_BOARD_DEPENDENCY
410 export MCSPI_MasterSlave_Dma_TestApp_CORE_DEPENDENCY
411 export MCSPI_MasterSlave_Dma_TestApp_XDC_CONFIGURO
412 export MCSPI_MasterSlave_Dma_TestApp_MAKEFILE
413 MCSPI_MasterSlave_Dma_TestApp_PKG_LIST = MCSPI_MasterSlave_Dma_TestApp
414 MCSPI_MasterSlave_Dma_TestApp_INCLUDE = $(MCSPI_MasterSlave_Dma_TestApp_PATH)
415 MCSPI_MasterSlave_Dma_TestApp_BOARDLIST = $(drvspi_BOARDLIST)
416 export MCSPI_MasterSlave_Dma_TestApp_BOARDLIST
417 MCSPI_MasterSlave_Dma_TestApp_$(SOC)_CORELIST = $(drvspi_$(SOC)_CORELIST)
418 export MCSPI_MasterSlave_Dma_TestApp_$(SOC)_CORELIST
420 # OSPI baremetal Flash Test app
421 OSPI_Baremetal_Flash_TestApp_COMP_LIST = OSPI_Baremetal_Flash_TestApp
422 OSPI_Baremetal_Flash_TestApp_RELPATH = ti/drv/spi/test/ospi_flash
423 OSPI_Baremetal_Flash_TestApp_PATH = $(PDK_SPI_COMP_PATH)/test/ospi_flash
424 OSPI_Baremetal_Flash_TestApp_BOARD_DEPENDENCY = yes
425 OSPI_Baremetal_Flash_TestApp_CORE_DEPENDENCY = no
426 OSPI_Baremetal_Flash_TestApp_MAKEFILE = -f makefile IS_BAREMETAL=yes
427 export OSPI_Baremetal_Flash_TestApp_COMP_LIST
428 export OSPI_Baremetal_Flash_TestApp_BOARD_DEPENDENCY
429 export OSPI_Baremetal_Flash_TestApp_CORE_DEPENDENCY
430 export OSPI_Baremetal_Flash_TestApp_MAKEFILE
431 OSPI_Baremetal_Flash_TestApp_PKG_LIST = OSPI_Baremetal_Flash_TestApp
432 OSPI_Baremetal_Flash_TestApp_INCLUDE = $(OSPI_Baremetal_Flash_TestApp_PATH)
433 OSPI_Baremetal_Flash_TestApp_BOARDLIST = $(drvspi_BOARDLIST)
434 export OSPI_Baremetal_Flash_TestApp_BOARDLIST
435 ifeq ($(SOC),$(filter $(SOC), j721e))
436 OSPI_Baremetal_Flash_TestApp_$(SOC)_CORELIST = $(drvspi_j721e_CORELISTARM)
437 else
438 OSPI_Baremetal_Flash_TestApp_$(SOC)_CORELIST = $(drvspi_$(SOC)_CORELIST)
439 endif
441 export OSPI_Baremetal_Flash_TestApp_$(SOC)_CORELIST
443 # OSPI baremetal dma Flash Test app
444 OSPI_Baremetal_Flash_Dma_TestApp_COMP_LIST = OSPI_Baremetal_Flash_Dma_TestApp
445 OSPI_Baremetal_Flash_Dma_TestApp_RELPATH = ti/drv/spi/test/ospi_flash
446 OSPI_Baremetal_Flash_Dma_TestApp_PATH = $(PDK_SPI_COMP_PATH)/test/ospi_flash
447 OSPI_Baremetal_Flash_Dma_TestApp_BOARD_DEPENDENCY = yes
448 OSPI_Baremetal_Flash_Dma_TestApp_CORE_DEPENDENCY = no
449 OSPI_Baremetal_Flash_Dma_TestApp_MAKEFILE = -f makefile IS_BAREMETAL=yes DMA=enable
450 export OSPI_Baremetal_Flash_Dma_TestApp_COMP_LIST
451 export OSPI_Baremetal_Flash_Dma_TestApp_BOARD_DEPENDENCY
452 export OSPI_Baremetal_Flash_Dma_TestApp_CORE_DEPENDENCY
453 export OSPI_Baremetal_Flash_Dma_TestApp_MAKEFILE
454 OSPI_Baremetal_Flash_Dma_TestApp_PKG_LIST = OSPI_Baremetal_Flash_Dma_TestApp
455 OSPI_Baremetal_Flash_Dma_TestApp_INCLUDE = $(OSPI_Baremetal_Flash_Dma_TestApp_PATH)
456 OSPI_Baremetal_Flash_Dma_TestApp_BOARDLIST = $(drvspi_BOARDLIST)
457 export OSPI_Baremetal_Flash_Dma_TestApp_BOARDLIST
458 ifeq ($(SOC),$(filter $(SOC), j721e))
459 OSPI_Baremetal_Flash_Dma_TestApp_$(SOC)_CORELIST = $(drvspi_j721e_CORELISTARM)
460 else
461 OSPI_Baremetal_Flash_Dma_TestApp_$(SOC)_CORELIST = $(drvspi_$(SOC)_CORELIST)
462 endif
463 export OSPI_Baremetal_Flash_Dma_TestApp_$(SOC)_CORELIST
465 # OSPI rtos Flash Test app
466 OSPI_Flash_TestApp_COMP_LIST = OSPI_Flash_TestApp
467 OSPI_Flash_TestApp_RELPATH = ti/drv/spi/test/ospi_flash
468 OSPI_Flash_TestApp_PATH = $(PDK_SPI_COMP_PATH)/test/ospi_flash
469 OSPI_Flash_TestApp_BOARD_DEPENDENCY = yes
470 OSPI_Flash_TestApp_CORE_DEPENDENCY = no
471 OSPI_Flash_TestApp_XDC_CONFIGURO = yes
472 OSPI_Flash_TestApp_MAKEFILE = -f makefile
473 export OSPI_Flash_TestApp_COMP_LIST
474 export OSPI_Flash_TestApp_BOARD_DEPENDENCY
475 export OSPI_Flash_TestApp_CORE_DEPENDENCY
476 export OSPI_Flash_TestApp_XDC_CONFIGURO
477 export OSPI_Flash_TestApp_MAKEFILE
478 OSPI_Flash_TestApp_PKG_LIST = OSPI_Flash_TestApp
479 OSPI_Flash_TestApp_INCLUDE = $(OSPI_Flash_TestApp_PATH)
480 OSPI_Flash_TestApp_BOARDLIST = $(drvspi_BOARDLIST)
481 export OSPI_Flash_TestApp_BOARDLIST
482 OSPI_Flash_TestApp_$(SOC)_CORELIST = $(drvspi_$(SOC)_CORELIST)
483 export OSPI_Flash_TestApp_$(SOC)_CORELIST
485 # OSPI rtos Flash Test app with SMP enabled
486 OSPI_Flash_SMP_TestApp_COMP_LIST = OSPI_Flash_SMP_TestApp
487 OSPI_Flash_SMP_TestApp_RELPATH = ti/drv/spi/test/ospi_flash
488 OSPI_Flash_SMP_TestApp_PATH = $(PDK_SPI_COMP_PATH)/test/ospi_flash
489 OSPI_Flash_SMP_TestApp_BOARD_DEPENDENCY = yes
490 OSPI_Flash_SMP_TestApp_CORE_DEPENDENCY = no
491 OSPI_Flash_SMP_TestApp_XDC_CONFIGURO = yes
492 OSPI_Flash_SMP_TestApp_MAKEFILE = -f makefile SMP=enable
493 export OSPI_Flash_SMP_TestApp_COMP_LIST
494 export OSPI_Flash_SMP_TestApp_BOARD_DEPENDENCY
495 export OSPI_Flash_SMP_TestApp_CORE_DEPENDENCY
496 export OSPI_Flash_SMP_TestApp_XDC_CONFIGURO
497 export OSPI_Flash_SMP_TestApp_MAKEFILE
498 OSPI_Flash_SMP_TestApp_PKG_LIST = OSPI_Flash_SMP_TestApp
499 OSPI_Flash_SMP_TestApp_INCLUDE = $(OSPI_Flash_SMP_TestApp_PATH)
500 OSPI_Flash_SMP_TestApp_BOARDLIST = am65xx_idk am65xx_evm
501 export OSPI_Flash_SMP_TestApp_BOARDLIST
502 OSPI_Flash_SMP_TestApp_$(SOC)_CORELIST = mpu1_0
503 export OSPI_Flash_SMP_TestApp_$(SOC)_CORELIST
505 # OSPI rtos DMA Flash Test app
506 OSPI_Flash_Dma_TestApp_COMP_LIST = OSPI_Flash_Dma_TestApp
507 OSPI_Flash_Dma_TestApp_RELPATH = ti/drv/spi/test/ospi_flash
508 OSPI_Flash_Dma_TestApp_PATH = $(PDK_SPI_COMP_PATH)/test/ospi_flash
509 OSPI_Flash_Dma_TestApp_BOARD_DEPENDENCY = yes
510 OSPI_Flash_Dma_TestApp_CORE_DEPENDENCY = no
511 OSPI_Flash_Dma_TestApp_XDC_CONFIGURO = yes
512 OSPI_Flash_Dma_TestApp_MAKEFILE = -f makefile DMA=enable
513 export OSPI_Flash_Dma_TestApp_COMP_LIST
514 export OSPI_Flash_Dma_TestApp_BOARD_DEPENDENCY
515 export OSPI_Flash_Dma_TestApp_CORE_DEPENDENCY
516 export OSPI_Flash_Dma_TestApp_XDC_CONFIGURO
517 export OSPI_Flash_Dma_TestApp_MAKEFILE
518 OSPI_Flash_Dma_TestApp_PKG_LIST = OSPI_Flash_Dma_TestApp
519 OSPI_Flash_Dma_TestApp_INCLUDE = $(OSPI_Flash_Dma_TestApp_PATH)
520 OSPI_Flash_Dma_TestApp_BOARDLIST = $(drvspi_BOARDLIST)
521 export OSPI_Flash_Dma_TestApp_BOARDLIST
522 OSPI_Flash_Dma_TestApp_$(SOC)_CORELIST = $(drvspi_$(SOC)_CORELIST)
523 export OSPI_Flash_Dma_TestApp_$(SOC)_CORELIST
525 # OSPI rtos DMA Flash Test app with SMP enabled
526 OSPI_Flash_Dma_SMP_TestApp_COMP_LIST = OSPI_Flash_Dma_SMP_TestApp
527 OSPI_Flash_Dma_SMP_TestApp_RELPATH = ti/drv/spi/test/ospi_flash
528 OSPI_Flash_Dma_SMP_TestApp_PATH = $(PDK_SPI_COMP_PATH)/test/ospi_flash
529 OSPI_Flash_Dma_SMP_TestApp_BOARD_DEPENDENCY = yes
530 OSPI_Flash_Dma_SMP_TestApp_CORE_DEPENDENCY = no
531 OSPI_Flash_Dma_SMP_TestApp_XDC_CONFIGURO = yes
532 OSPI_Flash_Dma_SMP_TestApp_MAKEFILE = -f makefile DMA=enable SMP=enable
533 export OSPI_Flash_Dma_SMP_TestApp_COMP_LIST
534 export OSPI_Flash_Dma_SMP_TestApp_BOARD_DEPENDENCY
535 export OSPI_Flash_Dma_SMP_TestApp_CORE_DEPENDENCY
536 export OSPI_Flash_Dma_SMP_TestApp_XDC_CONFIGURO
537 export OSPI_Flash_Dma_SMP_TestApp_MAKEFILE
538 OSPI_Flash_Dma_SMP_TestApp_PKG_LIST = OSPI_Flash_Dma_SMP_TestApp
539 OSPI_Flash_Dma_SMP_TestApp_INCLUDE = $(OSPI_Flash_Dma_SMP_TestApp_PATH)
540 OSPI_Flash_Dma_SMP_TestApp_BOARDLIST = am65xx_idk am65xx_evm
541 export OSPI_Flash_Dma_SMP_TestApp_BOARDLIST
542 OSPI_Flash_Dma_SMP_TestApp_$(SOC)_CORELIST = mpu1_0
543 export OSPI_Flash_Dma_SMP_TestApp_$(SOC)_CORELIST
545 export drvspi_LIB_LIST
546 export spi_LIB_LIST
547 export spi_EXAMPLE_LIST
548 export drvspi_FIRM_LIST
549 export spi_FIRM_LIST
550 export drvspi_EXAMPLE_LIST
552 spi_component_make_include := 1
553 endif