Skip to content
Snippets Groups Projects
Commit d7f9440d authored by Silvano di Ninno's avatar Silvano di Ninno
Browse files

i.IMX 8DX: Add support for i.MX 8DX


i.MX 8DX and i.MX 8QX share the same die, so they
will use the same implementation.

Signed-off-by: default avatarSilvano di Ninno <silvano.dininno@nxp.com>
Reviewed-by: default avatarYe Li <ye.li@nxp.com>
parent 25560004
No related merge requests found
......@@ -9,6 +9,9 @@ SRCS = src/imx8qm.c src/imx8qx.c src/imx8qxb0.c src/mkimage_imx8.c
ifneq ($(findstring iMX8M,$(SOC)),)
SOC_DIR = iMX8M
endif
ifeq ($(SOC),iMX8DX)
SOC_DIR = iMX8QX
endif
SOC_DIR ?= $(SOC)
vpath $(INCLUDE)
......
......@@ -22,6 +22,12 @@ else
AHAB_IMG = mx8qxc0-ahab-container.img
endif
ifeq ($(SOC),iMX8DX)
TEE_LOAD_ADDR ?= 0xBE000000
else ifeq ($(SOC),iMX8QX)
TEE_LOAD_ADDR ?= 0xFE000000
endif
FORCE:
u-boot-hash.bin: u-boot.bin
......@@ -35,16 +41,16 @@ u-boot-atf.bin: u-boot-hash.bin bl31.bin
u-boot-atf.itb: u-boot-hash.bin bl31.bin
./$(PAD_IMAGE) bl31.bin
./$(PAD_IMAGE) u-boot-hash.bin
./mkimage_fit_atf.sh > u-boot.its;
TEE_LOAD_ADDR=$(TEE_LOAD_ADDR) ./mkimage_fit_atf.sh > u-boot.its;
./mkimage_uboot -E -p 0x3000 -f u-boot.its u-boot-atf.itb;
@rm -f u-boot.its
u-boot-atf-container.img: bl31.bin u-boot-hash.bin
if [ -f tee.bin ]; then \
if [ $(shell echo $(ROLLBACK_INDEX_IN_CONTAINER)) ]; then \
./$(MKIMG) -soc QX -sw_version $(ROLLBACK_INDEX_IN_CONTAINER) -rev B0 -c -ap bl31.bin a35 0x80000000 -ap u-boot-hash.bin a35 0x80020000 -ap tee.bin a35 0xFE000000 -out u-boot-atf-container.img; \
./$(MKIMG) -soc QX -sw_version $(ROLLBACK_INDEX_IN_CONTAINER) -rev B0 -c -ap bl31.bin a35 0x80000000 -ap u-boot-hash.bin a35 0x80020000 -ap tee.bin a35 $(TEE_LOAD_ADDR) -out u-boot-atf-container.img; \
else \
./$(MKIMG) -soc QX -rev B0 -c -ap bl31.bin a35 0x80000000 -ap u-boot-hash.bin a35 0x80020000 -ap tee.bin a35 0xFE000000 -out u-boot-atf-container.img; \
./$(MKIMG) -soc QX -rev B0 -c -ap bl31.bin a35 0x80000000 -ap u-boot-hash.bin a35 0x80020000 -ap tee.bin a35 $(TEE_LOAD_ADDR) -out u-boot-atf-container.img; \
fi; \
else \
./$(MKIMG) -soc QX -rev B0 -c -ap bl31.bin a35 0x80000000 -ap u-boot-hash.bin a35 0x80020000 -out u-boot-atf-container.img; \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment