Skip to contentSkip to conversation

video: sunxi_display: Convert to DM_VIDEO

PATCH New Jagan Teki 1 participant 1 message Jun 16, 2020

Subsystems (4)
lore
Share & tools
lore

Jagan Teki

author
#0 lore raw

PATCH 1/1 video: sunxi_display: Convert to DM_VIDEO

DM_VIDEO migration deadline is already expired, but around 80 Allwinner boards are still using video in a legacy way.

===================== WARNING ====================== This board does not use CONFIG_DM_VIDEO Please update the board to use CONFIG_DM_VIDEO before the v2019.07 release. Failure to update by the deadline may result in board removal. See doc/driver-model/migration.rst for more info.
====================================================

So let's live these boards on the tree before the video maintainer removes it by converting in to DM_VIDEO.

Tested in Bananapi M1+ Plus 1920x1200 HDMI out.

Cc Maxime Ripard <[email protected]>

---
Note: Existing video log would break since the similar configuration of cfb_console will not build for DM_VIDEO. Will try to send the splashscreen, in next version or the next patches.

 arch/arm/mach-sunxi/Kconfig         |   3 +-
 drivers/video/sunxi/sunxi_display.c | 264 ++++++++++++++++------------
 include/configs/sunxi-common.h      |   7 -
 scripts/config_whitelist.txt        |   1 -
 4 files changed, 156 insertions(+), 119 deletions(-)
arch/arm/mach-sunxi/Kconfig +2 -1
index be0822bfb7..4fd31f7d61 100644
@@ -758,7 +758,8 @@ config VIDEO_SUNXI
 	depends on !MACH_SUN9I
 	depends on !MACH_SUN50I
 	depends on !MACH_SUN50I_H6
-	select VIDEO
+	select DM_VIDEO
+	select DISPLAY
 	imply VIDEO_DT_SIMPLEFB
 	default y
 	---help---
drivers/video/sunxi/sunxi_display.c +154 -110

577 lines not on this page · raw message

include/configs/sunxi-common.h +0 -7
index 5b0bec0561..290ef12969 100644
@@ -254,15 +254,8 @@ extern int soft_i2c_gpio_scl;
 #endif /* ifdef CONFIG_REQUIRE_SERIAL_CONSOLE */
 
 #ifdef CONFIG_VIDEO_SUNXI
-/*
- * The amount of RAM to keep free at the top of RAM when relocating u-boot,
- * to use as framebuffer. This must be a multiple of 4096.
- */
-#define CONFIG_SUNXI_MAX_FB_SIZE (16 << 20)
-
 #define CONFIG_VIDEO_LOGO
 #define CONFIG_VIDEO_STD_TIMINGS
-#define CONFIG_I2C_EDID
 #define VIDEO_LINE_LEN (pGD->plnSizeX)
 
 /* allow both serial and cfb console. */
scripts/config_whitelist.txt +0 -1
index f6bf6f2474..30a101638e 100644
@@ -1724,7 +1724,6 @@ CONFIG_STV0991
 CONFIG_STV0991_HZ
 CONFIG_STV0991_HZ_CLOCK
 CONFIG_ST_SMI
-CONFIG_SUNXI_MAX_FB_SIZE
 CONFIG_SXNI855T
 CONFIG_SYSFLAGS_ADDR
 CONFIG_SYSFS
Signature · 1 line
2.25.1