$(INSTALL_BIN) $(HOST_BUILD_DIR)/plat/nxp/tools/byte_swap $(STAGING_DIR_HOST)/bin/tfa-byte-swap
endef
+define Package/tfa-layerscape/ls1012afrdm
+ TITLE:=NXP LS1012AFRDM Trusted Firmware
+ PLAT:=ls1012afrdm
+ BOOT_MODE:=qspi
+ BIN_BL2:=build/ls1012afrdm/release/bl2_qspi.pbl
+ BIN_FIP:=build/ls1012afrdm/release/fip.bin
+endef
+
define Package/tfa-layerscape/ls1012ardb
TITLE:=NXP LS1012ARDB Trusted Firmware
PLAT:=ls1012ardb
endef
TFAS := \
+ ls1012afrdm \
ls1012ardb \
ls1012afrwy \
ls1043ardb \
ENV_SIZE:=0x2000
endef
+define U-Boot/ls1012afrdm
+ NAME:=NXP LS1012AFRDM
+ UBOOT_CONFIG:=ls1012afrdm_tfa
+ ENV_SIZE:=0x40000
+endef
+
define U-Boot/ls1012ardb
NAME:=NXP LS1012ARDB
UBOOT_CONFIG:=ls1012ardb_tfa
UBOOT_TARGETS := \
+ ls1012afrdm \
ls1012ardb \
ls1012afrwy \
ls1043ardb \
--- /dev/null
+fdtaddr=0x8f000000
+loadaddr=0x81000000
+fdt_high=0xffffffffffffffff
+initrd_high=0xffffffffffffffff
+qspi_boot=sf probe 0:0;sf read $fdtaddr f00000 100000;sf read $loadaddr 1000000 1000000;bootm $loadaddr - $fdtaddr
+bootargs=ubi.mtd=8 root=ubi0:rootfs rw rootfstype=ubifs noinitrd earlycon=uart8250,mmio,0x21c0500 console=ttyS0,115200 mtdparts=1550000.quadspi:1m(bl2),4m(fip),1m(u-boot-env),4m(reserved-1),3m(pfe),2m(reserved-2),1m(dtb),16m(kernel),32m(ubifs)
+bootcmd=echo starting OpenWrt ...;pfe stop;run qspi_boot
+bootdelay=3
endef
endef
+define Package/layerscape-rcw/ls1012afrdm
+ TITLE:=NXP LS1012AFRDM RCW binary
+ CONFIG:=ls1012afrdm/N_SSNP_3305/rcw_800.bin
+endef
+
define Package/layerscape-rcw/ls1012ardb
TITLE:=NXP LS1012ARDB RCW binary
CONFIG:=ls1012ardb/R_SPNH_3508/rcw_1000_default.bin
endef
RCWS := \
+ ls1012afrdm \
ls1012ardb \
ls1012afrwy \
ls1043ardb \
KERNEL_ENTRY_POINT := 0x80080000
endef
+define Device/ls1012afrdm
+ DEVICE_VENDOR := NXP
+ DEVICE_MODEL := FRDM-LS1012A
+ DEVICE_PACKAGES += \
+ layerscape-ppfe \
+ tfa-ls1012afrdm \
+ kmod-ppfe
+ DEVICE_DTS := freescale/fsl-ls1012a-frdm
+ UBINIZE_OPTS := -E 5
+ BLOCKSIZE := 256KiB
+ PAGESIZE := 1
+ IMAGE/firmware.bin := \
+ ls-clean | \
+ ls-append $(1)-bl2.pbl | pad-to 1M | \
+ ls-append $(1)-fip.bin | pad-to 5M | \
+ ls-append $(1)-uboot-env.bin | pad-to 10M | \
+ ls-append pfe.itb | pad-to 15M | \
+ ls-append-dtb $$(DEVICE_DTS) | pad-to 16M | \
+ append-kernel | pad-to 32M | \
+ append-ubi | check-size 67108865
+endef
+TARGET_DEVICES += ls1012afrdm
+
define Device/ls1012ardb
DEVICE_VENDOR := NXP
DEVICE_MODEL := LS1012A-RDB