From d6a69e63096292c7f7129af8d56dc24ec094d2ff Mon Sep 17 00:00:00 2001 From: Marcel Ziswiler Date: Fri, 31 May 2019 10:32:32 +0300 Subject: apalis-imx8: enable hdp firmware loading Signed-off-by: Marcel Ziswiler --- configs/apalis-imx8qm_defconfig | 1 + include/configs/apalis-imx8.h | 13 +++++++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/configs/apalis-imx8qm_defconfig b/configs/apalis-imx8qm_defconfig index ce98677ce0..32863b4a2e 100644 --- a/configs/apalis-imx8qm_defconfig +++ b/configs/apalis-imx8qm_defconfig @@ -56,4 +56,5 @@ CONFIG_DM_REGULATOR_GPIO=y CONFIG_DM_SERIAL=y CONFIG_FSL_LPUART=y CONFIG_DM_THERMAL=y +CONFIG_VIDEO_IMX_HDP_LOAD=y # CONFIG_EFI_LOADER is not set diff --git a/include/configs/apalis-imx8.h b/include/configs/apalis-imx8.h index 780ae618e0..0563a31ab3 100644 --- a/include/configs/apalis-imx8.h +++ b/include/configs/apalis-imx8.h @@ -59,9 +59,12 @@ "fdt_file=fsl-imx8qm-apalis-eval.dtb\0" \ "fdtfile=fsl-imx8qm-apalis-eval.dtb\0" \ "finduuid=part uuid mmc ${mmcdev}:2 uuid\0" \ + "hdp_addr=0x84000000\0" \ + "hdp_file=hdmitxfw.bin\0" \ "image=Image\0" \ "initrd_addr=0x83800000\0" \ "initrd_high=0xffffffffffffffff\0" \ + "loadhdp=fatload mmc ${mmcdev}:${mmcpart} ${hdp_addr} ${hdp_file}\0" \ "mmcargs=setenv bootargs console=${console},${baudrate} " \ "root=PARTUUID=${uuid} rootwait " \ "mmcdev=" __stringify(CONFIG_SYS_MMC_ENV_DEV) "\0" \ @@ -69,8 +72,10 @@ "netargs=setenv bootargs console=${console},${baudrate} " \ "root=/dev/nfs ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcp" \ "\0" \ - "nfsboot=run netargs; dhcp ${loadaddr} ${image}; tftp ${fdt_addr} " \ - "apalis-imx8/${fdt_file}; booti ${loadaddr} - ${fdt_addr}\0" \ + "nfsboot=run netargs; dhcp ${loadaddr} ${image}; if tftp ${hdp_addr} " \ + "${hdp_file}; then; hdp load ${hdp_addr}; fi; tftp " \ + "${fdt_addr} apalis-imx8/${fdt_file}; booti ${loadaddr} - " \ + "${fdt_addr}\0" \ "panel=NULL\0" \ "script=boot.scr\0" \ "update_uboot=askenv confirm Did you load u-boot-dtb.imx (y/N)?; " \ @@ -79,6 +84,10 @@ "${blkcnt} / 0x200; mmc dev 0 1; mmc write ${loadaddr} 0x0 " \ "${blkcnt}; fi\0" +#undef CONFIG_BOOTCOMMAND +#define CONFIG_BOOTCOMMAND \ + "if run loadhdp; then; hdp load ${hdp_addr}; fi; run distro_bootcmd" + /* Link Definitions */ #define CONFIG_LOADADDR 0x80280000 -- cgit v1.2.3