mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-22 20:38:03 +00:00

Flexspi driver now introduces read/write/erase APIs for complete flash size, FAST-READ are by default used and IP bus is used for erase, read and write using flexspi APIs. Framework layer is currently embedded in driver itself using flash_info defines. Test cases are also added to confirm flash functionality currently under DEBUG flag. Signed-off-by: Pankaj Gupta <pankaj.gupta@nxp.com> Signed-off-by: Ashish Kumar <Ashish.Kumar@nxp.com> Signed-off-by: Kuldeep Singh <kuldeep.singh@nxp.com> Change-Id: I755c0f763f6297a35cad6885f84640de50f51bb0
35 lines
727 B
Makefile
35 lines
727 B
Makefile
#
|
|
# Copyright 2020 NXP
|
|
#
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
#
|
|
|
|
ifeq (${XSPI_NOR},)
|
|
XSPI_NOR := 1
|
|
|
|
FLEXSPI_DRIVERS_PATH := ${PLAT_DRIVERS_PATH}/flexspi/nor
|
|
|
|
PLAT_XSPI_INCLUDES += -I$(FLEXSPI_DRIVERS_PATH)
|
|
|
|
XSPI_BOOT_SOURCES += $(FLEXSPI_DRIVERS_PATH)/flexspi_nor.c \
|
|
${FLEXSPI_DRIVERS_PATH}/fspi.c
|
|
ifeq ($(DEBUG),1)
|
|
XSPI_BOOT_SOURCES += ${FLEXSPI_DRIVERS_PATH}/test_fspi.c
|
|
endif
|
|
|
|
PLAT_XSPI_INCLUDES += -Iinclude/drivers/nxp/flexspi
|
|
|
|
PLAT_INCLUDES += ${PLAT_XSPI_INCLUDES}
|
|
|
|
ifeq (${BL_COMM_XSPI_NEEDED},yes)
|
|
BL_COMMON_SOURCES += ${XSPI_BOOT_SOURCES}
|
|
else
|
|
ifeq (${BL2_XSPI_NEEDED},yes)
|
|
BL2_SOURCES += ${XSPI_BOOT_SOURCES}
|
|
endif
|
|
ifeq (${BL31_XSPI_NEEDED},yes)
|
|
BL31_SOURCES += ${XSPI_BOOT_SOURCES}
|
|
endif
|
|
endif
|
|
|
|
endif
|