linux/modules/video.mk: add support for ST7789v TFT displays
authorJohn Crispin <john@phrozen.org>
Mon, 14 Oct 2024 11:15:08 +0000 (13:15 +0200)
committerJohn Crispin <john@phrozen.org>
Wed, 23 Oct 2024 12:14:38 +0000 (14:14 +0200)
Signed-off-by: John Crispin <john@phrozen.org>
package/kernel/linux/modules/video.mk

index 52fc55bbadd07b1530ac7dda38ab41d6ca6f2992..5638d70b9e97ca79ae3308223f64e6231eea3a04 100644 (file)
@@ -501,6 +501,55 @@ endef
 
 $(eval $(call KernelPackage,drm-radeon))
 
+define KernelPackage/drm-st7789v
+  SUBMENU:=$(VIDEO_MENU)
+  TITLE:=Sitronix ST7789v DRM support
+  DEPENDS:=+kmod-backlight
+  KCONFIG:= \
+       CONFIG_FB \
+       CONFIG_FB_DEVICE=y \
+       CONFIG_FB_TFT \
+       CONFIG_FB_TFT_ST7735R \
+       CONFIG_FB_TFT_ST7789V
+#      CONFIG_FB_DEVICE=y \
+#      CONFIG_DRM_PANEL_SITRONIX_ST7789V \
+#      CONFIG_TINYDRM_ST7735R \
+#      CONFIG_DRM_PANEL_SIMPLE \
+#      CONFIG_DRM=y \
+#      CONFIG_DRM_PANEL=y \
+#      CONFIG_DRM_FBDEV_EMULATION=y \
+#      CONFIG_DRM_FBDEV_OVERALLOC=100 \
+#      CONFIG_DRM_PANEL_SAMSUNG_LD9040=n \
+#      CONFIG_DRM_PANEL_SAMSUNG_S6E8AA0=n \
+#      CONFIG_DRM_PANEL_LG_LG4573=n \
+#      CONFIG_DRM_PANEL_LD9040=n \
+#      CONFIG_DRM_PANEL_LVDS=n \
+#      CONFIG_DRM_PANEL_S6E8AA0=n
+  FILES:= \
+       $(LINUX_DIR)/drivers/video/fbdev/core/sysfillrect.ko \
+       $(LINUX_DIR)/drivers/video/fbdev/core/sysimgblt.ko \
+       $(LINUX_DIR)/drivers/video/fbdev/core/syscopyarea.ko \
+       $(LINUX_DIR)/drivers/video/fbdev/core/fb_io_fops.ko \
+       $(LINUX_DIR)/drivers/video/fbdev/core/fb_sys_fops.ko \
+       $(LINUX_DIR)/drivers/video/fbdev/core/fb.ko \
+       $(LINUX_DIR)/drivers/staging/fbtft/fb_st7735r.ko \
+       $(LINUX_DIR)/drivers/staging/fbtft/fb_st7789v.ko \
+       $(LINUX_DIR)/drivers/staging/fbtft/fbtft.ko
+       #$(LINUX_DIR)/drivers/gpu/drm/tiny/st7735r.ko \
+       #$(LINUX_DIR)/drivers/gpu/drm/panel/panel-sitronix-st7789v.ko \
+       #$(LINUX_DIR)/drivers/gpu/drm/panel/panel-simple.ko \
+       #$(LINUX_DIR)/drivers/gpu/drm/drm_dma_helper.ko \
+       #$(LINUX_DIR)/drivers/gpu/drm/drm_mipi_dbi.ko
+ # AUTOLOAD:=$(call AutoProbe,panel-sitronix-st7789v st7735r)
+  AUTOLOAD:=$(call AutoProbe,fb_st7735r fb_st7789v)
+endef
+
+define KernelPackage/drm-st7789v/description
+  Direct Rendering Manager (DRM) support for Sitronix ST7789v
+endef
+
+$(eval $(call KernelPackage,drm-st7789v))
+
 #
 # Video Capture
 #