require recipes-bsp/trusted-firmware-a/trusted-firmware-a.inc

PV = "2.3+git${SRCPV}"
SRCREV_tfa = "00ad74c7afe67b2ffaf08300710f18d3dafebb45"

LIC_FILES_CHKSUM += "file://docs/license.rst;md5=189505435dbcdcc8caa63c46fe93fa89"

SRC_URI +=  " \
    file://0001-ddr-spd-read-failover-to-defualt-config.patch \
    file://0002-som-sdp-failover-using-crc-verification.patch \
    file://mrvl_scp_bl2.img \
"

COMPATIBLE_MACHINE = "cn913x"

DEPENDS += "mv-ddr-marvell coreutils-native"

CP_NUM:cn9131-bldn-mbv = "2"
CP_NUM:cn9130-cf-pro = "1"

TFA_PLATFORM       = "t9130"
TFA_BUILD_TARGET   = "all mrvl_flash"
TFA_INSTALL_TARGET = "flash-image"
TFA_DEBUG          = "1"
TFA_MBEDTLS        = "0"
TFA_UBOOT          = "1"
TFA_UEFI           = "0"


EXTRA_OEMAKE += "USE_COHERENT_MEM=0 LOG_LEVEL=20 MV_DDR_PATH=${PKG_CONFIG_SYSROOT_DIR}/usr/src/mv-ddr-marvell CP_NUM=${CP_NUM} SCP_BL2=${WORKDIR}/mrvl_scp_bl2.img"
