boot/uboot: Add ddr3 IMX firmware files to uboot package dir

The mainline U-Boot can create an i.MX specific firmware image (e.g. flash.bin).
For this the i.MX firmware files must be in the toplevel directory.

Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
This commit is contained in:
Michael Trimarchi 2021-12-11 19:34:12 +01:00 committed by Arnout Vandecappelle (Essensium/Mind)
parent baafe68bc3
commit 9a05e2c384
3 changed files with 27 additions and 1 deletions

View File

@ -187,7 +187,8 @@ UBOOT_DEPENDENCIES += firmware-imx
UBOOT_IMX_FW_FILES = \
$(if $(BR2_PACKAGE_FIRMWARE_IMX_NEEDS_HDMI_FW),signed_hdmi_imx8m.bin) \
$(if $(BR2_PACKAGE_FIRMWARE_IMX_LPDDR4),lpddr4*.bin) \
$(if $(BR2_PACKAGE_FIRMWARE_IMX_DDR4),ddr4*.bin)
$(if $(BR2_PACKAGE_FIRMWARE_IMX_DDR4),ddr4*.bin) \
$(if $(BR2_PACKAGE_FIRMWARE_IMX_DDR3),ddr3*.bin)
define UBOOT_COPY_IMX_FW_FILES
$(foreach fw,$(UBOOT_IMX_FW_FILES),\

View File

@ -71,6 +71,11 @@ config BR2_PACKAGE_FIRMWARE_IMX_DDR4
help
Use DDR4 binaries (i.e.: ddr4_*_201810.bin).
config BR2_PACKAGE_FIRMWARE_IMX_DDR3
bool "DDR3"
help
Use DDR3 binaries (i.e.: ddr3_*_201810.bin).
endchoice # DDR training FW
config BR2_PACKAGE_FIRMWARE_IMX_IMEM_LEN

View File

@ -82,6 +82,26 @@ define FIRMWARE_IMX_INSTALL_IMAGE_DDR_FW
endef
endif
ifeq ($(BR2_PACKAGE_FIRMWARE_IMX_DDR3),y)
FIRMWARE_IMX_DDRFW_DIR = $(@D)/firmware/ddr/synopsys
define FIRMWARE_IMX_INSTALL_IMAGE_DDR_FW
# Create padded versions of ddr3_* and generate ddr3_fw.bin.
# ddr3_fw.bin is needed when generating imx8-boot-sd.bin
# which is done in post-image script.
$(call FIRMWARE_IMX_PREPARE_DDR_FW, \
ddr3_imem_1d_201810,ddr3_dmem_1d_201810,ddr3_1d_201810_fw)
cat $(FIRMWARE_IMX_DDRFW_DIR)/ddr3_1d_201810_fw.bin > \
$(BINARIES_DIR)/ddr3_201810_fw.bin
ln -sf $(BINARIES_DIR)/ddr3_201810_fw.bin $(BINARIES_DIR)/ddr_fw.bin
# U-Boot supports creation of the combined flash.bin image. To make
# sure that U-Boot can access all available files copy them to
# the binary dir.
cp $(FIRMWARE_IMX_DDRFW_DIR)/ddr3*.bin $(BINARIES_DIR)/
endef
endif
#
# HDMI firmware
#