summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Golle2025-07-18 00:02:43 +0000
committerDaniel Golle2025-07-20 11:16:13 +0000
commit51dc3ab7f87b7f49e96363a58dd0f4e95d67b491 (patch)
treeb7b298ce60f07d24cc08bc7b7c242a17802e4792
parent85f27367eac568b389041ec8b7ee97cd8ceec622 (diff)
downloadopenwrt-51dc3ab7f87b7f49e96363a58dd0f4e95d67b491.tar.gz
kernel: modules: video: individually package simple-panel.ko
The DRM modules for simple (ie. raw, non-eDP) panels can be used also by platforms others than Freescale i.MX. Create an individual package for it. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
-rw-r--r--package/kernel/linux/modules/video.mk26
1 files changed, 21 insertions, 5 deletions
diff --git a/package/kernel/linux/modules/video.mk b/package/kernel/linux/modules/video.mk
index 5ae560faf3..bc64cb58ba 100644
--- a/package/kernel/linux/modules/video.mk
+++ b/package/kernel/linux/modules/video.mk
@@ -600,13 +600,12 @@ endef
$(eval $(call KernelPackage,drm-imx-hdmi))
+
define KernelPackage/drm-imx-ldb
SUBMENU:=$(VIDEO_MENU)
TITLE:=Freescale i.MX LVDS DRM support
- DEPENDS:=@(TARGET_imx&&TARGET_imx_cortexa9) +kmod-backlight kmod-drm-imx
+ DEPENDS:=@(TARGET_imx&&TARGET_imx_cortexa9) +kmod-backlight +kmod-drm-panel-simple kmod-drm-imx
KCONFIG:=CONFIG_DRM_IMX_LDB \
- CONFIG_DRM_PANEL_SIMPLE \
- CONFIG_DRM_PANEL=y \
CONFIG_DRM_PANEL_SAMSUNG_LD9040=n \
CONFIG_DRM_PANEL_SAMSUNG_S6E8AA0=n \
CONFIG_DRM_PANEL_LG_LG4573=n \
@@ -615,8 +614,7 @@ define KernelPackage/drm-imx-ldb
CONFIG_DRM_PANEL_S6E8AA0=n \
CONFIG_DRM_PANEL_SITRONIX_ST7789V=n
FILES:= \
- $(LINUX_DIR)/drivers/gpu/drm/imx/ipuv3/imx-ldb.ko \
- $(LINUX_DIR)/drivers/gpu/drm/panel/panel-simple.ko
+ $(LINUX_DIR)/drivers/gpu/drm/imx/ipuv3/imx-ldb.ko
AUTOLOAD:=$(call AutoLoad,08,imx-ldb)
endef
@@ -644,6 +642,24 @@ endef
$(eval $(call KernelPackage,drm-panel-mipi-dbi))
+
+define KernelPackage/drm-panel-simple
+ SUBMENU:=$(VIDEO_MENU)
+ TITLE:=Simple (non-eDP) TFT panels
+ DEPENDS:=@USES_DEVICETREE @USES_PM +kmod-drm +kmod-backlight
+ KCONFIG:=CONFIG_DRM_PANEL_SIMPLE \
+ CONFIG_DRM_PANEL=y
+ FILES:=$(LINUX_DIR)/drivers/gpu/drm/panel/panel-simple.ko
+ AUTOLOAD:=$(call AutoProbe,panel-simple)
+endef
+
+define KernelPackage/drm-panel-simple/description
+ Generic driver for simple raw (ie. non-eDP) TFT panels.
+endef
+
+$(eval $(call KernelPackage,drm-panel-simple))
+
+
define KernelPackage/drm-radeon
SUBMENU:=$(VIDEO_MENU)
TITLE:=Radeon DRM support