Pankaj Gupta | 1f9eab7 | 2020-12-09 14:02:39 +0530 | [diff] [blame] | 1 | # |
Pankaj Gupta | 7834b46 | 2021-03-25 15:15:52 +0530 | [diff] [blame] | 2 | # Copyright 2021 NXP |
Pankaj Gupta | 1f9eab7 | 2020-12-09 14:02:39 +0530 | [diff] [blame] | 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
| 5 | # |
| 6 | |
| 7 | ifeq (${QSPI_ADDED},) |
| 8 | |
| 9 | QSPI_ADDED := 1 |
| 10 | |
Pankaj Gupta | 7834b46 | 2021-03-25 15:15:52 +0530 | [diff] [blame] | 11 | QSPI_SOURCES := $(PLAT_DRIVERS_PATH)/qspi/qspi.c |
Pankaj Gupta | 1f9eab7 | 2020-12-09 14:02:39 +0530 | [diff] [blame] | 12 | |
Pankaj Gupta | 7834b46 | 2021-03-25 15:15:52 +0530 | [diff] [blame] | 13 | PLAT_INCLUDES += -I$(PLAT_DRIVERS_PATH)/qspi |
Pankaj Gupta | 1f9eab7 | 2020-12-09 14:02:39 +0530 | [diff] [blame] | 14 | |
| 15 | ifeq (${BL_COMM_QSPI_NEEDED},yes) |
| 16 | BL_COMMON_SOURCES += ${QSPI_SOURCES} |
| 17 | else |
| 18 | ifeq (${BL2_QSPI_NEEDED},yes) |
| 19 | BL2_SOURCES += ${QSPI_SOURCES} |
| 20 | endif |
| 21 | ifeq (${BL31_QSPI_NEEDED},yes) |
| 22 | BL31_SOURCES += ${QSPI_SOURCES} |
| 23 | endif |
| 24 | endif |
| 25 | |
| 26 | endif |