]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
video: move MXS to Kconfig
authorAnatolij Gustschin <agust@denx.de>
Mon, 4 Oct 2021 15:33:12 +0000 (17:33 +0200)
committerAnatolij Gustschin <agust@denx.de>
Sat, 9 Oct 2021 17:50:03 +0000 (19:50 +0200)
Move CONFIG_VIDEO_MXS from board headers to Kconfig
and drop it from obsolete cfb_console driver.

Signed-off-by: Anatolij Gustschin <agust@denx.de>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
23 files changed:
configs/colibri-imx6ull_defconfig
configs/colibri_imx7_defconfig
configs/imxrt1050-evk_defconfig
configs/mx6ul_14x14_evk_defconfig
configs/mx6ul_9x9_evk_defconfig
configs/opos6uldev_defconfig
configs/pico-imx6ul_defconfig
configs/pico-imx7d_bl33_defconfig
configs/pico-imx7d_defconfig
drivers/video/Kconfig
drivers/video/cfb_console.c
include/configs/colibri-imx6ull.h
include/configs/colibri_imx7.h
include/configs/imxrt1050-evk.h
include/configs/mx23evk.h
include/configs/mx28evk.h
include/configs/mx6sxsabresd.h
include/configs/mx6ul_14x14_evk.h
include/configs/mx7dsabresd.h
include/configs/mxs.h
include/configs/opos6uldev.h
include/configs/pico-imx6ul.h
include/configs/pico-imx7d.h

index 0af56f438a1e471ed52ebedd7944b0f9ff61dfef..0c0f1435ab1a950211d66d13d045bea6b91f94a9 100644 (file)
@@ -95,6 +95,7 @@ CONFIG_USB_GADGET_PRODUCT_NUM=0x4000
 CONFIG_CI_UDC=y
 CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_DM_VIDEO=y
+CONFIG_VIDEO_MXS=y
 CONFIG_SYS_WHITE_ON_BLACK=y
 CONFIG_SPLASH_SCREEN=y
 CONFIG_SPLASH_SCREEN_ALIGN=y
index 88d6994153ebeb2d052c770e3c533b5fc81e05af..671390453a703c424ae43045b23d7df0c6bfe813 100644 (file)
@@ -91,6 +91,7 @@ CONFIG_USB_GADGET_PRODUCT_NUM=0x4000
 CONFIG_CI_UDC=y
 CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_DM_VIDEO=y
+CONFIG_VIDEO_MXS=y
 CONFIG_SYS_WHITE_ON_BLACK=y
 CONFIG_SPLASH_SCREEN=y
 CONFIG_SPLASH_SCREEN_ALIGN=y
index 94363cf6ea93eef4a5d069c2c70259151bf8845c..ace89416930e87df9eb2990bb23b2b436009b10a 100644 (file)
@@ -72,6 +72,7 @@ CONFIG_USB=y
 # CONFIG_SPL_DM_USB is not set
 CONFIG_USB_EHCI_HCD=y
 CONFIG_DM_VIDEO=y
+CONFIG_VIDEO_MXS=y
 CONFIG_BACKLIGHT_GPIO=y
 CONFIG_SYS_WHITE_ON_BLACK=y
 CONFIG_SPLASH_SCREEN=y
index c9760df4b57c7694d946ee666a3f7f5400ceac3b..ee8000663528f4f66d4d254081b7046f4d251405 100644 (file)
@@ -93,6 +93,7 @@ CONFIG_USB_GADGET_VENDOR_NUM=0x0525
 CONFIG_USB_GADGET_PRODUCT_NUM=0xa4a5
 CONFIG_CI_UDC=y
 CONFIG_DM_VIDEO=y
+CONFIG_VIDEO_MXS=y
 CONFIG_SYS_WHITE_ON_BLACK=y
 CONFIG_SPLASH_SCREEN=y
 CONFIG_SPLASH_SCREEN_ALIGN=y
index a373e202997642f01ffb0d86c545f640ed5d0282..7abe5be35946f18416b084b73316fab1f4d63920 100644 (file)
@@ -83,6 +83,7 @@ CONFIG_IMX_THERMAL=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
 CONFIG_DM_VIDEO=y
+CONFIG_VIDEO_MXS=y
 CONFIG_SYS_WHITE_ON_BLACK=y
 CONFIG_SPLASH_SCREEN=y
 CONFIG_SPLASH_SCREEN_ALIGN=y
index 32adb5d8189ec733b0ffce7db6b84eaf8fe67a02..bd78f25295e79377f51e24c440aa0d19c38843ee 100644 (file)
@@ -103,6 +103,7 @@ CONFIG_USB_GADGET_PRODUCT_NUM=0xa4a5
 CONFIG_CI_UDC=y
 CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_DM_VIDEO=y
+CONFIG_VIDEO_MXS=y
 # CONFIG_VIDEO_BPP8 is not set
 # CONFIG_VIDEO_BPP32 is not set
 CONFIG_SYS_WHITE_ON_BLACK=y
index d7c3821a0cb3faf69387ee4b9e854ba48780b9ca..e55c0b71cf21cb70818d8c3ed119cb00c65dbbb4 100644 (file)
@@ -78,5 +78,6 @@ CONFIG_USB_GADGET_VENDOR_NUM=0x0525
 CONFIG_USB_GADGET_PRODUCT_NUM=0xa4a5
 CONFIG_CI_UDC=y
 CONFIG_DM_VIDEO=y
+CONFIG_VIDEO_MXS=y
 CONFIG_SPLASH_SCREEN=y
 CONFIG_SPLASH_SCREEN_ALIGN=y
index df81717a325a855855c678cc3f8d9c0156f99694..cb057b66f246e474b6d170f40a4fd73c4791ec11 100644 (file)
@@ -81,6 +81,7 @@ CONFIG_USB_GADGET_PRODUCT_NUM=0xa4a5
 CONFIG_CI_UDC=y
 CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_DM_VIDEO=y
+CONFIG_VIDEO_MXS=y
 CONFIG_SYS_WHITE_ON_BLACK=y
 CONFIG_SPLASH_SCREEN=y
 CONFIG_SPLASH_SCREEN_ALIGN=y
index 7d535625bf783aa8ea750ef254345d6df0adb9d8..e840bf04f3f992dd6b787b9c20e90b0f5404d869 100644 (file)
@@ -85,6 +85,7 @@ CONFIG_USB_GADGET_VENDOR_NUM=0x0525
 CONFIG_USB_GADGET_PRODUCT_NUM=0xa4a5
 CONFIG_CI_UDC=y
 CONFIG_DM_VIDEO=y
+CONFIG_VIDEO_MXS=y
 CONFIG_SYS_WHITE_ON_BLACK=y
 CONFIG_SPLASH_SCREEN=y
 CONFIG_SPLASH_SCREEN_ALIGN=y
index b1f8a9c1e6272fa2826906b900caf286543d54cf..9f789a6a58a4dc7e541da92ef235aa5ec8b86b18 100644 (file)
@@ -648,6 +648,12 @@ source "drivers/video/bridge/Kconfig"
 
 source "drivers/video/imx/Kconfig"
 
+config VIDEO_MXS
+       bool "Enable video support on i.MX28/i.MX6UL/i.MX7 SoCs"
+       depends on DM_VIDEO
+       help
+         Enable framebuffer driver for i.MX28/i.MX6UL/i.MX7 processors
+
 config VIDEO_NX
        bool "Enable video support on Nexell SoC"
        depends on ARCH_S5P6818 || ARCH_S5P4418
index 7aa6f17d612bd7c02fa6a4c29104968165366a34..7df7d57e6ecccfae0e178626cc336348b3400605 100644 (file)
 #include <dm/ofnode.h>
 #include <linux/compiler.h>
 
-#if defined(CONFIG_VIDEO_MXS)
-#define VIDEO_FB_16BPP_WORD_SWAP
-#endif
-
 /*
  * Include video_fb.h after definitions of VIDEO_HW_RECTFILL etc.
  */
index a2f2de7ea1c81acd0661b22703fd7d04c3255eda..741c3fedec98c1edf67ac32a7d5a2002e51dc5a1 100644 (file)
 /* USB Device Firmware Update support */
 #define DFU_DEFAULT_POLL_TIMEOUT       300
 
-#if defined(CONFIG_VIDEO) || defined(CONFIG_DM_VIDEO)
-#define CONFIG_VIDEO_MXS
+#if defined(CONFIG_DM_VIDEO)
 #define MXS_LCDIF_BASE MX6UL_LCDIF1_BASE_ADDR
 #define CONFIG_VIDEO_LOGO
 #define CONFIG_VIDEO_BMP_LOGO
index 07c26e3d0bab4b88ef7c1d8ab3918e279a9e1c53..344b266db9e6ca0aa7d669374d9bf500f3f09b3a 100644 (file)
 
 #define CONFIG_USBD_HS
 
-#if defined(CONFIG_VIDEO) || defined(CONFIG_DM_VIDEO)
-#define CONFIG_VIDEO_MXS
+#if defined(CONFIG_DM_VIDEO)
 #define CONFIG_VIDEO_LOGO
 #define CONFIG_VIDEO_BMP_LOGO
 #endif
index 1b6754299e7f978bdaa5d21606f04935e9c5deba..99d25c1e6ef022377c42694a053ddc15fdb4c79a 100644 (file)
@@ -22,7 +22,6 @@
                                         DMAMEM_SZ_ALL)
 
 #ifdef CONFIG_DM_VIDEO
-#define CONFIG_VIDEO_MXS
 #define CONFIG_VIDEO_LOGO
 #define CONFIG_VIDEO_BMP_LOGO
 
index 1f40d98be003193c4a87da6ff79f81fc114d7647..bccba5cbb174aba93e7bb65cd54afd353b4f5ba4 100644 (file)
@@ -26,7 +26,7 @@
 #endif
 
 /* Framebuffer support */
-#ifdef CONFIG_VIDEO
+#ifdef CONFIG_DM_VIDEO
 #define CONFIG_VIDEO_LOGO
 #define CONFIG_SYS_VIDEO_LOGO_MAX_SIZE (512 << 10)
 #endif
index 10292c86fac7d638421ed96eb4506a345d7f5445..fe4ea8997d46cc344b8e92db4281968be07cc9e1 100644 (file)
@@ -40,7 +40,7 @@
 #endif
 
 /* Framebuffer support */
-#ifdef CONFIG_VIDEO
+#ifdef CONFIG_DM_VIDEO
 #define CONFIG_VIDEO_LOGO
 #define CONFIG_SYS_VIDEO_LOGO_MAX_SIZE (512 << 10)
 #endif
index 1237ddef8e31b4c05857f58ee90ba9927b4a4c0c..df2bd97438ae707e401e09978aef6fd26d300a1b 100644 (file)
 #endif
 
 #ifndef CONFIG_SPL_BUILD
-#ifdef CONFIG_VIDEO
-#define CONFIG_VIDEO_MXS
+#ifdef CONFIG_DM_VIDEO
 #define CONFIG_VIDEO_LOGO
 #define CONFIG_VIDEO_BMP_LOGO
 #define MXS_LCDIF_BASE MX6SX_LCDIF1_BASE_ADDR
index ff2ad094a7d34e4570f166c0ff6c96ff87945717..9ddb47910f3c9079be06dbf672f1b15632210f32 100644 (file)
 
 #ifndef CONFIG_SPL_BUILD
 #if defined(CONFIG_DM_VIDEO)
-#define CONFIG_VIDEO_MXS
 #define CONFIG_VIDEO_LOGO
 #define CONFIG_VIDEO_BMP_LOGO
 #define MXS_LCDIF_BASE MX6UL_LCDIF1_BASE_ADDR
index 397af53bec39ead856975373dc693372f6f17958..92ce741768d66ce49d99c6e95e6214a47212845f 100644 (file)
 
 #define CONFIG_USBD_HS
 
-#ifdef CONFIG_VIDEO
-#define CONFIG_VIDEO_MXS
+#ifdef CONFIG_DM_VIDEO
 #define CONFIG_VIDEO_LOGO
 #define CONFIG_VIDEO_BMP_LOGO
 #endif
index b5c525dc786b91f9e9b2cf3d63d921a3a5dba693..45d176648211adda629fd0995add211131d97e45 100644 (file)
 #endif
 #endif
 
-/* LCD */
-#ifdef CONFIG_VIDEO
-#define CONFIG_VIDEO_MXS
-#endif
-
 /* NAND */
 #ifdef CONFIG_CMD_NAND
 #define CONFIG_SYS_MAX_NAND_DEVICE     1
index f9db8efd2fd27e14ca6bd47920222481582174eb..d9311a493508a3c1e372c7e1426cbf12e7b5610e 100644 (file)
@@ -43,7 +43,6 @@
 #ifdef CONFIG_DM_VIDEO
 #define CONFIG_VIDEO_LOGO
 #define CONFIG_VIDEO_BMP_LOGO
-#define CONFIG_VIDEO_MXS
 #define MXS_LCDIF_BASE MX6UL_LCDIF1_BASE_ADDR
 #endif
 #endif
index 7e36ceed3fe89d8bfef7f071df166c971db51861..6fed7522bddd0fd3eafa93c3ae9a22729faf4065 100644 (file)
  */
 #define CONFIG_BOARD_SIZE_LIMIT                715776
 
-#ifdef CONFIG_VIDEO
-#define CONFIG_VIDEO_MXS
+#ifdef CONFIG_DM_VIDEO
 #define CONFIG_VIDEO_LOGO
 #define CONFIG_VIDEO_BMP_LOGO
 #define MXS_LCDIF_BASE MX6UL_LCDIF1_BASE_ADDR
index 36c57923dec52e9cbc26b04b26aede69b5909a58..c0464278b98716903bc13bc8026b905ece39d235 100644 (file)
 #define CONFIG_POWER_PFUZE3000_I2C_ADDR        0x08
 
 #ifdef CONFIG_DM_VIDEO
-#define CONFIG_VIDEO_MXS
 #define CONFIG_VIDEO_LOGO
 #define CONFIG_VIDEO_BMP_LOGO
 #endif