colibri-imx6ull: support building with DM_VIDEO=y
authorIgor Opaniuk <igor.opaniuk@toradex.com>
Wed, 19 Jun 2019 08:47:08 +0000 (11:47 +0300)
committerAnatolij Gustschin <agust@denx.de>
Sun, 28 Jul 2019 22:11:54 +0000 (00:11 +0200)
1. This fixes linking issues when building with DM_VIDEO enabled mxsfb
driver.
2. Provide proper defines for both VIDEO=y and DM_VIDEO=y.

Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com>
Reviewed-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
arch/arm/mach-imx/mx6/soc.c
include/configs/colibri-imx6ull.h

index 4084ab767291675a3bcba61f5dd5e722d04a8550..075d2467ce421761ce16be3e3a42dbc836ab29d9 100644 (file)
@@ -554,7 +554,7 @@ const struct boot_mode soc_boot_modes[] = {
 void reset_misc(void)
 {
 #ifndef CONFIG_SPL_BUILD
-#ifdef CONFIG_VIDEO_MXS
+#if defined(CONFIG_VIDEO_MXS) && !defined(CONFIG_DM_VIDEO)
        lcdif_power_down();
 #endif
 #endif
index 2c43862800a29a866ca3a16457d1a1cb26691e4a..05af222a1fa569231d14f64ba35acdf6645a9f96 100644 (file)
 #define CONFIG_SYS_DFU_DATA_BUF_SIZE   SZ_16M
 #define DFU_DEFAULT_POLL_TIMEOUT       300
 
-#ifdef CONFIG_VIDEO
+#if defined(CONFIG_VIDEO) || defined(CONFIG_DM_VIDEO)
 #define CONFIG_VIDEO_MXS
 #define MXS_LCDIF_BASE MX6UL_LCDIF1_BASE_ADDR
 #define CONFIG_VIDEO_LOGO