blob: 3e2c7350a12957399b366626b43f7de83ed09224 [file] [log] [blame]
Pankaj Gupta1f9eab72020-12-09 14:02:39 +05301#
2# Copyright 2020 NXP
3#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6
7ifeq (${QSPI_ADDED},)
8
9QSPI_ADDED := 1
10
11QSPI_DRIVERS_PATH := ${PLAT_DRIVERS_PATH}/qspi
12
13QSPI_SOURCES := $(QSPI_DRIVERS_PATH)/qspi.c
14
15PLAT_INCLUDES += -I$(QSPI_DRIVERS_PATH)
16
17ifeq (${BL_COMM_QSPI_NEEDED},yes)
18BL_COMMON_SOURCES += ${QSPI_SOURCES}
19else
20ifeq (${BL2_QSPI_NEEDED},yes)
21BL2_SOURCES += ${QSPI_SOURCES}
22endif
23ifeq (${BL31_QSPI_NEEDED},yes)
24BL31_SOURCES += ${QSPI_SOURCES}
25endif
26endif
27
28endif