1# 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 29