Skip to contentSkip to conversation

tbs2910: migrate to DM_VIDEO

PATCH New Anatolij Gustschin 1 participant 1 message May 26, 2020

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 tbs2910: migrate to DM_VIDEO

Migration to DM_VIDEO driver is long overdue, configure it in board config files. To enable the display set stdout like:

setenv stdout serial,vidconsole

---
Changes in v2:
- add Tested-by tag
- drop CONFIG_SYS_MALLOC_F_LEN change
- update default environment to replace 'vga' strings
- configure options disabling not used DM_VIDEO code (backlight, simple panel, cursor and string output commands) to fix build breakage with current CI toolchain

 configs/tbs2910_defconfig |  9 ++++++++-
 include/configs/tbs2910.h | 10 ++++------
 2 files changed, 12 insertions(+), 7 deletions(-)
configs/tbs2910_defconfig +8 -1
index 2ff0e160f7..35c271c91e 100644
@@ -84,7 +84,14 @@ CONFIG_USB_GADGET_PRODUCT_NUM=0xa4a5
 CONFIG_CI_UDC=y
 CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_I2C_EDID=y
+CONFIG_DM_VIDEO=y
+# CONFIG_BACKLIGHT is not set
+# CONFIG_CMD_VIDCONSOLE is not set
+# CONFIG_VIDEO_BPP8 is not set
+# CONFIG_VIDEO_BPP32 is not set
+# CONFIG_VIDEO_ANSI is not set
+# CONFIG_PANEL is not set
 CONFIG_VIDEO_IPUV3=y
-CONFIG_VIDEO=y
+CONFIG_SYS_WHITE_ON_BLACK=y
 CONFIG_OF_LIBFDT_ASSUME_MASK=0xff
 # CONFIG_EFI_LOADER is not set
include/configs/tbs2910.h +4 -6
index 7376b91f55..82165a9ffe 100644
@@ -37,11 +37,9 @@
 #define CONFIG_MXC_UART_BASE		UART1_BASE /* select UART1/UART2 */
 
 /* Framebuffer */
-#ifdef CONFIG_VIDEO
 #define CONFIG_VIDEO_BMP_RLE8
 #define CONFIG_IMX_HDMI
 #define CONFIG_IMX_VIDEO_SKIP
-#endif
 
 /* PCI */
 #ifdef CONFIG_CMD_PCI
@@ -94,11 +92,11 @@
 	"fan=gpio set 92\0" \
 	"set_con_serial=setenv stdout serial; " \
 			"setenv stderr serial\0" \
-	"set_con_hdmi=setenv stdout serial,vga; " \
-			"setenv stderr serial,vga\0" \
-	"stderr=serial,vga\0" \
+	"set_con_hdmi=setenv stdout serial,vidconsole; " \
+			"setenv stderr serial,vidconsole\0" \
+	"stderr=serial,vidconsole\0" \
 	"stdin=serial,usbkbd\0" \
-	"stdout=serial,vga\0"
+	"stdout=serial,vidconsole\0"
 
 #define CONFIG_BOOTCOMMAND \
 	"mmc rescan; " \
Signature · 1 line
2.17.1