Browse Source

tools: imx8m_image: test for ddr4 vs lpddr4

Signed-off-by: Troy Kisky <troy.kisky@boundarydevices.com>
master
Troy Kisky 7 months ago
parent
commit
47af0c2ebc
2 changed files with 6 additions and 0 deletions
  1. +4
    -0
      arch/arm/mach-imx/Makefile
  2. +2
    -0
      tools/imx8m_image.sh

+ 4
- 0
arch/arm/mach-imx/Makefile View File

@@ -135,7 +135,11 @@ flash.bin: MKIMAGEOUTPUT = flash.log

spl/u-boot-spl-ddr.bin: spl/u-boot-spl.bin spl/u-boot-spl.cfgout FORCE
ifeq ($(DEPFILE_EXISTS),0)
ifdef CONFIG_IMX8M_LPDDR4
$(IMX8M_DEPFILES) spl/u-boot-spl.cfgout 1
else
$(IMX8M_DEPFILES) spl/u-boot-spl.cfgout 2
endif
endif

flash.bin: spl/u-boot-spl-ddr.bin u-boot.itb FORCE


+ 2
- 0
tools/imx8m_image.sh View File

@@ -38,6 +38,8 @@ if [ $post_process = 1 ]; then
cat spl/u-boot-spl.bin lpddr4_pmu_train_1d_fw.bin lpddr4_pmu_train_2d_fw.bin > spl/u-boot-spl-ddr.bin
rm -f lpddr4_pmu_train_1d_fw.bin lpddr4_pmu_train_2d_fw.bin lpddr4_pmu_train_1d_imem_pad.bin lpddr4_pmu_train_1d_dmem_pad.bin lpddr4_pmu_train_2d_imem_pad.bin
fi
fi
if [ $post_process = 2 ]; then
if [ -f $srctree/ddr4_imem_1d.bin ]; then
objcopy -I binary -O binary --pad-to 0x8000 --gap-fill=0x0 $srctree/ddr4_imem_1d.bin ddr4_imem_1d_pad.bin
objcopy -I binary -O binary --pad-to 0x4000 --gap-fill=0x0 $srctree/ddr4_dmem_1d.bin ddr4_dmem_1d_pad.bin


Loading…
Cancel
Save