gitlab.arm.com will be in the maintainance mode on Wednesday June 29th 01:00 - 10:00 (UTC+1). Repositories is read only during the maintainance.

Commit 2ab8d59f authored by Grant Likely's avatar Grant Likely
Browse files

Actually add the lx2160a.mk platform target file



The previous commit to add lx2160a platform support missed the most
important file. <facepalm/>. Add it now.
Signed-off-by: Grant Likely's avatarGrant Likely <grant.likely@arm.com>
parent 76e8c465
RCW_PATH := $(CURDIR)/rcw
RCW_TARGET_PATH := $(RCW_PATH)/$(CONFIG_SYS_CONFIG_NAME)
TFA_PLAT := $(CONFIG_SYS_CONFIG_NAME)
TFA_EXTRA += RCW=$(RCW_TARGET_PATH)/RCW/template.bin
TFA_EXTRA += TRUSTED_BOARD_BOOT=0 GENERATE_COT=0 BOOT_MODE=auto SECURE_BOOT=false
FLASH_IMAGE := $(CONFIG_SYS_CONFIG_NAME)-sdcard.img
tfa/all tfa/fip: $(RCW_TARGET_PATH)/RCW/template.bin
tfa/pbl: tfa/fip
all: tfa/pbl $(FLASH_IMAGE)
LX2160A_SPEED := 2000_700_3200
LX2160A_SERDES := 8_5_2
#LX2160A_SERDES := 13_5_2
#LX2160A_SERDES := 20_5_2
DPAA2_MC := $(CURDIR)/qoriq-mc-binary/lx2160a/mc_10.20.4_lx2160a.itb
DPAA2_DPL := $(CURDIR)/mc-utils/config/lx2160a/CEX7/dpl-eth.8x10g.19.dtb
DPAA2_DPC := $(CURDIR)/mc-utils/config/lx2160a/CEX7/dpc-8_x_usxgmii.dtb
fip_ddr_all.bin: tfa/fiptool
$(TFA_PATH)/tools/fiptool/fiptool create \
--ddr-immem-udimm-1d ddr-phy-binary/lx2160a/ddr4_pmu_train_imem.bin \
--ddr-immem-udimm-2d ddr-phy-binary/lx2160a/ddr4_2d_pmu_train_imem.bin \
--ddr-dmmem-udimm-1d ddr-phy-binary/lx2160a/ddr4_pmu_train_dmem.bin \
--ddr-dmmem-udimm-2d ddr-phy-binary/lx2160a/ddr4_2d_pmu_train_dmem.bin \
--ddr-immem-rdimm-1d ddr-phy-binary/lx2160a/ddr4_rdimm_pmu_train_imem.bin \
--ddr-immem-rdimm-2d ddr-phy-binary/lx2160a/ddr4_rdimm2d_pmu_train_imem.bin \
--ddr-dmmem-rdimm-1d ddr-phy-binary/lx2160a/ddr4_rdimm_pmu_train_dmem.bin \
--ddr-dmmem-rdimm-2d ddr-phy-binary/lx2160a/ddr4_rdimm2d_pmu_train_dmem.bin \
fip_ddr_all.bin
$(RCW_TARGET_PATH)/RCW/template.rcw:
mkdir -p $(RCW_TARGET_PATH)/RCW
echo "#include <configs/lx2160a_defaults.rcwi>" > $@
echo "#include <configs/lx2160a_$(LX2160A_SPEED).rcwi>" >> $@
echo "#include <configs/lx2160a_$(LX2160A_SERDES).rcwi>" >> $@
$(DPAA2_DPL) $(DPAA2_DPC):
${MAKE} -C $(CURDIR)/mc-utils/config
rcw/%: $(RCW_TARGET_PATH)/RCW/template.rcw
${MAKE} -C ${RCW_PATH}/$(CONFIG_SYS_CONFIG_NAME) $*
$(RCW_TARGET_PATH)/RCW/template.bin: rcw/all
$(FLASH_IMAGE): tfa/pbl fip_ddr_all.bin $(DPAA2_DPL) $(DPAA2_DPC)
dd if=/dev/zero of=$(FLASH_IMAGE) count=$$((64*1024*1024>>9))
dd if=$(TFA_OUTPUT)/$(TFA_PLAT)/release/bl2_auto.pbl of=$(FLASH_IMAGE) bs=512 seek=8 conv=notrunc
dd if=$(TFA_OUTPUT)/$(TFA_PLAT)/release/fip.bin of=$(FLASH_IMAGE) bs=512 seek=2048 conv=notrunc
dd if=fip_ddr_all.bin of=$(FLASH_IMAGE) bs=512 seek=16384 conv=notrunc
# QORIQ Data Plane Acceleration Architecture MC
dd if=$(DPAA2_MC) of=$(FLASH_IMAGE) bs=512 seek=20480 conv=notrunc
dd if=$(DPAA2_DPL) of=$(FLASH_IMAGE) bs=512 seek=26624 conv=notrunc
dd if=$(DPAA2_DPC) of=$(FLASH_IMAGE) bs=512 seek=28672 conv=notrunc
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment