#@TYPE: Machine
#@NAME: NXP LS1043ARDB board
#@SOC: LSCH2
#@DESCRIPTION: Machine configuration for NXP QorIQ LS1043ARDB
#              with ARM Cortext-A53 core
#@MAINTAINER: Ting Liu <ting.liu@nxp.com>

MACHINEOVERRIDES =. "fsl-lsch2:ls1043a:"

require conf/machine/include/qoriq-arm64.inc
require conf/machine/include/arm/arch-arm64.inc

MACHINE_FEATURES += "optee"

KERNEL_CLASSES  = " kernel-fitimage "
KERNEL_IMAGETYPES = "fitImage"

UBOOT_DTB_LOADADDRESS = "0x90000000"
UBOOT_ENTRYPOINT = "0x80080000"

UBOOT_CONFIG ??= "tfa-secure-boot tfa"
UBOOT_CONFIG[tfa] = "ls1043ardb_tfa_defconfig"
UBOOT_CONFIG[tfa-secure-boot] = "ls1043ardb_tfa_SECURE_BOOT_defconfig"

KERNEL_DEVICETREE ?= "\
    freescale/fsl-ls1043a-rdb.dtb \
    freescale/fsl-ls1043a-qds.dtb \
"
# usdpaa dtb is used for dpdk. TODO: rename in kernel
KERNEL_DEVICETREE:prepend:use-nxp-bsp = "\
    freescale/fsl-ls1043a-rdb-sdk.dtb \
    freescale/fsl-ls1043a-rdb-usdpaa.dtb \
    freescale/fsl-ls1043a-qds-sdk.dtb \
"
KERNEL_DEFCONFIG ?= "defconfig"

UEFI_NORBOOT ?= "LS1043ARDB_EFI_NORBOOT.fd"
RCWNOR ?= "RR_FQPP_1455/rcw_1600"
RCWSD ?= "RR_FQPP_1455/rcw_1600_sdboot"
RCWNAND ?= "RR_FQPP_1455/rcw_1600_nandboot"

QE_UCODE = "iram_Type_A_LS1021a_r1.0.bin"
FMAN_UCODE ?= "fsl_fman_ucode_ls1043_r1.1_106_4_18.bin"

EXTRA_IMAGEDEPENDS += "fm-ucode rcw qe-ucode uefi qoriq-atf ls2-phy"
USE_VT = "0"
