endchoice # DDR training FW
+config BR2_PACKAGE_FIRMWARE_IMX_IMEM_LEN
+ hex "(LP)DDR IMEM padding length"
+ default 0x8000
+ help
+ The IMEM firmware will be padded to this length
+
+config BR2_PACKAGE_FIRMWARE_IMX_DMEM_LEN
+ hex "(LP)DDR DMEM padding length"
+ default 0x4000
+ help
+ The DMEM firmware will be padded to this length
+
endif # BR2_PACKAGE_FIRMWARE_IMX_NEEDS_DDR_FW
endif # BR2_PACKAGE_FIRMWARE_IMX
#
define FIRMWARE_IMX_PREPARE_DDR_FW
- $(TARGET_OBJCOPY) -I binary -O binary --pad-to 0x8000 --gap-fill=0x0 \
+ $(TARGET_OBJCOPY) -I binary -O binary \
+ --pad-to $(BR2_PACKAGE_FIRMWARE_IMX_IMEM_LEN) --gap-fill=0x0 \
$(FIRMWARE_IMX_DDRFW_DIR)/$(strip $(1)).bin \
$(FIRMWARE_IMX_DDRFW_DIR)/$(strip $(1))_pad.bin
- $(TARGET_OBJCOPY) -I binary -O binary --pad-to 0x4000 --gap-fill=0x0 \
+ $(TARGET_OBJCOPY) -I binary -O binary \
+ --pad-to $(BR2_PACKAGE_FIRMWARE_IMX_DMEM_LEN) --gap-fill=0x0 \
$(FIRMWARE_IMX_DDRFW_DIR)/$(strip $(2)).bin \
$(FIRMWARE_IMX_DDRFW_DIR)/$(strip $(2))_pad.bin
cat $(FIRMWARE_IMX_DDRFW_DIR)/$(strip $(1))_pad.bin \