MA-15724: hdp: move macro IMX_LOAD_HDMI_FIMRWARE to Kconfig
authorZhang Bo <bo.zhang@nxp.com>
Thu, 24 Oct 2019 13:38:19 +0000 (21:38 +0800)
committerZhang Bo <bo.zhang@nxp.com>
Fri, 25 Oct 2019 02:53:30 +0000 (10:53 +0800)
Move the macro IMX_LOAD_HDMI_FIMRWARE to Kconfig, so it can be enable or
disable in different defconfig.

Change-Id: I2e1291d3bc2d6efb29309525b33b84ba8f9b83da
Signed-off-by: Zhang Bo <bo.zhang@nxp.com>
arch/arm/mach-imx/imx8/Kconfig
board/freescale/imx8qm_mek/imx8qm_mek.c
include/configs/imx8qm_mek_android.h

index 6b09a45..9d043b6 100644 (file)
@@ -28,6 +28,13 @@ config BOOTAUX_RESERVED_MEM_SIZE
        help
          This memory will be reserved by system and linux cannot access.
 
+config IMX_LOAD_HDMI_FIMRWARE
+       bool "Enable HDMI firmware loading"
+       depends on ARCH_IMX8 || VIDEO_IMX_HDP_LOAD
+       help
+         This enable the hdmi firmware loading. It depends on the "hdp" and
+         "hdprx" commands.
+
 config IMX8
        bool
 
index 06476f3..f344432 100644 (file)
@@ -441,7 +441,7 @@ int board_late_init(void)
        board_late_mmc_env_init();
 #endif
 
-#ifdef IMX_LOAD_HDMI_FIMRWARE
+#ifdef CONFIG_IMX_LOAD_HDMI_FIMRWARE
        char *end_of_uboot;
        char command[256];
        end_of_uboot = (char *)(ulong)(CONFIG_SYS_TEXT_BASE + _end_ofs + fdt_totalsize(gd->fdt_blob));
index c1df633..cb5923e 100644 (file)
 #define KEYSLOT_HWPARTITION_ID   2
 #define KEYSLOT_BLKS             0x3FFF
 
-#define IMX_LOAD_HDMI_FIMRWARE
+#ifdef CONFIG_IMX_LOAD_HDMI_FIMRWARE
 #define IMX_HDMI_FIRMWARE_LOAD_ADDR (CONFIG_SYS_SDRAM_BASE + SZ_64M)
 #define IMX_HDMITX_FIRMWARE_SIZE 0x20000
 #define IMX_HDMIRX_FIRMWARE_SIZE 0x20000
+#endif
 
 #ifdef CONFIG_SYS_MALLOC_LEN
 #undef CONFIG_SYS_MALLOC_LEN