blob: 450aeca602336b9bf9f7494b7d2115f837f86fd6 [file] [log] [blame]
Pankaj Gupta1f9eab72020-12-09 14:02:39 +05301#
Pankaj Gupta7834b462021-03-25 15:15:52 +05302# Copyright 2021 NXP
Pankaj Gupta1f9eab72020-12-09 14:02:39 +05303#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6
7ifeq (${QSPI_ADDED},)
8
9QSPI_ADDED := 1
10
Pankaj Gupta7834b462021-03-25 15:15:52 +053011QSPI_SOURCES := $(PLAT_DRIVERS_PATH)/qspi/qspi.c
Pankaj Gupta1f9eab72020-12-09 14:02:39 +053012
Jiafei Pan44fad872022-01-20 17:35:48 +080013PLAT_INCLUDES += -I$(PLAT_DRIVERS_INCLUDE_PATH)/qspi
Pankaj Gupta1f9eab72020-12-09 14:02:39 +053014
15ifeq (${BL_COMM_QSPI_NEEDED},yes)
16BL_COMMON_SOURCES += ${QSPI_SOURCES}
17else
18ifeq (${BL2_QSPI_NEEDED},yes)
19BL2_SOURCES += ${QSPI_SOURCES}
20endif
21ifeq (${BL31_QSPI_NEEDED},yes)
22BL31_SOURCES += ${QSPI_SOURCES}
23endif
24endif
25
26endif