1# 2# Copyright 2020 NXP 3# 4# SPDX-License-Identifier: BSD-3-Clause 5# 6 7ifeq (${XSPI_NOR},) 8XSPI_NOR := 1 9 10FLEXSPI_DRIVERS_PATH := ${PLAT_DRIVERS_PATH}/flexspi/nor 11 12PLAT_XSPI_INCLUDES += -I$(FLEXSPI_DRIVERS_PATH) 13 14XSPI_BOOT_SOURCES += $(FLEXSPI_DRIVERS_PATH)/flexspi_nor.c \ 15 ${FLEXSPI_DRIVERS_PATH}/fspi.c 16ifeq ($(DEBUG),1) 17XSPI_BOOT_SOURCES += ${FLEXSPI_DRIVERS_PATH}/test_fspi.c 18endif 19 20PLAT_XSPI_INCLUDES += -Iinclude/drivers/nxp/flexspi 21 22PLAT_INCLUDES += ${PLAT_XSPI_INCLUDES} 23 24ifeq (${BL_COMM_XSPI_NEEDED},yes) 25BL_COMMON_SOURCES += ${XSPI_BOOT_SOURCES} 26else 27ifeq (${BL2_XSPI_NEEDED},yes) 28BL2_SOURCES += ${XSPI_BOOT_SOURCES} 29endif 30ifeq (${BL31_XSPI_NEEDED},yes) 31BL31_SOURCES += ${XSPI_BOOT_SOURCES} 32endif 33endif 34 35endif 36