#@TYPE: Machine
#@NAME: NXP LS1021ATWR board
#@SOC: ls102xa
#@DESCRIPTION: Machine configuration for NXP QorIQ LS1 Tower System
#              Module Rev2.0 with ARM Cortex-A7 core
#@MAINTAINER: Zhenhua Luo <zhenhua.luo@freescale.com>

MACHINEOVERRIDES =. "ls102xa:"

require conf/machine/include/qoriq-arm.inc
require conf/machine/include/arm/armv7a/tune-cortexa7.inc

MACHINE_FEATURES += "optee"

DEFAULTTUNE = "cortexa7hf-neon"

UBOOT_CONFIG ??= "sdcard-ifc-secure-boot sdcard-ifc sdcard-qspi lpuart qspi secure-boot nor"
UBOOT_CONFIG[nor] = "ls1021atwr_nor_defconfig"
UBOOT_CONFIG[sdcard-ifc] = "ls1021atwr_sdcard_ifc_defconfig,,u-boot-with-spl-pbl.bin"
UBOOT_CONFIG[sdcard-qspi] = "ls1021atwr_sdcard_qspi_defconfig,,u-boot-with-spl-pbl.bin"
UBOOT_CONFIG[lpuart] = "ls1021atwr_nor_lpuart_defconfig"
UBOOT_CONFIG[qspi] = "ls1021atwr_qspi_defconfig"
UBOOT_CONFIG[secure-boot] = "ls1021atwr_nor_SECURE_BOOT_defconfig"
UBOOT_CONFIG[sdcard-ifc-secure-boot] = "ls1021atwr_sdcard_ifc_SECURE_BOOT_defconfig,,u-boot-with-spl-pbl.bin"

QE_UCODE="iram_Type_A_LS1021a_r1.0.bin"

KERNEL_DEVICETREE ?= "ls1021a-twr.dtb"
KERNEL_DEFCONFIG ?= "multi_v7_defconfig"

KERNEL_IMAGETYPES = "zImage"

UBOOT_ENTRYPOINT = "0x80008000"
EXTRA_IMAGEDEPENDS += "rcw qe-ucode"
USE_VT ?= "0"
