[OpenWrt-Devel] [PATCH 6/6] kernel: video: add IMX DRM support for HDMI/LVDS
Tim Harvey
tharvey at gateworks.com
Wed Nov 11 17:25:36 EST 2015
Signed-off-by: Tim Harvey <tharvey at gateworks.com>
---
package/kernel/linux/modules/video.mk | 138 +++++++++++++++++++++++++++++++++-
1 file changed, 137 insertions(+), 1 deletion(-)
diff --git a/package/kernel/linux/modules/video.mk b/package/kernel/linux/modules/video.mk
index c53f656..cbace75 100644
--- a/package/kernel/linux/modules/video.mk
+++ b/package/kernel/linux/modules/video.mk
@@ -11,11 +11,17 @@ VIDEO_MENU:=Video Support
V4L2_DIR=v4l2-core
V4L2_USB_DIR=usb
+#
+# Video Display
+#
+
define KernelPackage/fb
SUBMENU:=$(VIDEO_MENU)
TITLE:=Framebuffer support
DEPENDS:=@DISPLAY_SUPPORT
- KCONFIG:=CONFIG_FB
+ KCONFIG:=CONFIG_FB \
+ CONFIG_FB_MXS=n \
+ CONFIG_FB_SM750=n
FILES:=$(LINUX_DIR)/drivers/video/fbdev/core/fb.ko
AUTOLOAD:=$(call AutoLoad,06,fb)
endef
@@ -121,6 +127,136 @@ endef
$(eval $(call KernelPackage,fb-cfb-imgblt))
+define KernelPackage/drm
+ SUBMENU:=$(VIDEO_MENU)
+ TITLE:=Direct Rendering Manager (DRM) support
+ KCONFIG:=CONFIG_DRM \
+ CONFIG_DRM_LOAD_EDID_FIRMWARE=n \
+ CONFIG_DRM_IMX=n \
+ CONFIG_DRM_PTN3460=n \
+ CONFIG_DRM_PS8622=n \
+ CONFIG_DRM_TDFX=n \
+ CONFIG_DRM_R128=n \
+ CONFIG_DRM_RADEON=n \
+ CONFIG_DRM_NOUVEAU=n \
+ CONFIG_DRM_MGA=n \
+ CONFIG_DRM_VIA=n \
+ CONFIG_DRM_SAVAGE=n \
+ CONFIG_DRM_VGEM=n \
+ CONFIG_DRM_EXYNOS=n \
+ CONFIG_DRM_VMWGFX=n \
+ CONFIG_DRM_UDL=n \
+ CONFIG_DRM_AST=n \
+ CONFIG_DRM_MGAG200=n \
+ CONFIG_DRM_CIRRUS_QEMU=n \
+ CONFIG_DRM_ARMADA=n \
+ CONFIG_DRM_TILCDC=n \
+ CONFIG_DRM_QXL=n \
+ CONFIG_DRM_BOCHS=n \
+ CONFIG_DRM_STI=n \
+ CONFIG_DRM_I2C_ADV7511=n \
+ CONFIG_DRM_I2C_CH7006=n \
+ CONFIG_DRM_I2C_SIL164=n \
+ CONFIG_DRM_I2C_NXP_TDA998X=n
+ FILES:=$(LINUX_DIR)/drivers/gpu/drm/drm.ko
+ AUTOLOAD:=$(call AutoLoad,05,drm)
+endef
+
+define KernelPackage/drm/description
+ Direct Rendering Manager (DRM) core support
+endef
+
+$(eval $(call KernelPackage,drm))
+
+define AddDepends/drm
+ SUBMENU:=$(VIDEO_MENU)
+ DEPENDS+=kmod-drm $(1)
+endef
+
+define KernelPackage/drm-imx
+ TITLE:=Freescale i.MX DRM support
+ DEPENDS:=+kmod-fb
+ KCONFIG:=CONFIG_DRM_IMX=m \
+ CONFIG_IMX_IPUV3_CORE=m \
+ CONFIG_RESET_CONTROLLER=y \
+ CONFIG_DRM_IMX_IPUV3 \
+ CONFIG_IMX_IPUV3 \
+ CONFIG_DRM_KMS_HELPER \
+ CONFIG_FB_SYS_FILLRECT \
+ CONFIG_FB_SYS_COPYAREA \
+ CONFIG_FB_SYS_IMAGEBLIT \
+ CONFIG_DRM_KMS_FB_HELPER=y \
+ CONFIG_DRM_GEM_CMA_HELPER=y \
+ CONFIG_DRM_KMS_CMA_HELPER=y \
+ CONFIG_DRM_IMX_FB_HELPER \
+ CONFIG_DRM_IMX_PARALLEL_DISPLAY=n \
+ CONFIG_DRM_IMX_TVE=n \
+ CONFIG_DRM_IMX_LDB=n \
+ CONFIG_DRM_IMX_HDMI=n
+ FILES:= \
+ $(LINUX_DIR)/drivers/gpu/drm/imx/imxdrm.ko \
+ $(LINUX_DIR)/drivers/gpu/ipu-v3/imx-ipu-v3.ko \
+ $(LINUX_DIR)/drivers/gpu/drm/imx/imx-ipuv3-crtc.ko \
+ $(LINUX_DIR)/drivers/video/fbdev/core/syscopyarea.ko \
+ $(LINUX_DIR)/drivers/video/fbdev/core/sysfillrect.ko \
+ $(LINUX_DIR)/drivers/video/fbdev/core/sysimgblt.ko \
+ $(LINUX_DIR)/drivers/gpu/drm/drm_kms_helper.ko
+ AUTOLOAD:=$(call AutoLoad,05,imxdrm imx-ipu-v3 imx-ipuv3-crtc)
+ $(call AddDepends/drm)
+endef
+
+define KernelPackage/drm-imx/description
+ Direct Rendering Manager (DRM) support for Freescale i.MX
+endef
+
+$(eval $(call KernelPackage,drm-imx))
+
+define AddDepends/drm-imx
+ SUBMENU:=$(VIDEO_MENU)
+ DEPENDS+=kmod-drm-imx $(1)
+endef
+
+define KernelPackage/drm-imx-hdmi
+ TITLE:=Freescale i.MX HDMI DRM support
+ KCONFIG:=CONFIG_DRM_IMX_HDMI=m
+ FILES:= \
+ $(LINUX_DIR)/drivers/gpu/drm/bridge/dw_hdmi.ko \
+ $(LINUX_DIR)/drivers/gpu/drm/imx/dw_hdmi-imx.ko
+ AUTOLOAD:=$(call AutoLoad,05,dw_hdmi-imx)
+ $(call AddDepends/drm-imx)
+endef
+
+define KernelPackage/drm-imx-hdmi/description
+ Direct Rendering Manager (DRM) support for Freescale i.MX HDMI
+endef
+
+$(eval $(call KernelPackage,drm-imx-hdmi))
+
+define KernelPackage/drm-imx-ldb
+ TITLE:=Freescale i.MX LVDS DRM support
+ DEPENDS:=+kmod-backlight
+ KCONFIG:=CONFIG_DRM_IMX_LDB=m \
+ CONFIG_DRM_PANEL_SIMPLE \
+ CONFIG_DRM_PANEL=y \
+ CONFIG_DRM_PANEL_LD9040=n \
+ CONFIG_DRM_PANEL_S6E8AA0=n
+ FILES:=$(LINUX_DIR)/drivers/gpu/drm/imx/imx-ldb.ko \
+ $(LINUX_DIR)/drivers/gpu/drm/panel/panel-simple.ko
+ AUTOLOAD:=$(call AutoLoad,05,imx-ldb)
+ $(call AddDepends/drm-imx)
+endef
+
+define KernelPackage/drm-imx-ldb/description
+ Direct Rendering Manager (DRM) support for Freescale i.MX LVDS
+endef
+
+$(eval $(call KernelPackage,drm-imx-ldb))
+
+
+#
+# Video Capture
+#
+
define KernelPackage/video-core
SUBMENU:=$(VIDEO_MENU)
TITLE=Video4Linux support
--
1.9.1
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list