Pankaj Gupta | 7834b46 | 2021-03-25 15:15:52 +0530 | [diff] [blame] | 1 | # Copyright 2021 NXP |
Pankaj Gupta | 9ce8db7 | 2020-12-09 14:02:38 +0530 | [diff] [blame] | 2 | # |
| 3 | # SPDX-License-Identifier: BSD-3-Clause |
| 4 | # |
| 5 | # |
| 6 | #------------------------------------------------------------------------------ |
| 7 | # |
| 8 | # Select the Interconnect files |
| 9 | # |
| 10 | # ----------------------------------------------------------------------------- |
| 11 | |
| 12 | ifeq (${ADD_INTERCONNECT},) |
| 13 | |
| 14 | ADD_INTERCONNECT := 1 |
Pankaj Gupta | 7834b46 | 2021-03-25 15:15:52 +0530 | [diff] [blame] | 15 | PLAT_INCLUDES += -I${PLAT_DRIVERS_INCLUDE_PATH}/interconnect |
Pankaj Gupta | 9ce8db7 | 2020-12-09 14:02:38 +0530 | [diff] [blame] | 16 | |
| 17 | ifeq (, $(filter $(INTERCONNECT), CCI400 CCN502 CCN504 CCN508)) |
| 18 | $(error -> Interconnect type not set!) |
| 19 | else |
| 20 | $(eval $(call add_define_val,INTERCONNECT,${INTERCONNECT})) |
| 21 | ifeq ($(INTERCONNECT), $(filter $(INTERCONNECT), CCN502 CCN504 CCN508)) |
| 22 | INTERCONNECT_SOURCES := drivers/arm/ccn/ccn.c \ |
| 23 | ${PLAT_DRIVERS_PATH}/interconnect/ls_ccn.c |
| 24 | else |
| 25 | ifeq ($(INTERCONNECT), CCI400) |
| 26 | INTERCONNECT_SOURCES := drivers/arm/cci/cci.c \ |
| 27 | ${PLAT_DRIVERS_PATH}/interconnect/ls_cci.c |
| 28 | endif |
| 29 | endif |
| 30 | endif |
| 31 | |
| 32 | ifeq (${BL_COMM_INTERCONNECT_NEEDED},yes) |
| 33 | BL_COMMON_SOURCES += ${INTERCONNECT_SOURCES} |
| 34 | else |
| 35 | ifeq (${BL2_INTERCONNECT_NEEDED},yes) |
| 36 | BL2_SOURCES += ${INTERCONNECT_SOURCES} |
| 37 | endif |
| 38 | ifeq (${BL31_INTERCONNECT_NEEDED},yes) |
| 39 | BL31_SOURCES += ${INTERCONNECT_SOURCES} |
| 40 | endif |
| 41 | endif |
| 42 | endif |
| 43 | |
| 44 | # ----------------------------------------------------------------------------- |